-
Notifications
You must be signed in to change notification settings - Fork 320
Fix flaky e2e test #7620
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
base: v3.34
Are you sure you want to change the base?
Fix flaky e2e test #7620
Conversation
I am not sure this is the best solution, cause if we get 409 in this request for some other reason we won't know. @mjamescompton what do you think? |
Yeah if we don't fail on the 409, that would mean the device is not created correctly but we are hoping the tests don't require it to so it will pass. What in the backend is causing the 409? |
@ryaplots @mjamescompton It happens to return 409 Conflict when the device is already created (for some reason not deleted from some cluster with other tests, or when tests run in parallel i suppose) but in our case that doesn't matter. The only thing that matters in this test is that the device is present in the db. |
Is this a failure of the test coverage that it does not matter if a device is incorrectly created.
I would explore this more, why has it not been deleted yet. It might be an issue with the tests, it could be some caching within github actions, it could be a in issue with the backend. Try to explore how to fix this without editing the test but fix the underlying issue.
This could be an option if we can not find the underlying issue and could be the solutions if we need the test to run in parallel. How much work will this be and what are the negatives? |
@PavelJankoski, It indeed does seem like test will run in parallel
|
9ff16c5
to
3bd9ee4
Compare
b07e766
to
2f8827b
Compare
@mjamescompton @ryaplots I pushed the changes where I generate random device id when we create a device on all components. |
Summary
Fix flaky e2e test
Changes
Testing
Steps
Check CI if it turns green on every PR.
Results
The CI should turn green
Checklist
README.md
for the chosen target branch.CHANGELOG.md
.CONTRIBUTING.md
, there are no fixup commits left.