Repository navigation
ci: collect UT Coverage directly from the two admitted workers - #513
Merged
Merged
Conversation
1 task done
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
mixedwhen the storage modes differ. The combinedelapsed_secondsis 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
failedif 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
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.
coverage_ready=trueandcoverage_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 assertionsfailed. Rerunning failed jobs preserved the successful sibling's worker ID. A collector startup failure also returnedfailed. A cancelled worker published no combined coverage artifacts. The legacy workflow forwarded its own result. Failed-only retry · Startup failure · Worker cancellation · Legacy routeWorker 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.