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

🐛 Fix flaky Test_objectMover #6046

Merged

Conversation

sbueringer
Copy link
Member

@sbueringer sbueringer commented Feb 2, 2022

Signed-off-by: Stefan Büringer [email protected]

What this PR does / why we need it:

Based on the Slack discussion (https://kubernetes.slack.com/archives/C8TSNPY4T/p1643414553424199) increasing the timeout has a chance to solve the flake. Let's try it.

Thx @Jont828 !

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #5938

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 2, 2022
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 2, 2022
@sbueringer sbueringer force-pushed the pr-fix-object-mover-test branch 2 times, most recently from f84ec08 to 79a8c5a Compare February 2, 2022 09:33
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 2, 2022
@sbueringer sbueringer force-pushed the pr-fix-object-mover-test branch from 79a8c5a to b40a09b Compare February 2, 2022 09:35
@sbueringer
Copy link
Member Author

/retest

@sbueringer sbueringer force-pushed the pr-fix-object-mover-test branch from b40a09b to 607a1c5 Compare February 2, 2022 15:16
@@ -707,7 +724,7 @@ func Test_objectMover_backupTargetObject(t *testing.T) {
time.Sleep(time.Millisecond * 5)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sbueringer I mentioned this in Slack too, but I was able to fix the test on my machine by changing the duration here.

Suggested change
time.Sleep(time.Millisecond * 5)
time.Sleep(time.Millisecond * 50)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx. Let's just try that and then we see over the next weeks/months if the flake still occurs.

Signed-off-by: Stefan Büringer [email protected]
@sbueringer sbueringer force-pushed the pr-fix-object-mover-test branch from 607a1c5 to a7eed44 Compare February 3, 2022 12:44
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Feb 3, 2022
@sbueringer sbueringer changed the title [WIP] 🐛 Fix flaky Test_objectMover 🐛 Fix flaky Test_objectMover Feb 3, 2022
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 3, 2022
@sbueringer
Copy link
Member Author

/assign @killianmuldoon @fabriziopandini

Copy link
Contributor

@killianmuldoon killianmuldoon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

I'm not super happy that we still don't know why the timestamp wasn't changing. But let's fix the flake and leave FS timestamps to the kernel 😆

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 3, 2022
Copy link
Member

@vincepri vincepri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 3, 2022
@k8s-ci-robot k8s-ci-robot merged commit 2845cb0 into kubernetes-sigs:main Feb 3, 2022
@k8s-ci-robot k8s-ci-robot added this to the v1.2 milestone Feb 3, 2022
@sbueringer sbueringer deleted the pr-fix-object-mover-test branch February 3, 2022 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test_objectMover is flaky
6 participants