Skip to content

test(iscp): make drain readiness tests deterministic on 4.2-dev - #33618

Merged
XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/iscp-drain-readiness-42
Dec 1, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:4.2-devfrom
XuPeng-SH:codex/iscp-drain-readiness-42

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Test and CI

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/synctest for 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

  • Full pkg/sql/compile short suite passed with coverage instrumentation (63.1% statement coverage).
  • All three backported tests and the fresh-runner retry test, repeated 100 times each under the race detector at GOMAXPROCS=1 and 4.
  • Incremental static analysis reported zero issues.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify

mergify Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Dec 1, 2026
@XuPeng-SH
XuPeng-SH merged commit 6afdb0c into matrixorigin:4.2-dev Dec 1, 2026
20 of 22 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/iscp-drain-readiness-42 branch December 1, 2026 16:45

This branch was successfully deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants