Skip to content

ci: verify coverage fixtures against the PR merge base - #516

Merged
XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:ci/coverage-target-fixtures
Nov 30, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:ci/coverage-target-fixtures

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

Problem

matrixorigin/matrixone#33388 changed object_storage_arguments_test.go on 4.2-dev. Unrelated PRs inheriting the reviewed change, including matrixorigin/matrixone#33532, fell back to Shanghai because the CI repository still listed the previous Git blob. Both release and main carried these per-file lists. Earlier updates required separate CI PRs such as #497 and #507.

Change

Use the common ancestor of the protected target branch and the verified PR head as the source of the four S3 test files. Compare the regular Git blobs at both immutable revisions. An inherited change becomes eligible automatically, even when the target advances after a PR branches. A PR that changes a fixture itself, lacks one, or encounters incomplete GitHub metadata uses Shanghai. A workflow notice explains that decision.

The entry reads the merge base from a paginated GitHub comparison and fetches just the four tree entries per revision with one GraphQL query. Initial runs and group retries use the same check. The existing live membership, head, retry and worker smoke checks still apply. This removes both blob registries, the release JSON snapshot, and its separate network-based check.

Validation

  • Replayed 60 real PR heads against GitHub and cross-checked the decisions with Git trees. All 45 previous two-group admissions were preserved. Three release PRs regained eligibility ([4.2-dev] Fix ordered ODKU key ownership and action semantics on 4.2 matrixone#31979, [4.2-dev] perf(sql): use covering index order for bounded scans matrixone#33532 and [4.2-dev] build: upgrade to Go 1.27.1 matrixone#33538). The other 12 kept their Shanghai route. Two PRs merged during the replay and were compared at their immutable heads.
  • Replayed the complete event adapter for five open PRs. The four with matching fixtures emitted an authorization receipt. The older release PR missing the S3 fixture used Shanghai.
  • The two metadata responses together measured 26–51 kB per head in this sample (median 33 kB). The old package-directory read measured 152–184 kB in the original reproductions. Each new response is capped at 128 KiB.
  • 165 Linux/amd64 Coverage tests passed with networking disabled, including storage smoke, placement, standby and retry contracts. The 18 entry tests and actionlint 1.7.12 also passed. Both MatrixOne consumer contract tests passed after updating the four pins in an isolated copy of main at 46ba076373d0.

Rollout

After this PR is squash-merged, update the four CI pins across the MatrixOne main entrypoint, standby worker and identity-contract workflows to the resulting upstream commit. The one rollout serves both main and 4.2-dev. This change uses the existing S3 authorization and worker pools.

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

- [ ] API-change
- [ ] BUG
- [ ] Improvement
- [ ] Documentation
- [ ] Feature
- [x] Test and CI
- [ ] Code Refactoring

## Which issue(s) this PR fixes:

Rolls out matrixorigin/CI#516. An example of the previous Shanghai
fallback was #33532.

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

Pin the UT Coverage entrypoint, both standby worker routes and the
cross-repository contract to `f20738ba8bd33a8dceec265ed9193e064608a01e`,
the upstream squash commit of matrixorigin/CI#516. The protected
MatrixOne entrypoint on `main` serves eligible PRs targeting both `main`
and `4.2-dev`. PRs that inherit the S3 tests from their target branch
can now keep two-group coverage as those files evolve.

### Validation

- The MatrixOne cross-repository contract detected the previous pin when
run against the merged companion. After updating all four references, 76
MatrixOne tests passed across dispatch, identity, retry and cleanup.
- 165 Coverage companion tests passed on Linux/amd64 at the exact
upstream revision with networking disabled.
- Actionlint 1.7.12 passed for all three edited workflows. Verified the
complete diff changes four immutable SHA references.
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