Skip to content

[CI] [DO NOT MERGE] CI experiment: ordinary 5-shard arm - #26271

Closed
nwparker wants to merge 1 commit into
nwparker/ordinary-pr-shard-benchmark-base-20261007from
nwparker/ordinary-pr-five-shard-control-20261007
Closed

nwparker wants to merge 1 commit into
nwparker/ordinary-pr-shard-benchmark-base-20261007from
nwparker/ordinary-pr-five-shard-control-20261007

Conversation

@nwparker

@nwparker nwparker commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Temporary ordinary PR experiment: 5 full unit shards. Do not merge. Compare five versus ten using the exact same source commit on two ready PRs against a pinned base.

What Changed

The canonical planner accepts five or ten complete shards; omitted values and selected-draft caps remain five. Only the named ten-shard experiment ref requests ten. An existing repository override wins. All tests, runtime contracts, isolation, setup files, cache policy and four workers per runner remain intact. Five checks cover count validation, fallback coverage and complete assignment evidence.

Both heads are 1a397791032372d7b489221c5fe6535d6642b60c, tree b836382ac0945765f8f671dd67fbd455e7093492, parent 7d6d7ca6f841acf686a8dd07c1dbcc7cf40073fa. Both use temporary base nwparker/ordinary-pr-shard-benchmark-base-20261007 pinned to that parent. The temporary branch condition and all three refs must never merge; the fleet remains at five.

Why

More shards can reduce test time while increasing queueing and setup costs. This pair measures ordinary account load rather than assuming faster commands imply a faster PR. Pinning the base prevents unrelated merges from changing one workload. This is one observational pair, with unequal peak CPU requests (20 versus40); it cannot establish fleet capacity, p95 latency or the historical full-suite2× goal.

Linked Issue

Internal maintainer performance experiment; no pre-existing issue. No needless issue opened, per repository template.

Visual Proof

N/A — temporary CI controls only; no application UI changes.

Testing

  • All eight existing infrastructure suites under stock Bun and actual Node, shuffle seeds104729/130363, before and after:95 original cases retained,100 after including five passed new checks. Exact source/command/settings/routes/status maps, natural close and scoped coordinator census qualified.
  • Independent source, complete AST formatting and raw runtime evidence reviews passed. Formatting, five MJS syntax checks, changed-code quality and diff checks pass.
  • One initial external-coordinator preflight rejected before any test child; original rejection and stopped schedule retained. Fresh resume passed; no launched failure retried.
  • Actual full CI source/assignment/routes/status/error and effective5/10 enrollment proof pending.

Before/after measurements

Pending this first ordinary pair; no speed claim yet. Preserve both first attempts, failures, queue/provisioning and first-to-last-start spread, setup/native install/artifacts/test-step time, aggregate held runner seconds, peak CPU requests, release-to-last-unit/verify and whole PR-created-to-verify time. Both actual synthetic trees must match with pinned-parent/head proof; canonical physical-file once coverage and per-module counts must agree. Stock CI lacks complete individual case JSON, so named-case parity is not claimed from CI artifacts.

Review

Independent reviewed local proof: ordinary-canary-7d-formatted-runtime-qualification-proof.json (95→100 original-plus-new cases). No repository variables changed; repository count override was absent at read-only prepublication check. Organization/environment scopes are not proven, so actual5/10 enrollment is mandatory. No temporary PR will merge, irrespective of measurements.

Agent skill upstream boundary

  • Not applicable; no upstream agent-skill source copied.

Notes

Original runtime contracts continue under actual Node. No production execution, SSH, platform, mobile or wire change. Raw proof and every rejected record remain in ignored local performance notes. Any later rollout requires a separate reviewed patch and a measured capacity decision.

Checklist

  • Focused experiment; mechanism and alternatives explained.
  • N/A visual proof explained.
  • Source/compatibility/performance limits reviewed.
  • Cross-platform/SSH considered; no runtime route changes.
  • Full CI and actual cost evidence pending.

Completed measurements and decision

The ten-shard ordinary PR finished required verification in 9m05s after PR creation, compared with 13m39s for the identical five-shard definition: 33.46% less elapsed time. From unit prerequisite release, the last unit completed in 6m02s versus 10m18s (41.42% less); the longest test step was 5m22s versus 9m31s (43.61% less). Both first attempts passed every required workflow job.

All 11,678 physical files ran exactly once in each arm, with identical per-file states, per-module case counts and actual runtime routes: 112,615 passed cases, one expected failure and 1,052 stock skips. Actual Node contracts remained Node. Stock CI artifacts do not contain complete individual case names, so this is module-count/state/route evidence, combined with the separate local infrastructure case qualification.

The improvement used ten four-worker ARM runners instead of five. Aggregate unit test time rose 7.66% (2,649 to 2,852 seconds), and aggregate held ARM runner time rose 13.41% (2,827 to 3,206 seconds). Dependency installation cost was small per runner, but its aggregate cost doubled from 57 to 112 seconds. Whole-workflow unweighted runner time rose 4.58%; that figure mixes runner classes and is not a billing estimate.

Both arms used the same reviewed definition commit and identical synthetic tree, based on pinned main 7d6d7ca. Separate hosts and cache states make this one observational ordinary pair. Unit runners started within 6–8 seconds of allocation; a later four-job Zod diagnostic began at 17:18:02–03Z, after all fifteen canary runners had started by 17:14:07Z. No quiet-fleet or representative loaded-queue claim follows from these observations. The existing fleet queue-tail concern remains unresolved.

The measured tradeoff supports a controlled ten-shard rollout for latency when the extra runner capacity is available, with a five-shard rollback and monitoring of queue tails and aggregate runner time. It does not justify claiming a fleet-wide twofold speedup or changing daily jobs and selected-draft caps. If default ten is chosen, the PR should state that it is a monitored resource tradeoff, rather than proven aggregate efficiency. The temporary benchmark PRs and branch-name switch should never merge.

Evidence: five ordinary run, ten ordinary run, strict-completed-unit-enrollment-proof.json, ordinary-pair-cost-ledger.json, and background-fleet-activity-supplement.json. The historical before-start twofold goal remains unproved; this current-source sharding result must remain separate from that reference and the earlier held-host pilot.

This temporary diagnostic PR is being closed without merging. A separately reviewed shipping change will remove the experiment branch-name condition and retain the existing five-shard rollback. Both benchmark definitions and the pinned-base branch remain diagnostic evidence.

Same reviewed source for both ordinary PRs; only head ref selects shard count.
Pinned seven-d6 base; all95 originals plus5 checks qualified under both runtimes/seeds.
Temporary diagnostic commit only; no fleet default or application change.
@nwparker nwparker closed this Oct 7, 2026
@nwparker nwparker changed the title [DO NOT MERGE] CI experiment: ordinary 5-shard arm [CI] [DO NOT MERGE] CI experiment: ordinary 5-shard arm 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