Deflake TestVStreamsMetricsErrors.#18679
Merged
arthurschreiber merged 1 commit intomainfrom Sep 23, 2025
Merged
Conversation
Signed-off-by: Arthur Schreiber <arthur@planetscale.com>
Contributor
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
|
5c0e19b to
911d5b7
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #18679 +/- ##
==========================================
+ Coverage 67.52% 67.53% +0.01%
==========================================
Files 1608 1608
Lines 263611 263611
==========================================
+ Hits 177994 178039 +45
+ Misses 85617 85572 -45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
rohit-nayak-ps
approved these changes
Sep 23, 2025
timvaillancourt
approved these changes
Sep 23, 2025
This was referenced Sep 23, 2025
arthurschreiber
added a commit
that referenced
this pull request
Sep 23, 2025
5 tasks
nickvanw
pushed a commit
that referenced
this pull request
Mar 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The
TestVStreamsMetricsErrorsunit test was flaky, and this PR fixes that flakiness.The main reason for the flakiness was that there's an inherent race condition in the test case, as there is no fixed order in which VStream events are processed:
20-40first, and then the error from-20, the test would be successful.-20first, it might cancel the processing of events from shard20-40, which would cause the test to deadlock (because it was waiting for events to be returned via thechchannel).The tests are now updated to handle both of these cases correctly.
I'd like these changes to be backported as this test also existed on older versions.
Related Issue(s)
Fixes #18678.
Checklist
Deployment Notes
AI Disclosure