Try prevent flaking by placing org and ws on same shard#3931
Try prevent flaking by placing org and ws on same shard#3931ntnn wants to merge 1 commit intokcp-dev:mainfrom
Conversation
| name: "create and clean workspace", | ||
| work: func(ctx context.Context, t *testing.T, server runningServer) { | ||
| orgPath, _ := kcptesting.NewWorkspaceFixture(t, server, core.RootCluster.Path(), kcptesting.WithType(core.RootCluster.Path(), "organization")) | ||
| orgPath, _ := kcptesting.NewWorkspaceFixture(t, server, core.RootCluster.Path(), kcptesting.WithRootShard(), kcptesting.WithType(core.RootCluster.Path(), "organization")) |
There was a problem hiding this comment.
Maybe add a comment for the rationale behind this change? Something like in the PR's description would suffice.
|
/lgtm |
|
LGTM label has been added. DetailsGit tree hash: 2ffbdfa2ccda9bc95c195cd13f74c1a26313b948 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mjudeikis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
`create and clean workspace` has been flaking due to eventually timeouts, while the other subtest hasn't flaked. The other subtest places the org and workspace on the root shard explicitly, this test didn't. My guess is that the cross-shard operation (plus all the other tests) is just enough delay for the test to fail every now and then. It's worth a try - at worst the two tests will have a similar setup. Also added a note explaining the use of the .WithRootShard to the second subtest with a note on future refactoring. Signed-off-by: Nelo-T. Wallus <red.brush9525@fastmail.com> Signed-off-by: Nelo-T. Wallus <n.wallus@sap.com>
b269ee9 to
b8abff3
Compare
|
New changes are detected. LGTM label has been removed. |
|
@gman0 I like the suggestion; I also put in a comment in the second test. I think we could refactor both at some point to not require pinning the shard in either. |
|
/retest The failures are all related to the APIBindings not being ready yet, see: #3934 |
Summary
create and clean workspacehas been flaking due to eventually timeouts, while the other subtest hasn't flaked. The other subtest places the org and workspace on the root shard explicitly, this test didn't.My guess is that the cross-shard operation (plus all the other tests) is just enough delay for the test to fail every now and then. It's worth a try - at worst the two tests will have a similar setup.
What Type of PR Is This?
/kind flake
Related Issue(s)
Fixes #
Release Notes