Skip to content

[CI] ci: run full pull-request unit tests across ten shards - #26295

Merged
nwparker merged 2 commits into
mainfrom
nwparker/pr-unit-ten-shard-rollout
Oct 7, 2026
Merged

nwparker merged 2 commits into
mainfrom
nwparker/pr-unit-ten-shard-rollout

Conversation

@nwparker

@nwparker nwparker commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​96 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​96
Prod 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​76 $\color{#cf222e}{\Huge{\mathbf{−}}}$​12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​64

ELI5

Full PR unit tests use ten runners instead of five. In the same-definition ordinary comparison, required verification finished in 9m05s rather than 13m39s, with every test retained. This trades more parallel capacity and 13.41% more aggregate ARM runner time for lower latency.

What Changed

The existing unit planner accepts a validated full-run count of 5 or 10. The PR workflow requests 10 by default, and the repository Actions variable ORCA_UNIT_FULL_SHARD_COUNT=5 restores five. Planning failures retain every discovered test with the requested count. Daily reference jobs and selected draft caps remain five. Existing assignment and selection-evidence checks verify complete coverage; native Node runtime contracts keep their actual Node routes.

The Linux package step also reuses the shell lane’s existing APT timeouts after its original run remained pending for more than an hour. Required tooling and all package checks remain mandatory. The temporary branch-name switches and diagnostic PRs #26271/#26272 are excluded from this change.

Why

Reducing import work and individual fixtures has helped selected suites. Additional sharding reduces the complete unit pipeline’s latency while preserving isolation and test assertions. The explicit five-shard rollback addresses the extra peak runner demand if fleet queue delays outweigh the gain.

One ordinary pair used identical definition commit 1a397791032372d7b489221c5fe6535d6642b60c, identical source tree and pinned base 7d6d7ca6. Both first attempts completed successfully:

Boundary or resource measure Five Ten Observed change
Longest unit test step 571s 322s 43.61% less
Unit prerequisite release → last unit completion 618s 362s 41.42% less
Unit release → required verification 628s 371s 40.92% less
PR creation → required verification 819s 545s 33.46% less
Workflow creation → required verification 813s 541s 33.46% less
Aggregate unit test-step seconds 2,649s 2,852s 7.66% more
Aggregate held ARM runner seconds 2,827s 3,206s 13.41% more
Aggregate setup before tests 157s 317s 101.91% more
Aggregate dependency installation 57s 112s 96.49% more
Whole-workflow unweighted held runner seconds 4,844s 5,066s 4.58% more

Nominal unit worker slots increased 20→40 (five versus ten four-worker ARM runners). Unit runners started 6–8s after allocation. Aggregate assignment-upload steps were 6→11s. The two workflows used the same nonunit job names; whole-workflow runner seconds mix different runner classes and are not a pricing estimate.

This is one observational pair on different hosts and cache states. Four additional diagnostic ARM jobs started after all fifteen comparison runners had been allocated. The result does not establish representative fleet queue tails, per-test efficiency, or the historical twofold goal. PR-to-verification includes prerequisite timing differences; the unit boundaries are reported separately. No warmup or first-attempt cost was excluded.

Evidence: five-shard run, ten-shard run. Both ran all 11,678 physical files exactly once, with identical module counts/states/routes: 112,615 passed cases, one expected failure and 1,052 stock skips. Stock CI artifacts do not contain complete individual case names; the source-qualified local infrastructure case maps are separate evidence.

Linked Issue

N/A — maintainer performance work requested by the user.

Visual Proof

N/A — CI planning only; no app UI change.

Testing

All eight fresh local infrastructure reports passed under both Bun and Node, with seeds 104729 and 130363. Exact identity/status maps retain all 95 original cases plus the same five meaningful count, rollback and complete-evidence checks (100 cases). Stock isolation, all six setups, four workers, actual runtime routes, source hashes and natural-close/process guards pass; no attempts were retried or discarded. These checks used fsModuleCache=false for correctness; normal CI retains true.

Actual tracked-path formatting, changed-code quality and normal commit hooks pass. The shipping documentation reuses the existing CI demand guide and preserves its capacity-acceptance section verbatim; Markdown parsing confirms its formatter-only table changes preserve content. The seven qualified code/workflow bytes and all 54 named runtime/source guards remain exact after rebasing onto 7f43d9b, including the landed display-clock improvement. The initial shipping head was 84082a3; the subsequent APT correction is qualified separately below. No measurements are relabeled as runs on the rebased source.

This normal PR’s fresh complete integration CI passed; the final source, coverage and review evidence are recorded below. The temporary comparison PRs have been closed without merging; none of their benchmark definitions or branch switches are shipped.

Review

Independent source and ordinary accounting reviews are clear. The eight-report runtime qualification is independently clear. Both exact-head reviews and the corrected head’s complete integration CI are recorded below.

Agent skill upstream boundary

  • Not applicable; no upstream skill source or assets.

Notes

This controlled latency rollout does not satisfy the existing representative week-long fleet capacity gate. Monitor queue/provisioning delay, PR verification time, cancellations and aggregate ARM runner time in equivalent traffic windows; set the repository variable to 5 if queue delays erase the gain. App, SSH and folder workspace behavior remain covered by their full tests.

Checklist

  • Explained behavior, mechanism, alternatives and measured tradeoff.
  • No UI change; visual proof is N/A.
  • Source and accounting reviewed independently.
  • Exact-source infrastructure runtime qualification and changed quality/format gates recorded.
  • Complete shipping CI recorded before merge.
  • Shipping-head actionable review comments addressed.

Final integration and package tooling measurements

The updated head 29ad785b1cd000b580ba3b3da87affb835a601ad passed the complete fresh integration run on synthetic source c0256db7797d8e315b7916ab302f056875d98ff1, whose incoming main parent is 42a40f861d4de15e880ed8495a2585d981345429. All ten unit shards reported 11,715 distinct physical files exactly once: 11,575 passed files and 140 stock-skipped files; 112,984 passed cases, three expected failures, 1,052 stock skips, zero failures and zero unhandled errors. Actual module markers match 10,582 Bun routes, 1,132 protected Node routes and the single Node measurement file. Every one of the prior 11,691 paths remains, with 24 incoming files added. The incoming main tree is preserved except the nine intended shipping paths. The updated inherited SQLite routing is explicitly source-bound; the earlier 55 stored guards are not assumed unchanged. Stock CI provides module counts and runtime markers rather than complete individual case-title maps.

Package tooling observation Outcome Scope
Original head 84082, run 37667537508 Canceled after 78m27.84s; no installation completion observed Censored elapsed observation, not a completed baseline or package pass
Updated head 29ad, run 37678160688 Completed successfully in 30s, 20:02:11–20:02:41 UTC Separate hosted runner/cache/network observation; no matched causal percentage

The original run's ten passing unit shards remain recorded separately from its canceled package gate. This update retains mandatory cpio/rpm installation and all package checks, while applying the existing shell lane's bounded refresh/fatal-install policy. The 120s refresh and 300s install limits are nominal command bounds, not a proof of a hard process-tree termination ceiling. The original incomplete index output does not establish the stalled process or mirror cause.

All current-head required checks are green. CodeRabbit's review records exact head 29ad as reviewed, with no actionable review threads. The previously disclosed ordinary five-versus-ten pair retains its original source, host/cache limits and resource-cost tradeoffs; this fresh full integration proof does not turn that observational pair into a historical 2× claim.

CodeRabbit also emits its generic docstring-coverage advisory (two existing functions; zero percent). This is separate from its zero actionable correctness comments. The disposition is recorded below.

The added package-policy check retained all 21 original cases and passed as the sole added case (22 total) in all eight Bun/Node before/after reports with both fixed seeds. Exact source/configuration/case maps, all six setups, four workers, fsModuleCache=false and natural-close/process guards were independently verified. Two earlier attempts were rejected before launching a test child because an external coordinator was active; those rejections remain separate. None of the eight successful reports was retried or discarded. All qualified bytes survived normal commit hooks; formatting and changed-code quality passed.

The docstring advisory is addressed here: the two existing planner functions describe their work through their names and are covered by the CI guide and tests. No redundant comments were added.

@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 73777515-ae3e-418a-8c42-71f134865ce1
📥 Commits

Reviewing files that changed from the base of the PR and between 84082a3 and 29ad785.

📒 Files selected for processing (2)
  • .github/workflows/pr.yml
  • config/scripts/pr-workflow-parallelism.test.mjs

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.


📝 Walkthrough

Walkthrough

The PR workflow now passes ORCA_UNIT_FULL_SHARD_COUNT to unit planning, defaulting to ten. Planning accepts only five or ten and uses the configured count for full runs and fallback shards. Selected draft runs remain capped at five shards. Tests cover shard counts, invalid input, and completeness of ten-shard reference runs. The rollout documentation records the observed comparison and monitoring criteria. The workflow also bounds apt update and package installation time and configures apt timeouts and retries.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 29ad7

The shard configuration preserves complete test assignment, and package setup has bounded waits. No merge-blocking issue is established; complete integration CI should still finish its normal validation.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 7 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly identifies the primary change: running full pull-request unit tests across ten shards.
Description check ✅ Passed The description is complete and closely follows the repository template. It explains the change, rationale, linked-issue exception, testing, measured tradeoffs, rollout limits, review status, and chec…
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 7 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker merged commit 00984cc into main Oct 7, 2026
35 checks passed
@nwparker nwparker changed the title ci: run full pull-request unit tests across ten shards [CI] ci: run full pull-request unit tests across ten shards Oct 9, 2026
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