Skip to content

perf(ci): parse UT setup reports once - #32762

Merged
XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:codex/main-ci-ut-summary-single-pass-20261115
Nov 15, 2026
Merged

XuPeng-SH merged 1 commit into
matrixorigin:mainfrom
XuPeng-SH:codex/main-ci-ut-summary-single-pass-20261115

Conversation

@XuPeng-SH

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

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • Improvement
  • Test and CI

Which issue(s) this PR fixes:

Related to #27705 and #27076, earlier work to reduce CI wall time and duplicated setup/report work. Both issues are already closed; this is a follow-up.

This also continues the main CI optimization after PR #32717.

What this PR does / why we need it:

The UT setup summary previously decoded the complete JSON report twice: once for setup totals and once for admission-holder evidence. It now gathers both during the normal scan, retaining the existing independent filters, error ordering and output. Provisional holder state is bounded before the first valid setup total; if that bound is exceeded and totals are found, the existing separate holder scan is used as a fallback. Reports without totals do not retain unbounded holder state.

On one 329 MB historical local race report, three alternating warm-cache runs of the summary parser took 4.548–4.585 s before and 2.176–2.204 s after. On a 64 MB SQL integration report, the corresponding times were 0.748–0.754 s and 0.360–0.365 s. In each comparison stdout, stderr and exit status were identical. These measurements are local parser times, not an estimate of full CI job savings; this change alone does not reach the one-hour race UT target.

No test cases, test order, runner count, DWARF flags, or report contents are changed.

Validation

  • Full ./optools normal test run: 94 top-level tests passed, no skips.
  • Six relevant setup-summary and admission-holder tests passed in normal and -race modes, including malformed JSON, independent filters, bounded provisional state and error precedence.
  • Differential controls exercised large/no-total reports and randomized event streams; before/after output and exit behavior matched.
  • go vet, repository-configured make static-check-selected STATIC_CHECK_PACKAGES=./optools, gofmt and git diff --check passed.

On the previous head d334217316d, CI run 43691228594 attempt 2 passed SCA, UT coverage and both BVT jobs, but race UT failed in logservicedriver.Test_Replayer9: an injected cancellation cause was reported as context canceled. A separate WAL repair remains under investigation. On the rebased head 4b6cedf4317cea5dbeaea7c097cff41f6e00ee3b, CI run 43703688237 passed UT race, SCA, UT coverage, both BVT jobs and CI Required. The full UT race job took 65m28s (Unit Testing 63m30s); the previous successful main-target job took 65m29s, so this does not establish a whole-job speedup.

@XuPeng-SH
XuPeng-SH requested a review from fengttt as a code owner November 15, 2026 07:43
@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 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: d334217316d85278d812fd4184272248a3c479d4

Review linked issue or PR description changed before publication; a fresh contextual review is queued.

@mergify

mergify Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: d334217316d85278d812fd4184272248a3c479d4

Review completed. Read the assessment.

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

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

Commit: d334217316d85278d812fd4184272248a3c479d4

Assessment: approve

The updated issue references resolve the prior linkage concern. The optimization reuses existing holder logic and a bounded fallback while preserving filters, output and error ordering. Fresh comparisons passed across 1,030 cases; no actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0

Validation:

  • Reviewed both changed files, affected consumers, all four discussion entries and complete linked issue context. Verified unchanged frozen inputs before reusing prior structural analysis.

  • PASS: 1,026 fresh differential cases covering randomized streams, malformed input, independent filters, helper behavior, fallback and error precedence. differential.log; checks/1794729799808909501-2.json.

  • PASS: four exact event-count/byte-budget boundary comparisons. boundary.log; checks/1794729870740011512-2.json.

  • PASS: Python syntax, gofmt, git diff --check, source/patch identity and updated description requirements. static-audit.log; checks/1794729870639807509-2.json.

  • Confirmed installed Go 1.26.6; this is an environment check, not a test pass. go-environment.log; checks/1794729831618365358-2.json.

Limitations:

  • Go suites were not rerun because the checkout requires Go 1.27.1. The PR reports 94 owning-package tests and six relevant normal/race tests passing; raw author artifacts were unavailable.

  • Reported large-report timings were not independently reproduced. Differential checks exclude traceback source-file/line formatting.

  • Hosted CI remains failed/pending/skipped in the supplied snapshot without a causal preflight failure log; the description correction does not establish CI recovery.

@XuPeng-SH

XuPeng-SH commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 4b6cedf4317cea5dbeaea7c097cff41f6e00ee3b

Review completed. Read the assessment.

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

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

Commit: 4b6cedf4317cea5dbeaea7c097cff41f6e00ee3b

Assessment: approve

The change shares existing holder logic with the normal JSON scan while preserving filters, output and error precedence. Bounded provisional tracking and reuse of the original scan as a fallback justify the added state and prevent unbounded holder retention in reports without totals.

Model: gpt-6.1-sol / max

Session: 01a1a004-90c3-73b1-acc9-3d4636452003 · slot 0 · generation 0

Validation:

  • Reviewed both changed files, the run_ut.sh consumer, all six discussion entries and complete linked-issue context.

  • Reused 1,026 differential and four exact-boundary comparisons after verifying unchanged candidate/base optools trees, module inputs, Python build, receipts and retained logs.

  • Current-head source/patch identity, Python syntax, gofmt, diff whitespace, description and discussion-coverage audit passed; evidence retained in review-audit.json.

Limitations:

  • Go suites were not rerun: installed Go is 1.26.6 while the repository requires 1.27.1. The reported 94 owning-package tests, six normal/race tests and vet/lint results remain attributed author evidence.

  • Reported large-report timing gains were not independently reproduced and do not establish full CI wall-time savings.

  • UT, SCA, coverage and BVT checks remain pending for the rebased head; pending or skipped checks are not passes.

@XuPeng-SH
XuPeng-SH merged commit 0d0413e into matrixorigin:main Nov 15, 2026
@XuPeng-SH
XuPeng-SH deleted the codex/main-ci-ut-summary-single-pass-20261115 branch November 15, 2026 12:46

This branch was previously deployed

1 inactive deployment
ci — 4b6cedf4 Deployed Nov 15, 2026 by XuPeng-SH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/enhancement kind/test-ci size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants