- Notifications
You must be signed in to change notification settings - Fork674
test(users): force 10 seconds sleep to improve reliability#1215
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -54,7 +54,7 @@ def test_delete_user(gl, wait_for_sidekiq): | ||||||||||
| "password":"delete-user-pass", | ||||||||||
| } | ||||||||||
| ) | ||||||||||
| time.sleep(10) | ||||||||||
| new_user.delete() | ||||||||||
Comment on lines +57 to 58 Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I think this should go after, because the delete itself is taking too long: Suggested change
Looks like we really need this. I thought my little sidekiq wait hack would work though 🤕 I based it off ofthis, but I'm not sure if we can extract from the API whenthis exact sidekiq deletion job is finished:
I'll keep looking into this later, maybe we could also just wrap these asserts in retries until the condition is met (with a timeout), since it seems to me like GitLab gets more bloated with new features and so things can take longer with new releases on these little Travis VMs? They do perform better during the day/office hours though, just retried all the jobs and they're going green 🤣 MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Maybe use something likeflaky for this? | ||||||||||
| wait_for_sidekiq() | ||||||||||