CI: keep required PR checks quick and move exhaustive gates to deep CI

Merged
UN
15d ago
+1159-139

The owner measured 39,929 fleet runner-minutes in 24 hours, including 1,944 for pm-github. PR CI repeated full npm/Bun release gates on Node 22/26 and the complete native Bun suite twice. This keeps required test (22) and test (26) on hosted Ubuntu, runs one quick npm release gate on Node26 and quick build/tests on Node22, and moves exhaustive validation to main pushes, nightly 02:11 UTC, and dispatch.

Tracking: pm-github-ci-v2. Companion: pm-cli-website-dyhg.

Check / contractCode PR Node 22Code PR Node 26Docs/tracker PR (both)Deep Node 22/26 × npm/Bun
Dependency install / merge-driver preparationyesyesyesyes
Strict pm health / required merge drivers—yesyesyes
Typecheck—yes—all four gates
Build / test TypeScript compilationyesyes—all four gates
Exhaustive import workflow shell scenariosfirst 25/50first 25/50—all 50 scenarios
Closeout publication workflow scenariosfirst 25/49first 25/49—all 49 scenarios
Closeout decision property matrixfirst 25/186first 25/186—all 186 cells
Tests, including real packed npm and native Bun consumersquickquick via coverage—full in all four gates
Docstrings, lint, zero duplication, privacy—yes—all four gates
Exact all-source coverage, 100% lines/statements/branches/functions—quick—full in all four gates
Production dependency audit—yes—all four gates
Pack dry-run—yes—all four gates
Changelog consistency—yesyesall four gates
Release publish attestation verification—yes—all four gates
Bun package-graph install—yes—both npm legs
bunx installed CLI launcher smoke—yes—PR smoke contract
Native Bun package metadata / fixture lifecycle smoke—quick—via full native suite
Entire native Bun extension suite (test:bun)———both npm legs, full
CodeQL (separate workflow, not required)matching pathsmatching pathspath-filteredmain matching paths / weekly

Every PR job has a 30-minute timeout and superseded PR runs cancel. Docs/tracker-only PRs run only dependency installation, strict tracker health/required merge drivers, and changelog consistency in both required jobs. CodeQL is not required by branch protection; its new path filters preserve the weekly scan and 30-minute timeout.

Quick depth uses the same deterministic prefixes: 50/500 seeded models, 100/1000 numeric fuzz, 410/4096 citation fuzz, 25/186 closeout decision cells, 25/50 import-workflow scenarios, and 25/49 closeout publication scenarios. Core unit tests run in both tiers. Full/default registers every original case, preserving fixtures, callback identities, options, independent oracles and per-case assertions. Source inventory, four exact 100% thresholds, native c8 merging/remapping and the production coverage gate are unchanged. Covered/default/full runs retain two workers; only the uncovered hosted Node22 leg uses four, with npm's local CLI PATH restored explicitly.

Import workflow fixtures now pack one immutable candidate per test process, matching the existing closeout fixture pattern. Every scenario still performs a real install into a fresh consumer and tracker, using a distinct copied archive locator to preserve package-manager cache isolation. Explicit clone/worktree packing tests remain uncached. This removes repeated packing and coverage receipts for identical package bytes; the disposable archive is removed after the test lifetime.

Deep retains all four Node22/26 × npm/Bun full release gates plus both entire native Bun suites. It uses the requested local-pool expression, per-ref cancellation, full depth, time scale 3, and 120-minute job caps. The native Bun loop preserves the original file set and aggregate failure behavior, scaling its per-test harness cap from 10 to 30 minutes. Literal gate commands satisfy the unchanged attestation verifier. No release workflow, reusable pm-github workflow, release verifier, branch protection or repository variable is changed.

The gate's packed tests prove npm-installed and native Bun consumers, not a fresh bunx installation. PR CI adds Bun package-graph install, an explicit installed bunx launcher smoke, and native Bun metadata/lifecycle tests. The opt-in discussion packed acceptance is unchanged and is not claimed as CI evidence.

Historical successful main run 43646546806 took 89m25s overall. Node26 executed its npm gate for 27m14s, then native Bun tests for 28m34s. Jobs API baseline:

Required checkCreated → completedQueueExecution
test (22)89m24s29m55s59m29s
test (26)74m11s18m02s56m09s

The bounded-corpus two-worker run 43688644393, head 9d799cf7461d00f7d7d415c171b641cbc5e815ea, passed at 12m24s / 15m43s wall, with 2s queue each. Node26 passed 2,106 tests, zero failures/cancellations, two unchanged SDK quarantines, and exact 100/100/100/100 across 32 authored modules. It spent 699.568s testing and about 203s aggregating. A subsequent four-worker trial passed but regressed to 17m56s, so that override is reverted. The current candidate-packing cache targets the remaining duplicate setup work without altering coverage semantics.

The completed locator-cache run 43692426506, source 0e5ae434d13ec1e0db9866d0575411720ca32678, passed both required checks:

Required checkCreated → completedQueueExecution
test (22)21m24s9m15s12m09s
test (26)25m05s5m21s19m44s

Node26 again passed 2,106 tests, with zero failures/cancellations, two unchanged SDK quarantines and exact 100/100/100/100 coverage. Testing took 892.125s and aggregation about 244s. The 15-minute acceptance target remains unmet. Further native receipt/SDK-fixture profiling is tracked in pm-github-ci-coverage-latency; no thresholds or native-remapping guarantees are relaxed. Shared fleet queueing is separate from repository execution; no unrelated runs were cancelled.

