Skip to content

ci: restore sharded race UT execution - #28880

Merged
XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue-28538-restore-ut-sharding
Sep 15, 2026
Merged

XuPeng-SH merged 2 commits into
matrixorigin:mainfrom
XuPeng-SH:codex/issue-28538-restore-ut-sharding

Conversation

@XuPeng-SH

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

Related to #28538

What this PR does / why we need it:

The complete Linux race-UT suite is currently invoked with UT_SHARD=all on
one runner. Its independent light, issues, embedded, and heavy-plan stages
therefore share one 70-minute outer deadline. Repeated runs, including PR
#28862, reach that deadline and cancel otherwise-running tests without a
terminal assertion or race report.

This restores the existing reusable CI workflow's complete four-way shard
contract by passing ut_sharded: true from the MatrixOne caller. Each shard
retains the same race flags, package selection, per-test timeout, and diagnostic
handling; the reusable workflow's summary job remains an AND gate, so a failed,
cancelled, or missing shard cannot be reported as success. UT coverage and its
artifact prerequisites are unchanged and remain independent of the race-UT
matrix.

The workflow contract test now asserts the two functional inputs without
coupling the test to explanatory comment text.

Test plan

  • node --test .github/ci/change-scope.test.cjs (13/13)
  • GOWORK=off go test -race ./optools -count=1
  • bash -n optools/run_ut.sh
  • GOWORK=off go run github.com/rhysd/actionlint/cmd/actionlint@latest .github/workflows/entrypoint.yaml
  • Ruby YAML parse of .github/workflows/entrypoint.yaml
  • git diff --check

The first post-merge CI run must confirm all four shard jobs start and that the
required-check summary remains green only when every shard succeeds. It should
also record each shard's elapsed/queue time, peak resource usage, and total
runner-minutes. This change accepts the extra runner capacity as the explicit
reliability trade-off; it does not claim that total runner cost decreases.

@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner September 14, 2026 16:06
@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 →

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT-6 medium deep review comment at exact head 7bf70f5. The workflow change and its contract test are consistent with the reusable workflow's four disjoint shards and AND-gated summary. No blocking defect found in this declarative change. Validation caveat: this head's pull_request_target run skipped ; the Go UT suite ran as one unsharded job (59m12s), while the separate contract test passed. Please ensure the first applicable post-merge CI actually executes all four shards and the combined success gate, and capture elapsed/queued time and runner minutes.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT-6 medium deep review comment at exact head 7bf70f5. The workflow change and its contract test are consistent with the reusable workflow's four disjoint shards and AND-gated summary. No blocking defect found in this declarative change. Validation caveat: this head's pull_request_target run skipped the Matrixone CI execution job with inputs.ut_sharded; the Go UT suite ran as one unsharded job (59m12s), while the separate contract test passed. Please ensure the first applicable post-merge CI actually executes all four shards and the combined success gate, and capture elapsed/queued time and runner minutes.

@XuPeng-SH

Copy link
Copy Markdown
Contributor Author

Post-rebase status: the PR branch is now at a6d7f3da13a73d2cde809342604e3066862bc435, rebased onto main afbb411d5d and pushed to the existing XuPeng-SH feature ref. The workflow change and contract tests have no PR-owned blocker. The first applicable post-merge run still needs to confirm four disjoint shards, the AND gate, and queue/elapsed/runner-minute metrics; CI is intentionally not awaited.

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPT-6 medium deep review at a6d7f3da13a73d2cde809342604e3066862bc435 — implementation PASS; no code blocker found. The shard-stage mapping is complete and disjoint (light+hnsw, serial, embedded, heavy+plan), and the reusable workflow’s fail-fast: false matrix plus required summary job forms an AND gate over all four shards. Package selection and tests are unchanged; this PR only changes the trusted caller input and its workflow contract test.

Validation boundary: current-head run 34902592518 is green, but it did not execute the new sharded setting. It ran a single UT Test on Ubuntu/x86 for 58m03s, and the ut_sharded summary job was skipped. Its referenced reusable workflow revision is e43e7077e87ebdcefa66b12e3b1778b984cc3ce2, which supports the four-shard mode; pull_request_target still uses the base-branch caller workflow for this run. The PR body explicitly records the first post-merge run as the acceptance check. Keep that check outstanding until all four shard jobs start and succeed and the summary AND gate is green; record elapsed time, queue time, peak resource use, and total runner-minutes as planned. This is a verification limitation, not a finding against the static shard contract.

