Skip to content

ci: consolidate CS Coverage runner retries, build setup and 4.2-dev opt-in - #490

Merged
Ariznawlll merged 4 commits into
mainfrom
codex/coverage-cs-site-retry
Nov 26, 2026
Merged

Ariznawlll merged 4 commits into
mainfrom
codex/coverage-cs-site-retry

Conversation

@Ariznawlll

@Ariznawlll Ariznawlll commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Consolidates the independent changes from #489 and #491 into one review. Both options default to off. The current MatrixOne callers and in-flight runs are not changed by this PR.

CS alternate-site retry

  • Start in the shared CS queue. If a group is still queued and unassigned after 5 minutes, try each of MTY, JED, MNL2 and RUH once, with up to 90 seconds of observed queue per site. If no site accepts, return to the shared queue; that is not proof that every site is full.
  • Recheck assignment and confirm cancellation before dispatching the replacement. Only the selected child can receive the grant. Do not interrupt an already-running group, and keep the original 1-hour Shanghai fallback clock.

4.2-dev compatibility

  • enable_4_2_dev opts the reviewed release caller into standby without enabling site retry. enable_cs_site_retry only changes site selection for jobs already admitted; it cannot opt 4.2-dev into Coverage UT.
  • The legacy caller stays on its current runner path. The release caller still verifies membership, exact live PR head/source/base and the approved branch-specific S3 fixture blobs from [4.2-dev] test: backport prefix-isolated CS S3 fixtures matrixone#33247. Release retries recheck the same fixture, and both workers still require an exact matching authorization receipt.

Rollout and verification

  • No MatrixOne caller/worker pin, shared storage, permissions, UT steps or CI scope rules changed. Enabling either option is a separate caller change; pin the parent and worker wrappers to the same immutable CI revision. Validate with a real PR before enabling in production. The 4.2-dev rollout still needs its reviewed S3 fixtures on the actual PR head.
  • 86 focused tests passed locally, including targeted CS admission on a 4.2-dev retry, invalid or stale receipts, healthy/late assignments, failed cancellation, all-site queue timeouts and preserving the Shanghai deadline. Workflow lint and diff checks passed.
  • The read-only RUH runner probe verified the site labels and work disk, not the end-to-end live failover of this change.

Build dependency bootstrap (absorbs #491)

  • This is the single CI review for both changes. It incorporates the exact dependency installer from ci: install missing CS Coverage build tools reliably #491: install only missing tools, retry package-index refresh without relaxing integrity checks, and provide a job-local Python alias.
  • The two routing switches described above are still off by default. The dependency installer change takes effect only when the MatrixOne worker caller adopts the released CI commit.
  • 90 focused tests, workflow lint and diff checks passed on the combined commit. Prior installer-only JED validation and both #33176 Coverage UT groups are linked in ci: install missing CS Coverage build tools reliably #491; they are not a live validation of cross-site retry or the 4.2-dev rollout.
  • MatrixOne #33176 now includes the caller update from #33321 (closed). After this CI PR merges, update all caller/worker/contract pins together to the final CI revision before merging #33176.
  • Review follow-up: the release fixture allowlist is pinned to MatrixOne #33247 at fa81ff496a. CI checks a four-file snapshot against that immutable Git tree. Keep the release opt-in off pending backport approval; if the approved blobs change, update the snapshot and allowlist before rollout. A 409 on worker withdrawal is reconciled against the exact child and only a verified completed/cancelled permits replacement. No production dispatch or cancellation was used in this validation.

@Ariznawlll Ariznawlll changed the title ci: retry other CS sites for stalled Coverage UT groups ci: prepare 4.2-dev Coverage and retry stalled groups across CS sites Nov 26, 2026
@Ariznawlll Ariznawlll changed the title ci: prepare 4.2-dev Coverage and retry stalled groups across CS sites ci: consolidate CS Coverage runner retries, build setup and 4.2-dev opt-in Nov 26, 2026
@Ariznawlll

Copy link
Copy Markdown
Collaborator Author

@XuPeng-SH 鹏哥,麻烦帮忙 review 一下 #490。#491 的依赖安装修复已经并进来,这次集中看这一条就好。4.2-dev 接入和 CS 跨站重试仍默认关闭。重点帮忙看一下两组 Coverage UT 的调度、换站逻辑和依赖安装。谢谢!

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 354cd934. The defaults remain off, and I did not find a new blocker in the dependency installer. Two blockers remain in the opt-in paths. I verified both with local checks on this exact head; no live cross-site or 4.2-dev run was dispatched. All 100 focused and adjacent tests passed, as did Check Yaml.

Comment thread scripts/coverage_pr_entry.py Resolved
Comment thread scripts/coverage_standby.py Resolved
@Ariznawlll

Copy link
Copy Markdown
Collaborator Author

@XuPeng-SH 鹏哥,麻烦再看一下 4aa6bf3。你提的两条 P2 都已修:4.2-dev 的四个文件哈希已对齐 #33247 的固定提交,CI 会对照实际 Git 树校验;取消请求返回 409 时,只有确认原任务已取消才会换站。Linux CI 已通过,两个开关仍默认关闭。谢谢!

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved 4aa6bf3. I verified all four fixture blobs directly against the pinned MatrixOne tree fa81ff496a and reran the actual admission check: the new head admits that fixture, and the previous variant is rejected. The 409 path now rechecks the exact child and reserves a replacement only after verifying completed/cancelled; still-active, other terminal, identity mismatch, and 403 controls do not produce a new grant. All 101 local tests passed, and the exact-head Linux check passed including the independent tree check. No new blocker in the delta.

This approves the CI change with both options off, not rollout. Leave 4.2-dev off until #33247 lands and both groups pass with restricted S3 credentials. Update #33176's four pins together to the actual merge SHA before merging the caller. No live cross-site run was dispatched in this review.

@Ariznawlll
Ariznawlll merged commit 53e9dad into main Nov 26, 2026
1 check passed
@Ariznawlll
Ariznawlll deleted the codex/coverage-cs-site-retry branch November 26, 2026 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants