Skip to content

Reduce avoidable work in PR checks and SSH test setup - #25309

Merged
nwparker merged 1 commit into
mainfrom
nwparker/ci-pressure-followup-20261004
Oct 4, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/ci-pressure-followup-20261004

Conversation

@nwparker

@nwparker nwparker commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

PR checks spend less time on avoidable setup and waiting. The SSH deployment test now supplies a working launch response instead of waiting through a ten-second failed launch. The mobile web job skips native addon preparation, and advisory E2E waits for eligible preflight results.

What Changed

  • Complete the unanswered-health-probe SSH fixture and require a successful launch, exactly one failed health probe, and no repair. All 31 existing cases remain.
  • Use native-runtime: none for the mobile web build and its unchanged full check suite.
  • Admit advisory E2E after successful preflight, or when neither preflight phase is required. Failed, cancelled, unexpectedly skipped, and unknown results block admission. Readiness reuse remains eligible.

Why

The dashboard identifies unit execution as the largest source of PR runner demand. A three-pair hosted Linux ARM comparison reduced this complete SSH test file from a 15.50-second median to 5.48 seconds, saving 10.03 seconds per invocation. This is a measured component gain, not a claim that total PR latency falls by the same amount.

A hosted Linux x64 comparison saved a consistent 1.05-second median in the warm native preparation stage (1.366 seconds versus 0.313 seconds). This is a small setup reduction; it does not establish a material change in total PR latency.

The E2E change avoids running checks on source whose selected preflight has already failed. The current combined-preflight sample contains only seven runner-minutes of avoidable E2E work; historical workflows had substantially more, so their savings are not projected onto this change. Eligible advisory feedback starts after preflight; required PR gates do not wait for E2E.

Linked Issue

N/A — internal CI efficiency follow-up.

Visual Proof

N/A — CI configuration and a test fixture; no application UI changes.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Independent review reran six relevant suites: 143 tests passed. Changed-code quality and Node typechecking pass. Local macOS qualification retained the full mobile production build and 486 prefix checks while denying prepared runtime addon loads.

Normal PR CI passed the required Verify gate, all five unit shards, Linux and Windows packaging, and every selected contract check.

Hosted mobile job: the production build and all 486 checks in 46 files passed with prepared runtime addon loads denied. The guard reached 51 workers; only the shipped Rolldown compiler binding was allowed. Real and synthetic addon controls were denied. All three alternating stage pairs restored the same exact native cache key.

Hosted SSH job: six alternating whole-file invocations each passed the same 31 named cases. Fault controls detected an absent READY response, improper repair, and a skipped health probe. Production SSH code and deadlines are unchanged.

Temporary benchmark workflows, guards, and source bundles are isolated on nwparker/ci-pressure-hosted-pilot-20261004 and excluded from this PR.

Review

Independent code review found no blockers. GitHub status-function semantics and parsed workflow-condition tests cover successful, failed, cancelled, skipped, unknown, unselected, and readiness-reused admission.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Production SSH behavior, cross-platform runtime preparation in other jobs, and required test coverage are preserved. The mobile job still installs all dependencies and runs all existing production build and browser checks.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (normal PR CI passed)

@nwparker
nwparker marked this pull request as ready for review October 4, 2026 22:26
@nwparker
nwparker merged commit 8e8efb1 into main Oct 4, 2026
32 of 33 checks passed
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