@XuPeng-SH
XuPeng-SH merged commit 1a8bf39 into matrixorigin:main Sep 15, 2026
3 of 6 checks passed
@XuPeng-SH
XuPeng-SH deleted the codex/issue-28538-restore-ut-sharding branch September 15, 2026 01:01
XuPeng-SH added a commit that referenced this pull request Sep 15, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to #27822 and #28538. Reverts #28880.

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

Reverts commit 1a8bf39, restoring
`ut_sharded: false` and the corresponding workflow contract test. The
complete race-UT suite runs on one runner again.

After sharding was enabled, the four UT shards passed in PR #28830, but
the required summary check failed before runner allocation because the
reusable workflow requires five EE_DB secrets. Those secrets exist in
the ci environment, which the summary job does not select. Failure
evidence:
https://github.com/matrixorigin/matrixone/actions/runs/34916576954/job/104224671932

This rollback disables the affected summary path; it does not repair the
shared workflow secret contract. It also restores the previous
single-runner aggregate timeout exposure tracked in #28538.

### Test plan

- Passed: `node --test .github/ci/change-scope.test.cjs` (13/13).
- Passed: `git diff --cached --check` before commit.
- Confirm CI runs the complete suite on one runner and publishes the
existing required UT check.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#28538

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

The complete Linux race-UT suite is currently invoked with
`UT_SHARD=all` on
one runner. Its independent light, issues, embedded, and heavy-plan
stages
therefore share one 70-minute outer deadline. Repeated runs, including
PR
matrixorigin#28862, reach that deadline and cancel otherwise-running tests without a
terminal assertion or race report.

This restores the existing reusable CI workflow's complete four-way
shard
contract by passing `ut_sharded: true` from the MatrixOne caller. Each
shard
retains the same race flags, package selection, per-test timeout, and
diagnostic
handling; the reusable workflow's summary job remains an AND gate, so a
failed,
cancelled, or missing shard cannot be reported as success. UT coverage
and its
artifact prerequisites are unchanged and remain independent of the
race-UT
matrix.

The workflow contract test now asserts the two functional inputs without
coupling the test to explanatory comment text.

### Test plan

- `node --test .github/ci/change-scope.test.cjs` (13/13)
- `GOWORK=off go test -race ./optools -count=1`
- `bash -n optools/run_ut.sh`
- `GOWORK=off go run github.com/rhysd/actionlint/cmd/actionlint@latest
.github/workflows/entrypoint.yaml`
- Ruby YAML parse of `.github/workflows/entrypoint.yaml`
- `git diff --check`

The first post-merge CI run must confirm all four shard jobs start and
that the
required-check summary remains green only when every shard succeeds. It
should
also record each shard's elapsed/queue time, peak resource usage, and
total
runner-minutes. This change accepts the extra runner capacity as the
explicit
reliability trade-off; it does not claim that total runner cost
decreases.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#27822 and matrixorigin#28538. Reverts matrixorigin#28880.

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

Reverts commit 1a8bf39, restoring
`ut_sharded: false` and the corresponding workflow contract test. The
complete race-UT suite runs on one runner again.

After sharding was enabled, the four UT shards passed in PR matrixorigin#28830, but
the required summary check failed before runner allocation because the
reusable workflow requires five EE_DB secrets. Those secrets exist in
the ci environment, which the summary job does not select. Failure
evidence:
https://github.com/matrixorigin/matrixone/actions/runs/34916576954/job/104224671932

This rollback disables the affected summary path; it does not repair the
shared workflow secret contract. It also restores the previous
single-runner aggregate timeout exposure tracked in matrixorigin#28538.

### Test plan

- Passed: `node --test .github/ci/change-scope.test.cjs` (13/13).
- Passed: `git diff --cached --check` before commit.
- Confirm CI runs the complete suite on one runner and publishes the
existing required UT check.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#28538

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

The complete Linux race-UT suite is currently invoked with
`UT_SHARD=all` on
one runner. Its independent light, issues, embedded, and heavy-plan
stages
therefore share one 70-minute outer deadline. Repeated runs, including
PR
matrixorigin#28862, reach that deadline and cancel otherwise-running tests without a
terminal assertion or race report.

This restores the existing reusable CI workflow's complete four-way
shard
contract by passing `ut_sharded: true` from the MatrixOne caller. Each
shard
retains the same race flags, package selection, per-test timeout, and
diagnostic
handling; the reusable workflow's summary job remains an AND gate, so a
failed,
cancelled, or missing shard cannot be reported as success. UT coverage
and its
artifact prerequisites are unchanged and remain independent of the
race-UT
matrix.

The workflow contract test now asserts the two functional inputs without
coupling the test to explanatory comment text.

