-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
onlineddl_scheduler
test: fix flakiness in artifact cleanup test
#15396
onlineddl_scheduler
test: fix flakiness in artifact cleanup test
#15396
Conversation
Signed-off-by: Shlomi Noach <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #15396 +/- ##
==========================================
- Coverage 67.41% 65.44% -1.98%
==========================================
Files 1560 1562 +2
Lines 192752 193911 +1159
==========================================
- Hits 129952 126911 -3041
- Misses 62800 67000 +4200 ☔ View full report in Codecov by Sentry. |
I thought we should backport at least to v19. We can consider backporting beyond that if the test shows flakiness in older branches. |
…cleanup test (#15396) (#15399) Signed-off-by: Florent Poinsard <[email protected]> Co-authored-by: vitess-bot[bot] <108069721+vitess-bot[bot]@users.noreply.github.com> Co-authored-by: Florent Poinsard <[email protected]>
Description
We've seen flakiness in
onlineddl_scheduler
test,TestSchemaChange/scheduler/Cleanup_artifacts/validate_artifact_exists
. The test run an open ended (--postpone-completion
) migration, sets a very low artifact retention, and looks to see that its artifacts exist while the migration is running. Artifacts should only be deleted when the migration completes, fails, or gets cancelled, so this is intended to validate we do not cleanup prematurely.However, it's possible that the artifact is not yet created, and that's the race condition. The fact the test is in
running
state, does not mean it's reached the part where the shadow table gets created.The fix to the flakiness is to wait until the migration is
ready_to_complete
. This guarantees that the artifact (shadow table) is already created.Related Issue(s)
https://github.com/planetscale/vitess-private/actions/runs/8112537427/job/22173985451?pr=4573
Checklist
Deployment Notes