Skip to content

ci: collect UT Coverage directly from the two admitted workers - #513

Merged
XuPeng-SH merged 5 commits into
mainfrom
ci/coverage-collect-once
Nov 30, 2026
Merged

XuPeng-SH merged 5 commits into
mainfrom
ci/coverage-collect-once

Conversation

@XuPeng-SH

@XuPeng-SH XuPeng-SH commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Changes

In a sample of 40 MatrixOne runs on #508, one group collector waited 53m50s for 7s of work. A separate job waited 41m56s to report the outcome. This change removes both group collectors and the final status job.

Each selector retains ownership of its worker, cancellation and retry. After both groups succeed, one collector on the configured control pool fetches their four original artifacts. It checks the admitted commit and package scope, then streams the union of the compact coverage profiles. The published artifact names and profile format stay compatible with the caller.

The combined skip manifest now sums every Go test event across both workers, including events that occur in just one group. It records each worker’s runner, storage mode and UT duration. A cross-site run reports mixed when the storage modes differ. The combined elapsed_seconds is null because the individual durations cannot establish the wall time of parallel groups.

GitHub job conclusions supply the reusable workflow's status. An admitted run reports failed if retaining the authorization receipt fails, a worker fails, or the collector fails. Failure before admission leaves both coverage outputs empty. A failure that prevents collection uses no additional runner to report its outcome.

Optional capacity discovery starts within four minutes of the first preflight step. Tool preparation and the ARC lookup share a 40-second budget. The job allows one extra minute for runner initialization. A cold x64 control runner fetches a checksum-pinned 10.72 MiB Kubernetes client package. Collection uses the runner's Python. Compared with #508, this removes four intermediate artifact uploads and four downloads.

The main fixture allowlist includes the reviewed S3 test file from matrixorigin/matrixone#32992. That change adds a backend capability check using zero-value storage implementations. The four fixture files on the current 4.2-dev branch still match its separate allowlist.

Verification

Production worker artifacts replayed on CS Packages Previously reported start events Corrected start events Collector job
main 505 251 505 40s
4.2-dev 464 236 464 21s

The final collector downloaded all four artifacts in each replay. Both profiles matched the published files byte for byte. The full manifests matched independent sums from both original worker files and the previously published package and skip lists. The 4.2-dev replay recovered seven pause and seven continue events present only in group 1. Timings are individual job durations including transfers. They do not measure a full UT run.

  • A real GitHub artifact-name collision made the required receipt upload fail with HTTP 409. The caller received coverage_ready=true and coverage_status=failed. A separate failure before admission produced two empty outputs. Both cases skipped the workers and collector. The assertion job passed inside the intentionally failed run. Receipt upload · Caller assertions
  • A worker failure skipped collection and returned failed. Rerunning failed jobs preserved the successful sibling's worker ID. A collector startup failure also returned failed. A cancelled worker published no combined coverage artifacts. The legacy workflow forwarded its own result. Failed-only retry · Startup failure · Worker cancellation · Legacy route
  • A 250s-old preflight skipped the optional download. A stalled download returned to selection in 40s. A cold runner read all 11 approved pools across JED, MNL2, MTY and RUH. Deadline and fallback · Full inventory
  • The streaming merger matched the Go compactor on 32 pairs of profiles and 64,064 raw records. The Linux script suite reported 255 passed and three existing expected failures. All 67 MatrixOne caller contracts passed. Workflow validation · MatrixOne pin and identity checks

Worker profiles expire after seven days. If a required profile has expired, rerun both groups to recreate the inputs. The caller rollout is matrixorigin/matrixone#33516.

Related to matrixorigin/matrixone#33440.

@XuPeng-SH
XuPeng-SH merged commit b1516cf into main Nov 30, 2026
1 check passed
@XuPeng-SH
XuPeng-SH deleted the ci/coverage-collect-once branch November 30, 2026 11:45
XuPeng-SH added a commit to matrixorigin/matrixone that referenced this pull request Nov 30, 2026
## What type of PR is this?

- [x] Test and CI

## Which issue(s) this PR fixes:

Related to #33440 and #33416.

## What this PR does / why we need it:

Pin the coverage entrypoint, the CS and Shanghai worker calls, and the
identity contract to the squash commit that landed matrixorigin/CI#513,
`b1516cf9a12017cf5e763036dc42fdbca881d661`. These four pins are the
entire change. The trusted main entrypoint serves eligible PRs targeting
both main and 4.2-dev. [Merged shared
workflow](matrixorigin/CI@b1516cf)
· [Release-target
example](https://github.com/matrixorigin/matrixone/actions/runs/46373445675)

After both workers pass, one collector on the control pool verifies the
admitted commit and package scope and merges the original profiles. The
two per-group collection jobs and final status job disappear. Selection,
cancellation and retry stay with each worker's selector.

## Verification

- Checked both target branches against the merged admission code. The
latest reviewed main S3 fixture and the 4.2-dev fixture both qualify.
The final pin passed 76 local contract tests. GitHub also passed the
dispatch, retry, cleanup, identity and CI scope checks on this revision.
[Dispatch and
identity](https://github.com/matrixorigin/matrixone/actions/runs/46412871419)
· [CI
scope](https://github.com/matrixorigin/matrixone/actions/runs/46412871023)
· [Shared CI
validation](https://github.com/matrixorigin/CI/actions/runs/46411437408)
- Replaying both branches' original UT and BVT artifacts through the
coverage gate reproduced the published merged profiles, changed-line
profiles and summary JSON byte for byte. Main covered 19 of 22 changed
lines and 4.2-dev covered 25 of 25. [Main
coverage](https://github.com/matrixorigin/matrixone/actions/runs/46371662496/job/141715430905)
· [4.2-dev
coverage](https://github.com/matrixorigin/matrixone/actions/runs/46373445675/job/141757419007)
- A real receipt-upload failure returned `ready=true, status=failed`.
Failure before admission left both outputs empty. A cancelled worker
published no combined profile, and a failed-only retry retained the
successful sibling's output. [Receipt
assertions](https://github.com/matrixorigin/matrixone/actions/runs/46406675731/job/141806967441)
·
[Cancellation](https://github.com/matrixorigin/matrixone/actions/runs/46406675732/attempts/2)
·
[Retry](https://github.com/matrixorigin/matrixone/actions/runs/46400330698/attempts/2)

## Rollout

The required run for this PR uses the existing default-branch entrypoint
and its previous pin, `d1dd33c`. Merging this PR activates the new
collector for subsequent eligible main and 4.2-dev runs. [Pre-merge CI
run](https://github.com/matrixorigin/matrixone/actions/runs/46412879471)
Reverting the four pins restores the preceding collector.
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.

1 participant