Repository navigation
ci: fall back to Shanghai only for a Coverage UT group still queued on CS after one hour - #32944
Conversation
|
Pre-merge trial on the authorized head of #32922: https://github.com/matrixorigin/matrixone/actions/runs/44536504754. The parent verified the real PR. Group 0 was assigned in MTY and group 1 in JED; neither group waited 600 s. The trial dispatched on weilu-runner-test but looked for the receipt on main following a 204 response. Admission failed closed before PR checkout; no coverage result or Shanghai handoff is claimed. CI fix and regression test: matrixorigin/CI@758b010. The caller pin update is held until the current PR checks finish so its running tests are not cancelled. Do not merge. |
|
Admission fix: matrixorigin/CI@00eda34. Validate parent identity on every read; only known nonterminal transitions get a bounded wait. Completed/cancelled, unknown state and identity mismatches cannot authorize checkout. This keeps the per-child grant and live PR gate. Local contracts: 24 passed. Linux check: https://github.com/matrixorigin/CI/actions/runs/44542894191. Caller pin and isolated mixed-site rerun pending existing runs; no merge requested. |
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? |
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 731279514dafe2da5806dc857cc06378e2921a81
Assessment: request_changes
The new pin closes the earlier branch-revision and Shanghai diagnostics findings, and pagination fixes the previous cleanup row limit. A cancelled parent can still leave an admitted worker running when the Actions list endpoint lags.
Model: gpt-6.2-sol / xhigh
Session: 01a20682-9189-75a0-839a-f36d8b2372a5 · slot 1 · generation 3
- P2
.github/ci/cancel-superseded.cjs:156: A coverage worker has received its grant and started, then the parent ends while the worker is still absent from the workflow-run listing used by the completion controller.
Impact: The controller can finish without requesting cancellation. The admitted worker has no further parent-liveness check and can hold a scarce runner until it completes or reaches its 320-minute job timeout.
Evidence: The selector can admit a child using its dispatch response and direct run lookup. Completion cleanup relies entirely on three list scans spaced five seconds apart. In the simulated API probe, visibility at 5 seconds led to cancellation, while visibility at 15 seconds left the same active child untouched. Prefer direct lookup of children recorded in the parent's admission receipts, preserving identity checks and bounded listing for ungranted reservations. See cleanup-control.stdout and cleanup-late.stdout, receipts 1795500910760711816-2 and 1795500910759919109-2.
Validation:
-
Verified the clean frozen head, complete patch, whitespace and JavaScript syntax. Scope receipt 1795500725389428486-2.
-
All 23 cancellation tests and all 20 pinned companion tests passed. Receipts 1795500806270175612-2 and 1795500761849204080-2. The companion tests cover moving-main recovery and retained Shanghai failure diagnostics.
-
The paired API mock demonstrated the cleanup finding and its nearby control. The 13 frozen discussion keys are accounted for in discussion-assessment.json.
Limitations:
-
The broad CI contract command reached its 45-second deadline. The affected cancellation suite passed independently. The companion test was invoked as a module after direct invocation failed to resolve its package.
-
Frozen evidence reports an earlier 10-minute mixed-site drill and a later failed-only retry. Neither the current one-hour handoff nor live parent-completion cleanup was independently exercised. The list delay in the review probe was simulated.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 995fb2e595f5c68741186f2499c5cdc05947fbbe
Assessment: request_changes
Reusing admission receipts closes the earlier run-list visibility gap. Cleanup still lets a failed lookup for an older receipt prevent cancellation of the current worker.
Model: gpt-6.2-sol / xhigh
Session: 01a20682-9189-75a0-839a-f36d8b2372a5 · slot 1 · generation 3
- P2
.github/ci/cancel-superseded.cjs:237: The completed parent has receipts from multiple attempts. The run list omits the current worker, and GitHub returns a transient error when cleanup looks up an older receipt first.
Impact: Cleanup exits before checking or cancelling the current worker. An admitted worker can occupy a scarce runner until it finishes or reaches its 320-minute job timeout.
Evidence: The API mock returned 502 for the older receipt and observed no lookup or cancellation of the current worker. The 404 control cancelled it. Keep the live per-attempt identity checks, continue cleanup for independently verifiable children, and report the lookup error afterward. See receipt-probe.stdout and receipt 1795511858929873811-2.
Validation:
-
Verified the frozen diff, whitespace, JavaScript syntax, YAML structure, immutable companion pin, and all 15 discussion entries.
-
All 27 cancellation tests and all 20 pinned companion tests passed. Receipts 1795511779761300863-2 and 1795511862489328680-2.
-
The targeted API mock reproduced the lookup failure and passed its 404 control. Receipt 1795511858929873811-2.
Limitations:
- Local cleanup validation used mocked GitHub responses. The frozen evidence reports an earlier 10-minute mixed-site drill and a successful failed-only rerun. The one-hour handoff and live parent-completion cleanup remain unverified.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: 9e931608073f8ab4aeab43ac08250d266a32a4c1
Assessment: request_changes
The cancellation fix isolates per-worker errors while preserving parent and child identity checks. The new companion pin can silently publish incomplete legacy UT coverage.
Model: gpt-6.2-sol / xhigh
Session: 01a20d4a-e012-78c2-a9c3-fb5e273c4075 · slot 1 · generation 4
- P2
.github/workflows/entrypoint.yaml:143: On the legacy coverage route, both test passes succeed but appending the embedded pass’s profile fails.
Impact: The coverage job can succeed and publish a profile that omits the embedded pass. The wrapper removes the embedded profile, so the missing coverage cannot be recovered from the published artifact.
Evidence: The pinned helper ignores the append failure and returns the successful test status. In the fault probe, both passes succeeded, the helper returned zero, and only the ordinary pass remained. The control retained both passes. See legacy-profile-merge.stdout and checks/1795522125227496223-2.json. Check all merge operations, publish the combined profile only after both inputs are incorporated, and propagate any merge failure. Pinned profile merge
Validation:
-
Verified the frozen diff, whitespace, JavaScript syntax, and workflow YAML structure. Receipt 1795521914605523764-2.
-
All 30 cancellation tests and 42 pinned companion tests passed. Receipts 1795521892374030793-2, 1795521954175779019-2, and 1795522093395980931-2.
-
Reconciled all 17 discussion entries. The latest cancellation tests confirm that an older receipt lookup error no longer blocks cleanup of a verified worker.
Limitations:
- Local checks used simulated GitHub responses and test processes. The frozen evidence covers a 10-minute mixed-site drill and a failed-only rerun. The one-hour handoff, live cleanup, and legacy coverage performance remain unverified.
|
mo-bot review · Commit: Review completed. Read the assessment. |
XuPeng-SH
left a comment
There was a problem hiding this comment.
mo-bot review · mo-bot-local · review
Commit: d7584202ec4fd968e9f8f10cce9f3a82c5965464
Assessment: approve
The pinned legacy coverage helper now fails the coverage step if either profile cannot be merged. It preserves both inputs and publishes the combined profile atomically. The standby design keeps admission scoped to each group and parent attempt, with read-only workers and cleanup through the existing cancellation controller.
Model: gpt-6.2-sol / xhigh
Session: 01a1ee80-0d82-7030-a965-b51f496c3054 · slot 2 · generation 1
Validation:
-
Verified the frozen diff, whitespace, workflow YAML structure, JavaScript and Bash syntax, and the exact nested helper. See scope.stdout and checks/1795530581621526413-2.json.
-
All 30 cancellation tests passed on the bounded retry after the initial timeout. See cancellation-retry.stdout and checks/1795530577163746386-2.json.
-
All 46 pinned companion tests passed, covering deadline selection, admission, failed-only retries, and artifact selection. See companion-tests.stderr and checks/1795530480293711612-2.json.
-
All 16 tests at the exact nested legacy pin passed, including append failure, failed publication, and successful profile assembly. See nested-profile.stderr and checks/1795530662918986478-2.json.
-
Reconciled all 19 discussion entries in discussion-assessment.json.
Limitations:
- Local tests used simulated GitHub responses and coverage processes. The frozen evidence cites an earlier ten-minute mixed-site drill and a failed-only rerun. The one-hour handoff, live completion cleanup, and legacy coverage performance remain unverified on the assigned head.
🚫 Left the queue · pull request dequeued8 min in the queue, with no time running CI. So far
Reason Pull request #32944 has been dequeued Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.
To get back in the queue
Merge conditions not met when it left the queue
Tick the box to put this pull request back in the merge queue (same as
2 merge conditions met
Times in UTC · dashboard · how the merge queue works |
Companion to matrixorigin/CI#475. Review only; do not merge yet.
Each of the two Coverage UT groups requests CS independently. The hosted dispatcher may withdraw only its own unadmitted single-group child, after observing 3,600 seconds (one hour) in the CS runner queue. A CS assignment wins a deadline race. Shanghai uses the tested safe pool and receives an exclusive admission before it executes PR code. PR checks, cache/UT implementation, TKE and Coverage BVT are not changed here.
Permissions: keep the repository default read-only. Only the trusted hosted selection job inside the pinned reusable workflow uses actions:write. Worker jobs only receive read access via GITHUB_TOKEN. The existing coverage consumer receives both selected group artifacts under the parent generation.
Validation: workflow lint, immutable CS test body contract, timeout and race unit tests. The previous mixed-site drill used the old 10-minute threshold. The failed-only rerun on #32922 passed: the previously successful JED group 0 worker was not rerun; only group 1 ran again on MTY. Both profiles were merged and 84.46% UT statement coverage was reported on the reviewed PR head. This was not a one-hour congestion drill.