Skip to content

perf(test): reduce CI case and scheduling overhead - #32645

Merged
XuPeng-SH merged 7 commits into
mainfrom
ci/bvt-case-balance
Nov 13, 2026
Merged

XuPeng-SH merged 7 commits into
mainfrom
ci/bvt-case-balance

Conversation

@XuPeng-SH

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

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 #28933.

What this PR does / why we need it:

Reduce repeated test work and repair cross-CN cleanup observation and child-test failure ownership without changing production code or adding CI runners. The UT budget remains one 8-CPU/16-GiB runner.

  • Preserve the complete 1,890-script BVT inventory and required ordering; move only the 122 git4data scripts to group 1 and handle an empty resource argument on Bash 3.2.
  • Reuse the identical second join-order dataset while preserving all six schemas, 12 million rows, statistics, queries and explain/results. Factor the duplicated self-account snapshot matrix into the unchanged 556-statement implicit matrix plus 28 explicit-account differential statements.
  • Keep all 25 view-metadata inputs and their value/name/wire/type/current/legacy replay oracles. Recreate five distinct type/boundary representatives after teardown using their original names and expressions.
  • Retain all 32 million S3FIFO model membership observations while avoiding successful reflective assertions. Run the same 50 independent float/session planner scenarios under the existing parallel cap, with a sequential parent owning protocol settings through child cleanup.
  • Keep the same runner and existing dispatch/report owners. On the measured Linux/eight-task/two-plan-process/two-shard/overlap profile, reserve two plan slots and admit two resource-heavy tasks instead of one. Resolve the fallback after the explicit engine cap so the unoverridden engine retains six shards; all other profiles and overrides retain their previous behavior.
  • After a real competing DROP/rollback succeeds on one CN, wait for that commit frontier on the observing CN before the same account/table/live-ISCP zero assertions.
  • Keep the nine charset-conversion scenarios and every SQL/result oracle. Fail statement errors on the executing child test, stop later scenarios after an uncertain statement outcome, and retain the original cleanup/quarantine owners and deadlines.

The maintained behavior mapping and critical-path analysis distinguishes equivalent fixture reuse, differential coverage, fixed costs and overlapping stages. Actual full race baselines are 68–73 minutes; case sums or shorter incremental runs are not full-job improvements. An identical-binary SQL-integration grouping experiment regressed execution from 755.7 to 778.5 seconds, so the existing grouping remains.

Prepared-cache comparison of the same new source: the joined heavy/plan critical path was 331s → 242s (−26.9%), including the plan preparation increase from 6s to 37s. Both arms selected the identical 42,412 run/terminal nodes and 8,746 roots (8,737 pass, nine existing skips); no new skip or omitted/duplicated scenario. This uses about 12% more wave CPU time inside the same quota. Cgroup peaks were 7.27/5.56 GiB with zero max/OOM/kill events; differing file-cache charging prevents interpreting that ratio as a memory saving. Engine and setup time are excluded from this phase claim.

Validation:

  • Both snapshot scripts: 584/584 PASS twice on one instance, with account/snapshot/database teardown verified before reuse and after the second run.
  • Full planner race: 4,951 roots, all original 50 float/session scenarios retained. Source-token equivalence, serial normal validation, and protocol restoration/100-repeat race/negative-control proofs passed.
  • Cross-CN cleanup test: normal, race and full-module set-coverage PASS. S3FIFO normal owner package and focused race PASS, retaining all 32 million membership observations.
  • Scheduler normal dispatch/failure/drain PASS (29 scenarios); full optools race PASS (90 roots), plus eight same-process race repetitions of the changed scheduler root.
  • Configured incremental golangci-lint, molint and vet PASS for all five affected Go packages; formatting, shell syntax and diff checks PASS.

On the previous published head 7e74b27, coverage, SCA and both full BVT jobs passed. Its first full race attempt failed after 97m47s: two unchanged SQL scenarios timed out during cleanup, and an unchanged checkpoint scenario exceeded its cumulative context deadline. Exact runner/node telemetry shows substantial shared-device NVMe queueing and I/O pressure in the failure windows; the underlying storage cause remains unresolved. The same-head observational repeat passed the complete light phase in 21m03s and HNSW in 33s, then failed the unchanged TestIssue30345LoadIgnoreCheckConstraints before cancellation. Attempt 2 was cancelled after its diagnostics were saved to publish the reviewed new head without overlapping UT runners. Its partial results are not a complete job pass or an infrastructure fix.

The new charset failure-ownership delta at 758ed23 passed all nine original scenarios in normal and race modes, and the real SQL-error negative controls proved correct child failure, stopping subsequent scenarios, database cleanup and completed fixture quarantine. Its incremental golangci-lint, molint and vet passed. The SQL/data/oracle semantic token stream matches after removing only the owner/error plumbing. An additional unchanged issues-stage diagnostic had one multi-CN deadline failure; its timings are excluded from speedup claims and no batching policy was changed.

All full CI for the new head is pending. The one-hour target remains unproven. The starting-head successful job took 71m38s.

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

@mergify

mergify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@XuPeng-SH

XuPeng-SH commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 3b970cc533d0935c32c4734790ac81773dc431d0

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: 3b970cc533d0935c32c4734790ac81773dc431d0

Assessment: approve

The changes reuse existing fixtures and the authoritative snapshot matrix while preserving distinct data, metadata, failure and recreation oracles. The BVT selector preserves exact coverage and order; no production behavior changes or actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Read the complete seven-file delta, all discussion entries and applicable owners/consumers. Verified the removed 556-statement snapshot matrix remains identical after account-spelling normalization; checked canonical snapshot ownership and unchanged join-order result oracles.

  • Private-runtime preflight and the exact selector regression passed. Independent baseline/candidate selector checks retained all 1,890 scripts exactly once, with lexical order preserved and only 122 git4data scripts moved; empty and populated resource arguments passed.

  • Verified clean frozen source, git diff --check and gofmt for both changed Go files. Reconciled checks with retained command/source/exit receipts and logs.

  • Reused the author's reported SQLintegration, race A/B, snapshot and joinorder BVT results within their stated scope.

Limitations:

  • Frozen build, UT, SCA, coverage and some analysis checks were pending; these are not passes.

  • SQL/BVT, full-package and performance results were reported without raw local_validation artifacts and were not repeated locally. The group critical-path saving is a timing-model estimate.

  • Local selector probes used Linux Bash 5.2; the externally referenced CI workflows and Darwin shell runtime were not independently exercised.

@XuPeng-SH

XuPeng-SH commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 7e74b27b23bb1b85f7c5e2e2cc3de9cdf245c5b3

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: 7e74b27b23bb1b85f7c5e2e2cc3de9cdf245c5b3

Assessment: approve

The changes preserve distinct coverage while reusing existing fixtures, admission and observation owners. Parent protocol ownership and the cross-CN commit wait address real lifecycle boundaries; the scheduler increase stays confined to the measured profile. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Reviewed all fifteen changed files and affected owners/consumers, the prior assessment, all five discussion entries and linked #28933. discussion-assessment.json covers every discussion key exactly once.

  • Local optools passed normal and race execution: 90 roots each, no skips. All 29 scheduler scenarios passed; the changed root also passed seven same-process race repetitions, derived from T=4.09s and B=30s.

  • Local S3FIFO owner passed all 33 roots normally; TestMatchesModel passed under race with all 32 million membership observations retained. Go formatting, both shell syntax checks and vet for optools/S3FIFO passed.

  • Independent inventory and source/oracle audits passed: all 1,890 BVT scripts exactly once, only 122 intended moves, retained ordering, all 556 canonical snapshot statements and unignored outputs, unchanged join-order result oracles, all 50 planner scenarios and 25 initial view inputs.

  • Isolation preflight and all completed checks passed using assigned caches/executors. validation-evidence.json maps commands to receipts/logs; final audit checks/1794546590619239836-2.json exited 0. Frozen source remains clean.

Limitations:

  • Planner/view/multi-CN runtime checks, five-package configured linting and controlled performance measurements are author-reported and were not independently repeated; raw execution artifacts were not supplied.

  • Frozen UT, SCA, coverage and BVT checks remain pending. The reported phase improvement does not establish the one-hour full-job target or cold-runner resource behavior.

  • Local shell validation used Linux Bash 5.2; Darwin Bash 3.2 was not executed.

@XuPeng-SH

XuPeng-SH commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Commit: 758ed23d0e68200dae9af4d36e751314fcd6c494

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: 758ed23d0e68200dae9af4d36e751314fcd6c494

Assessment: approve

The changes preserve distinct coverage while reusing existing fixtures, the snapshot matrix and scheduling owners. Charset errors now belong to the executing child, with cleanup and quarantine preserved. No actionable findings remain.

Model: gpt-6.1-sol / max

Session: 01a1a004-9884-72c0-ad39-f096c4209c4a · slot 1 · generation 0

Validation:

  • Qualified the complete 16-file scope against supplied review 5886494144: fourteen final files and all other dependencies are unchanged. Inspected the charset update and its cleanup, failure and fixture-generation consumers.

  • Independent selector execution preserved all 1,890 scripts exactly once, ordering and both resource-argument modes; only the intended 122 scripts moved.

  • Source/oracle audit passed: checks/1794558561410177076-2.json and source-audit.stdout.log. Verified all 556 delegated snapshot statements and unignored outputs, unchanged join-order oracles, charset/planner semantic tokens, gofmt for eight Go files and shell syntax.

  • Reused source-qualified supplied normal/race/BVT reports at their stated scope. Current-head nine-scenario charset normal/race and real SQL-error controls remain explicitly author-reported.

  • All seven discussion keys and linked issue #28933 were assessed. Final source, schema and receipt/log reconciliation passed; records are retained in discussion-assessment.json and validation-audit.json.

Limitations:

  • No fresh Go, SQL-service, race or full BVT execution. Underlying runtime, lint and performance logs were not supplied in local_validation.

  • Full new-head CI remains unfinished. The one-hour full-job target and cold-runner resource behavior remain unproven; earlier failed or cancelled full UT attempts are not passes.

  • Selector validation used Linux Bash 5.2; Darwin Bash 3.2 was not executed.

@XuPeng-SH
XuPeng-SH merged commit 1064837 into main Nov 13, 2026
@XuPeng-SH
XuPeng-SH deleted the ci/bvt-case-balance branch November 13, 2026 09:58
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/enhancement kind/test-ci size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants