Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a test is flaky in pipedv1/controller/planner_test.go #5164

Open
t-kikuc opened this issue Aug 28, 2024 · 0 comments
Open

a test is flaky in pipedv1/controller/planner_test.go #5164

t-kikuc opened this issue Aug 28, 2024 · 0 comments
Labels
area/pipedv1 kind/bug Something isn't working

Comments

@t-kikuc
Copy link
Member

t-kikuc commented Aug 28, 2024

What happened:

What you expected to happen:

  • not flaky

How to reproduce it:

Retry the test again and again.

Environment:

  • piped version: N/A
  • control-plane version: N/A
  • Others: reproduced in 3d4bd4f

log:

$ go test ./pkg/app/pipedv1/controller/ -count=1 
ok      github.com/pipe-cd/pipecd/pkg/app/pipedv1/controller     0.250s

$ go test ./pkg/app/pipedv1/controller/ -count=1
ok      github.com/pipe-cd/pipecd/pkg/app/pipedv1/controller     0.246s

$ go test ./pkg/app/pipedv1/controller/ -count=1
ok      github.com/pipe-cd/pipecd/pkg/app/pipedv1/controller     0.251s

$ go test ./pkg/app/pipedv1/controller/ -count=1
--- FAIL: TestBuildPipelineSyncStages (0.00s)
    --- FAIL: TestBuildPipelineSyncStages/multi_plugins_multi_rollback (0.00s)
        planner_test.go:583: 
                Error Trace:    /Users/xxx/pipecd/upstream/pipecd/pkg/app/pipedv1/controller/planner_test.go:583
                Error:          Not equal: 
                                expected: []*model.PipelineStage{(*model.PipelineStage)(0x14000121200), (*model.PipelineStage)(0x140001212c0), (*model.PipelineStage)(0x14000121380), (*model.PipelineStage)(0x14000121440), (*model.PipelineStage)(0x14000121500), (*model.PipelineStage)(0x140001215c0)}
                                actual  : []*model.PipelineStage{(*model.PipelineStage)(0x140001206c0), (*model.PipelineStage)(0x14000120780), (*model.PipelineStage)(0x140001209c0), (*model.PipelineStage)(0x14000120840), (*model.PipelineStage)(0x14000120a80), (*model.PipelineStage)(0x14000120900)}
                            
                                Diff:
                                --- Expected
                                +++ Actual
                                @@ -127,4 +127,4 @@
                                   unknownFields: ([]uint8) <nil>,
                                -  Id: (string) (len=17) "plugin-1-rollback",
                                -  Name: (string) (len=17) "plugin-1-rollback",
                                +  Id: (string) (len=17) "plugin-2-rollback",
                                +  Name: (string) (len=17) "plugin-2-rollback",
                                   Desc: (string) "",
                                @@ -154,4 +154,4 @@
                                   unknownFields: ([]uint8) <nil>,
                                -  Id: (string) (len=17) "plugin-2-rollback",
                                -  Name: (string) (len=17) "plugin-2-rollback",
                                +  Id: (string) (len=17) "plugin-1-rollback",
                                +  Name: (string) (len=17) "plugin-1-rollback",
                                   Desc: (string) "",
                Test:           TestBuildPipelineSyncStages/multi_plugins_multi_rollback
FAIL
FAIL    github.com/pipe-cd/pipecd/pkg/app/pipedv1/controller     0.248s
FAIL
@t-kikuc t-kikuc added kind/bug Something isn't working area/pipedv1 labels Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/pipedv1 kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant