Skip to content

ci: show GROUP0 and GROUP1 for dedicated Coverage workers - #33176

Merged
XuPeng-SH merged 23 commits into
matrixorigin:mainfrom
Ariznawlll:codex/coverage-short-title
Nov 27, 2026
Merged

XuPeng-SH merged 23 commits into
matrixorigin:mainfrom
Ariznawlll:codex/coverage-short-title

Conversation

@Ariznawlll

@Ariznawlll Ariznawlll commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

What type of PR is this?

  • Test and CI

Which issue(s) this PR fixes:

Fixes #33177.

What this PR does / why we need it:

Display GROUP0 and GROUP1 on dedicated Coverage UT worker runs. A skipped identity job publishes the canonical dispatch fingerprint without taking a runner. Completed-parent cleanup uses the exact parent run, attempt, source head and worker identity, and retries briefly when GitHub has yet to index attempt jobs. The long-title path supports older runs.

The coordinator, both workers and the identity contract pin the CI main commit from #496. It verifies previous grants against the worker attempt that could execute UT and isolates temporary same-title metadata failures during dispatch reconciliation. Production routing uses the shared CS queue and existing Shanghai fallback.

All 69 MatrixOne Node tests passed against the merged CI SHA, including the cross-repository test for an independently rerun worker, temporary 404 and 503 responses, one replacement dispatch, and cleanup that preserves same-named workers from other parents or attempts. The merged CI source tree is identical to the reviewed #496 head, which passed 107 selected Python tests. The GitHub identity fixture verifies expanded skipped markers on the live Actions API.

Production short-title links, rerun and cancellation still need verification on the deployed default branch.

@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 Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 9a8d3102c121111fe7fc6003979cb0e872e0edee

Review completed. Read the assessment.

@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.

mo-bot review · mo-bot-local · review

Commit: 9a8d3102c121111fe7fc6003979cb0e872e0edee

Assessment: request_changes

The cleanup reuses the existing cancellation controller and preserves legacy titles, but the companion integration and real GitHub identity validation required to deliver this change are incomplete. The requested short names and live progress cannot be demonstrated with the current pins. The remaining discussion consists of service notices.

Model: gpt-6.1-terra / max

Session: 01a20ecc-a69f-78c1-ae97-2cd9ea18b06c · slot 1 · generation 6

  • P2 .github/workflows/coverage-standby-worker.yaml:3: Coverage UT is dispatched by the currently pinned parent workflow after this head is merged.
    Impact: The parent does not send title_version 2, so workers retain the long titles and the linked issue's group-name and live-progress behavior is not delivered.
    Evidence: The new title requires title_version == 2; .github/workflows/entrypoint.yaml:143 still pins the old parent, and the worker pins at lines 22 and 40 are also unchanged. The PR body explicitly says the pins must be updated together after the companion change and that the present parent does not enable short titles. Integrate the actual companion revision and verify the complete parent/worker behavior before treating this as the issue fix.

  • P2 .github/ci/cancel-superseded.cjs:210: A short-title child is queued or running when its parent finishes and the cancellation controller fetches its jobs.
    Impact: Cleanup can identify the child only if GitHub exposes exactly one completed, skipped reusable job with the expected name, run ID and attempt. Without that metadata, the child is silently skipped and may continue consuming a coverage runner; a synthetic test does not establish the platform contract.
    Evidence: Lines 210-219 require those fields and lines 132-134 reject a short title without them. The new test fabricates the job records, local_validation is empty, and the PR body itself says the skipped-job metadata still needs verification. The linked issue requires verification in GitHub Actions and isolation of same-named runs. Exercise the integrated workflow for both pools, including a queued and a running child and another parent/attempt as a control, and verify correct cancellation and retry identity using real job metadata.

Validation:

  • At the frozen head, node --test .github/ci/cancel-superseded.test.cjs passed all 31 tests; checks/1795544979854058464-2.json and node-tests-source.log retain the command, source fingerprint, exit and full output.

  • git diff --check b6f4ca0 9a8d310 passed; checks/1795544979593357606-2.json and diff-check-source.log retain the receipt and output.

Limitations:

  • No real GitHub Actions run of the changed workflow or companion integration was supplied or performed; the existing PR checks do not establish that boundary.

  • actionlint was unavailable locally; its reported author run has no retained local terminal evidence in this assignment.

@matrix-meow matrix-meow added size/L Denotes a PR that changes [500,999] lines and removed size/M Denotes a PR that changes [100,499] lines labels Nov 26, 2026
@XuPeng-SH

XuPeng-SH commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · done

Commit: 486f9703f3747f2e5f936dfd37867a4204bf1c0a

Review completed. Read the assessment.

@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.

mo-bot review · mo-bot-local · review

Commit: 486f9703f3747f2e5f936dfd37867a4204bf1c0a

Assessment: request_changes

The matching companion pins and new contract checks address the earlier integration concerns, but cleanup does not retry one transient identity-lookup response. A worker can consequently remain active after its parent finishes.

Model: gpt-6.1-terra / max

Session: 01a2172e-434d-7533-8bcf-86e4c749a300 · slot 1 · generation 20

  • P2 .github/ci/cancel-superseded.cjs:211: A completed parent owns a queued or running GROUP0/GROUP1 worker whose run is visible, but the attempt-jobs endpoint temporarily returns HTTP 404 before its identity metadata is available.
    Impact: Cleanup records the lookup as a final failure and never retries or cancels that worker. The worker can remain queued or running after its parent has terminated.
    Evidence: The 404 handler covers getWorkflowRun only; an error from listJobsForWorkflowRunAttempt is not converted to CoverageIdentityPending, so the bounded retry loop skips the worker. Controlled queued and running probes show an empty jobs response is retried and cancelled, while an initial 404 receives one lookup and no cancellation. The new metadata-contract workflow also treats a 404 from this endpoint as retryable. Retry that response within the existing bound while retaining full identity verification before cancellation.

Validation:

  • Private /tmp and loopback preflight passed: checks/1795712098944934120-5.json and preflight.log.

  • The cancellation, change-scope and identity-contract Node suites passed 67 tests with no skips: checks/1795712110019584194-5.json and node-tests.log.

  • Controlled queued and running worker probes confirmed the 404-versus-empty-response behavior: checks/1795712159636871111-5.json, checks/1795712418669193576-6.json and their corresponding probe logs.

  • The frozen CI snapshot records successful pinned dispatch/retry/cleanup and active-run identity metadata contract jobs.

Limitations:

  • The read-only checkout of the exact pinned companion repository timed out, so its dispatcher and CS setup internals could not be independently inspected. The frozen CI result covers the selected companion tests; its cross-parent retry and cleanup fixture uses simulated Actions API responses.

  • No live cross-parent cancellation or retry was performed during this review.

Keep the upstream gitlink-aware coverage workflows and check the same immutable CI revision in the identity contract.
@Ariznawlll

Copy link
Copy Markdown
Collaborator Author

@XuPeng-SH 鹏哥,麻烦复审 #33176 当前提交 324d849。

  • 上一轮提到的 attempt-jobs 临时 404 已纳入原有的有界重试,只有重新核对 worker 身份后才取消。已通过 68 项 MatrixOne 回归、92 项 CI companion 测试和跨仓库合同测试。
  • 调度、CS worker 和 IDC worker 都使用同一 CI 提交 4972bd963f4cc9510266323b14446a8edcda2bfc。
  • 两组隔离试跑都通过。GROUP1 在确认原共享池任务取消后到 MNL2;GROUP0 没被它的切换打断,到自己的门槛后独立切到 JED。覆盖率 84.69% 已写回同一 PR SHA,合并产物可查。

这条是隔离试跑的回执,不替代正式 CI 的结论。

@XuPeng-SH

XuPeng-SH commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

mo-bot review · mo-bot-local · superseded

Commit: d833edc819a814e3585b7ebce4ab25f80aa7f61b

"interrupted"

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/L Denotes a PR that changes [500,999] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tech Request]: Improve Coverage UT group names and live progress

4 participants