### Test plan

- `node --test .github/ci/change-scope.test.cjs` (13/13)
- `GOWORK=off go test -race ./optools -count=1`
- `bash -n optools/run_ut.sh`
- `GOWORK=off go run github.com/rhysd/actionlint/cmd/actionlint@latest
.github/workflows/entrypoint.yaml`
- Ruby YAML parse of `.github/workflows/entrypoint.yaml`
- `git diff --check`

The first post-merge CI run must confirm all four shard jobs start and
that the
required-check summary remains green only when every shard succeeds. It
should
also record each shard's elapsed/queue time, peak resource usage, and
total
runner-minutes. This change accepts the extra runner capacity as the
explicit
reliability trade-off; it does not claim that total runner cost
decreases.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#27822 and matrixorigin#28538. Reverts matrixorigin#28880.

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

Reverts commit 1a8bf39, restoring
`ut_sharded: false` and the corresponding workflow contract test. The
complete race-UT suite runs on one runner again.

After sharding was enabled, the four UT shards passed in PR matrixorigin#28830, but
the required summary check failed before runner allocation because the
reusable workflow requires five EE_DB secrets. Those secrets exist in
the ci environment, which the summary job does not select. Failure
evidence:
https://github.com/matrixorigin/matrixone/actions/runs/34916576954/job/104224671932

This rollback disables the affected summary path; it does not repair the
shared workflow secret contract. It also restores the previous
single-runner aggregate timeout exposure tracked in matrixorigin#28538.

### Test plan

- Passed: `node --test .github/ci/change-scope.test.cjs` (13/13).
- Passed: `git diff --cached --check` before commit.
- Confirm CI runs the complete suite on one runner and publishes the
existing required UT check.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#28538

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

The complete Linux race-UT suite is currently invoked with
`UT_SHARD=all` on
one runner. Its independent light, issues, embedded, and heavy-plan
stages
therefore share one 70-minute outer deadline. Repeated runs, including
PR
matrixorigin#28862, reach that deadline and cancel otherwise-running tests without a
terminal assertion or race report.

This restores the existing reusable CI workflow's complete four-way
shard
contract by passing `ut_sharded: true` from the MatrixOne caller. Each
shard
retains the same race flags, package selection, per-test timeout, and
diagnostic
handling; the reusable workflow's summary job remains an AND gate, so a
failed,
cancelled, or missing shard cannot be reported as success. UT coverage
and its
artifact prerequisites are unchanged and remain independent of the
race-UT
matrix.

The workflow contract test now asserts the two functional inputs without
coupling the test to explanatory comment text.

### Test plan

- `node --test .github/ci/change-scope.test.cjs` (13/13)
- `GOWORK=off go test -race ./optools -count=1`
- `bash -n optools/run_ut.sh`
- `GOWORK=off go run github.com/rhysd/actionlint/cmd/actionlint@latest
.github/workflows/entrypoint.yaml`
- Ruby YAML parse of `.github/workflows/entrypoint.yaml`
- `git diff --check`

The first post-merge CI run must confirm all four shard jobs start and
that the
required-check summary remains green only when every shard succeeds. It
should
also record each shard's elapsed/queue time, peak resource usage, and
total
runner-minutes. This change accepts the extra runner capacity as the
explicit
reliability trade-off; it does not claim that total runner cost
decreases.
VioletQwQ-0 pushed a commit to VioletQwQ-0/matrixone that referenced this pull request Sep 17, 2026
## What type of PR is this?

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

## Which issue(s) this PR fixes:

Related to matrixorigin#27822 and matrixorigin#28538. Reverts matrixorigin#28880.

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

Reverts commit 1a8bf39, restoring
`ut_sharded: false` and the corresponding workflow contract test. The
complete race-UT suite runs on one runner again.

After sharding was enabled, the four UT shards passed in PR matrixorigin#28830, but
the required summary check failed before runner allocation because the
reusable workflow requires five EE_DB secrets. Those secrets exist in
the ci environment, which the summary job does not select. Failure
evidence:
https://github.com/matrixorigin/matrixone/actions/runs/34916576954/job/104224671932

This rollback disables the affected summary path; it does not repair the
shared workflow secret contract. It also restores the previous
single-runner aggregate timeout exposure tracked in matrixorigin#28538.

### Test plan

- Passed: `node --test .github/ci/change-scope.test.cjs` (13/13).
- Passed: `git diff --cached --check` before commit.
- Confirm CI runs the complete suite on one runner and publishes the
existing required UT check.

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working kind/test-ci size/S Denotes a PR that changes [10,99] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants