Repository navigation
test(iscp): make drain readiness tests deterministic on 4.2-dev - #33618
Merged
XuPeng-SH merged 2 commits intoDec 1, 2026
Merged
Conversation
Backport the ISCP drain test changes from a85d90e (matrixorigin#30334).
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
Contributor
|
This pull request is merged. |
This branch was successfully deployed
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.
What type of PR is this?
What does this PR do?
Backport the ISCP drain test changes from #30334 to
4.2-dev.The coverage run on #33590 failed in
TestDrainIndexCdcTaskConsumerBoundsPersistentNotReady. The test used a 30 ms wall-clock readiness deadline and also required at least one drain RPC. The runner had been discovered, but the deadline elapsed before the mock received the first request. The UT producer exited before publishing its profile, which also blocked the coverage merge.Use
testing/synctestfor the persistent-not-ready, runner discovery, and long-drain tests. Construct their process fixtures before entering the test bubble. Synthetic time advances when the test goroutines block. The existing assertions about drain requests, readiness timeout, the statement deadline, and runner changes no longer depend on the CI runner honoring a 30 ms wall-clock window.Failing coverage job
Verification
pkg/sql/compileshort suite passed with coverage instrumentation (63.1% statement coverage).GOMAXPROCS=1and4.