The final workflow/test implementation 9a9a1bbff50d9c1834fa3022ba5080803b9c5b42 passed run 43696188386:

Required checkCreated → completedQueueExecution
test (22)16m43s5m33s11m10s
test (26)29m03s7m05s21m58s

Both reported 2,106 passes, zero failures/cancellations and two unchanged SDK compensation skips. Node26 retained exact 100/100/100/100 across 32 authored modules; earlier task comments naming 34 modules were receipt transcription errors, corrected in a follow-up comment and documentation without changing inventory. Node26 testing took 1,035.706s and native aggregation about 233s. All eight native Bun smoke tests and the installed bunx launcher passed. CodeQL and Greptile passed. The 15-minute acceptance target remains unmet.

The pushed receipt commit e986226 only records those measurements and corrects the module count in documentation/tracker data. Workflow, production and test bytes match the tested implementation above. Receipt-head run 43698700451: test (22) passed at 31m10s created-to-completed (20m00s queue, 11m10s execution). As of 11:19:47 UTC, test (26), created at 09:19:36 UTC, remained queued for over two hours on ubuntu-latest with no runner assigned; no test commands had started. Final receipt-head measurements remain pending. Strict health validates tracked data and installation of the current runner's merge drivers; it does not certify another checkout's driver registrations, runtime caches, merge receipts or lossless reconciliation.

At 11:23 UTC, a read-only snapshot of 38 public pm repositories observed 13 executing GitHub-hosted jobs, including full release gates still active after more than 90 minutes. The oldest observed gate had started at 08:48:31 UTC (public run 43696090765). This is a public-fleet subset, not an account-wide concurrency count. The queued pm-github job had no runner assigned, and no workflow was executing in this repository during the earlier queue check. The new 30-minute PR caps bound this repository’s future hosted jobs; global fleet queue latency remains companion scope.

Local proofResult
npm run typecheck; npm run build:test; npm run lintpass
Focused edited seeded/latency tests, quick + scale 334 pass, zero failure/cancel/skip; 154.886s
Quick closeout decision cells25 pass, zero failure/cancel/skip; 144.970s
Workflow detector, actual-shell PATH mutation control, collector identity/default/prefix controlsNode and Bun pass
Positive/adversarial consumers and independent clone/worktree packing with cached candidate3 pass, zero failure/cancel/skip; 278.999s (final unique-locator implementation)
Selected real closeout publication replaypass; 38.545s
Strict unique-key YAML parse; bash syntax and synthetic deep-loop failure aggregationpass; actionlint unavailable
Unchanged release attestation verifierpass
Local Git-object privacy audit9,542 objects pass

The broad changed-file local attempt exceeded its 20-minute harness cap and is not passing evidence. Whole-suite local coverage would exceed that budget and is deferred to PR CI. No full product corpus was run locally. Pure registration controls use fake callbacks to verify full/default semantics without full product work.

Observed integration failures were corrected: direct Node22 execution lost npm's local-bin PATH, and a matrix executable was unresolved to the release verifier. The PATH fix has an actual-shell negative control. Load-sensitive harness bounds now honor time scale without changing production HTTP, lock or dispatch deadlines; synthetic timing replay pins scale 1. Cancelled/superseded runs are not passing evidence.

Remaining proof limits: deep execution is post-merge; fresh ephemeral bunx installation is not proven by the installed-launcher smoke. Two unchanged lifecycle-compensation quarantines for the pinned SDK are tracked by pm-github-quay / pm-cli#1656; source coverage does not certify those skipped upstream contracts. Existing fixture investigations pm-github-r14n and pm-github-gaq8 retain their separate scopes.

Summary by Sourcery

Separate fast, required pull-request checks from exhaustive deep validation while preserving full coverage and release-gate guarantees.

New Features:

  • Add a deep CI workflow that runs exhaustive Node 22/26 npm and Bun validation on main pushes, nightly schedules, and manual dispatches.
  • Introduce deterministic quick-depth PR validation with separate routing for code and documentation/tracker-only changes.
  • Add CI coverage for workflow routing, CodeQL path filters, documentation checks, timing controls, and preserved test corpus semantics.

Bug Fixes:

  • Prevent duplicate package packing across import workflow fixtures while preserving isolated consumer installations and cache separation.
  • Preserve local CLI discovery in hosted Node 22 test execution and validate the workflow path explicitly.

Enhancements:

  • Retain exhaustive test, coverage, native Bun, attestation, and release checks in deep CI while keeping required PR checks bounded to 30 minutes.
  • Add configurable test-depth and harness-time scaling without changing production deadlines, coverage thresholds, source inventory, or default/full test behavior.
  • Cancel superseded PR and same-reference deep runs and apply path filtering to non-required CodeQL checks.
  • Document the new CI tiers, validation contracts, performance measurements, and remaining latency limitations.

CI:

  • Split pull-request CI from exhaustive deep validation and configure the corresponding schedules, concurrency, runner selection, and timeouts.

Documentation:

  • Document the Fleet CI v2 tiers, test-depth semantics, coverage guarantees, runner behavior, and measurement receipts.

Tests:

  • Add tests covering CI path classification, CodeQL filtering, documentation-gate failure propagation, quick corpus selection, timing validation, and local CLI PATH behavior.

Chores:

  • Record CI migration and coverage-latency tracking data in project history and task files.
  • Add an unreleased changelog entry indicating no product changes.