Skip to content

ci: stop PR work after failures - #156375

Merged
steipete merged 2 commits into
mainfrom
ci-burden/cs2-pr-volume
Sep 25, 2026
Merged

steipete merged 2 commits into
mainfrom
ci-burden/cs2-pr-volume

Conversation

@steipete

@steipete steipete commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Merged as d53f229e9cb2f4f469689fa6be1970c56d7d35f1 from reviewed head fd265321c03b3e15738c86ca872677e0f8092f5a. Final CI run 36118796587, attempt 1, passed all 68 executed jobs with 15 expected skips. GitHub completed the existing auto-merge on September 25 at 09:46:03 UTC. No required check or auto-merge condition was weakened.

What Problem This Solves

PR CI keeps spending paid runner time after a failed row has already made the run unusable.

User Impact

PR Node matrices stop sibling rows on failure. A same-repository PR first-attempt monitor cancels the remaining job families and preserves a failed openclaw/ci-gate naming the originating job. Main and manual runs retain complete matrices. Only the monitor receives actions: write; all existing job permissions stay unchanged. Fork PRs retain native matrix fail-fast without cross-family cancellation authority.

Why This Change Was Made

The monitor reads the current run attempt, revalidates the open PR/head and newer same-head runs, records the failed job before its single cancellation request, and finishes so the aggregate can report red. Observation errors retain ordinary CI; an uncertain cancellation response remains red. Superseded runs without a failure cause retain existing behavior. Partial reruns keep native fail-fast and ignore earlier monitor outputs/results. Expected selected-job counts prevent an incomplete jobs listing from ending monitoring before matrices appear. When installed check planning is selected, its successful same-attempt Jobs API marker replaces only the four provisional check-family counts; failure observation starts immediately. Missing or invalid metadata leaves ordinary CI in charge. The observer derives a non-failing cutoff from its actual job start, leaving cleanup time inside the existing 60-minute job limit.

Live proof exposed two issues now fixed: GitHub can report a workflow as queued while its jobs run, and a hosted failure-reporting gate can remain unassigned through the cancellation grace period. Current-run identity checks accept that queued state. The final integration preserves R4’s existing trusted first-attempt hybrid routing. This PR additionally puts current failure-triggered default/explicit Blacksmith reporting on the existing 4-vCPU class; explicit GitHub overrides, retries, and manual behavior retain upstream routing.

Bot-authored, same-repository PRs changing only generated native locale artifacts retain strict source/parity checks and omit unrelated Node/native builds. Mixed/source/unknown diffs, human PRs, main, manual validation, and ci:full retain ordinary selection. The existing artifact classifier owns the path rules. Docs/UI-locale narrowing remains with its separate selector change.

Existing per-PR concurrency, draft suppression, and heavy-job preflight dependencies are retained. Repeated head SHAs remain candidates rather than automatic success reuse because their tested merge trees can differ. Existing concurrency coalesces overlapping work, and the monitor rejects a superseded same-head run. No required check or ruleset was removed.

Evidence

Historical production head for the evidence below: 72ea91da4005bc2a9adc61511ec3cc8d03243694, rebased on main 238347227b08df23859c3e366bf2cfbb1aa42d3a. Final refreshed-head evidence appears below. All temporary experiment commits remain dropped. Auto-merge remains armed per maintainer direction.

Both requested live experiments passed.

  • Deliberate failure: run 35846455303, exact temporary head eddcdbad998161d3f1cee7848add67cae771efbc. Node job 107134149651, checks-node-compact-small-36-tail, failed at 10:04:40Z. Monitor 107134145632 recorded failure-cancelled at 10:04:51Z. 124 jobs cancelled, including other families. Gate 107134906528 failed at 10:06:26Z; both failure reporting and selected-lane verification failed. Its rendered summary was verified to say: “PR CI stopped after checks-node-compact-small-36-tail failed.”
  • Supersession: run 35851071287, exact temporary head e3e427d43e45935c1e6f5c98dcefd555049288c0. Assigned preflight 107148622974 started at 10:50:36Z. The production-head push began at 10:51:30Z; successor CI was created at 10:51:49Z. Old preflight cancelled at 10:52:07Z, and the run completed cancelled at 10:52:08Z: 32 cancelled jobs, zero failures, no assigned monitor/gate. Heavy fanout never started.

Observed compute and historical projection

Observation Blacksmith vCPU-min
Earlier native-only failure reference, run 35841242860 4,487.33
Corrected cross-family cancellation, run 35846455303 2,878.60
Observed difference 1,608.73 (35.9%)
Superseded run 35851071287 24.27

Non-Node work fell from 2,641.87 to 705.13 vCPU-min (73.3%) in the two failure observations. Different merge bases, row counts, and checkout timing mean this is an observed comparison, not an identical-plan causal benchmark. Supersession consumed 4,463.07 fewer vCPU-min than that failed reference, but stopped much earlier; this unmatched difference is not a causal saving estimate. Costs use assigned job time multiplied by the declared Blacksmith vCPU class, not CPU utilization or billing records.

The September 16–22 census contains 19,923 PR run IDs: 5,939 success, 6,581 failure, 2,995 cancelled, 4,393 skipped, and 15 other/nonterminal outcomes. Repository/ref proxy median/p90 are 2/7; incomplete historical PR associations prevent exact overall runs-per-PR quantiles. 667 cancelled heads were replaced within five minutes and 1,166 within ten minutes. Draft suppression already works. 3,745 repeated-head candidates are not credited as savings.

The 84-run stratified historical sample projects 16.92M gross vCPU-min/week removed for the implemented scope with a 30-second stopping allowance. This excludes monitor overhead, overlaps generated-only savings, and is not a post-change or invoice measurement. An illustrative 15-minute monitor on every one of the 10,770 same-repository non-skipped runs costs 0.65M/week, giving 16.27M/week under that explicit assumption; actual admission and duration are narrower. Other packing/routing changes will alter the counterfactual.

Two concrete historical sightings underpin the mechanism: run 35077918937, job 104734891194, failed on a missing declaration-fixture module while sibling Node rows spent another 5,983.2 vCPU-min; run 35108810979, job 104837212642, failed a line-cap ratchet 168 seconds after creation while Node rows spent another 4,843.0 vCPU-min.

Local validation and review

All three new files passed 20 standalone repetitions at the required worker ceiling, with controller/gate repetitions refreshed after corrections. Three actual CI shard-executor replays used the two-worker group policy and owner siblings. The queued-run regression failed before its fix and passed afterward. Owner/sibling checks, node scripts/check-changed.mjs, type-aware lint with a rejecting canary, formatter, workflow security/ownership guards, and git diff --check passed. Final cumulative branch P2 autoreview: scoped-clean, no findings. This change stops wasted work; it does not claim to reduce the historical 52.6% success/failure-cohort failure rate.

One-worker standalone wall costs through the repository test wrapper: controller 2.303s, gate/PR control 1.969s, generated-native scope 2.826s (16, 9, and 17 tests). Per-file final CI timings were not captured before cancellation; the deliberate-failure experiment is mechanism proof, not full-suite green proof.

Earlier CI observations

Original production-head run 35851209319 was observed once and cancelled after a genuine unrelated failure in Node job 107149572452, checks-node-compact-small-43. Gate 107151872953 correctly failed at 11:01:38Z. The untouched test/scripts/install-smoke-no-push-workflow.test.ts still requires reusable preflight workflow_repository / workflow_sha outputs to be absent, while main commit 9ed5a04 adds them for its trusted build-warning relay. Neither file is changed by this PR. That historical sighting required an owner correction without relaxing its security guarantees; no owning fix had been identified at the time. The final rebase and fresh CI below determine current status. No rerun or green CI claim is made.

An earlier restored run, 35848900678, hit the unlisted swiftlint dependency already fixed on main by d9a3356 / #156415.

Routing guard repair after main integration

Run 35854123407, job 107184361959, exposed a main-qualification guard failure: its parity loop evaluated the PR-only monitor's runner expression on a push payload without pull_request.head. The failure reproduced locally before the repair. The guard now first asserts that the monitor is excluded from both main push and main qualification, then compares placement for their admitted jobs. Production routing and all existing main/native-worker expectations remain unchanged. The rebase also carries main's real-Gateway shard fixture additions into the extracted shared manifest helper.

The five affected workflow test files passed once: 725 tests, 12 existing skips. node scripts/check-changed.mjs, targeted formatter, and git diff --check passed; the guard delta received P2 scoped-clean review. Earlier live cancellation and repetition proof was reused. The Windows src/daemon/schtasks.env-case.real.test.ts failure in job 107184359411 is unrelated and was not changed or rerun by this repair.

LND1 integration proof

Frozen consumer proof checkpoint: 4cb92ed0e9092803ba35196bae12c818d2376982, tree e62756107e56f04028704141b3007d5a0d80206e, tested against the exact producer contract at 053a3f38767a46aaacd460ac7578a91f04002181. The producer script and its test are byte-identical to that producer; they are excluded from the consumer-only transplant. This checkpoint establishes the source proof below; final parent and refreshed-head CI are recorded separately.

The integration replaces the four early check-family reservations with the installed planner's successful same-attempt count publication. The observer still starts after preflight and processes failures before reading the count. Missing, malformed, duplicated, unfinished, or wrong-attempt count evidence cannot end observation as a clean completion. Preflight totals now include the admitted baseline, Android Access, and screenshot rows. The release evidence sealer joins the monitor, and the observer's advisory cutoff uses its Jobs API start time inside the existing job limit.

The rebase preserved R4's existing trusted hybrid routing and added only the missing failure-reporting route for default/explicit Blacksmith. Proof caught an obsolete duplicate test assertion that still expected the hybrid gate on GitHub immediately before the stronger R4 matrix expected Blacksmith for the same context. Removing that conflicting assertion retained the complete R4 matrix and explicit failure-routing tests. Other caught integration conflicts were the Android aggregate guard assuming the first step, a duplicated gate expectation key, and the extracted manifest fixture needing the producer's installed-planner simulation. These were deterministic integration repairs, not hosted flakes.

Two count regressions failed on the previous observer before the fix: reconciling the early reservation with the completed planner, and refusing clean completion before its successful fact. The deadline regression also failed before its earlier fix. These are deterministic before/after observations; no random failure-rate improvement is claimed.

Blacksmith Testbox proof: monitor and shared-helper run 36090476287, lease tbx_01m3b9pajaywnna96w277tqy8f; control and routing-guard run 36090739242, lease tbx_01m3b9xca3hnem4ce1dq5wcjcd. Both executions verified the exact source hashes. Wrapper commands completed successfully; lease cleanup can make the supporting Actions lease run appear cancelled.

  • All 17 files covering the current shared-helper consumers plus the release-evidence sibling passed: 1,658 tests, 160.96 s through the repository wrapper.
  • Monitor: 33 tests, 20/20 standalone at OPENCLAW_VITEST_MAX_WORKERS=8; its current compact-small-6 CI row passed 3/3, taking 238/231/236 s.
  • PR control: 12 tests, 20/20 standalone at the same worker ceiling; its current compact-small-2 CI row passed 3/3, taking 34/32/32 s.
  • The corrected routing-guard row, compact-small-8, passed 3/3, taking 105/106/106 s.
  • CI row replays used the actual group configs, two-worker policy, OPENCLAW_NODE_TEST_PLAN_CONCURRENCY=1, and OPENCLAW_CI_TEST_RUNTIME_POLICY=bun-compatible through ci-run-node-test-shard.mts.

One-worker pnpm test <file> --maxWorkers=1 cost: monitor 2 s wall / 1.31 s wrapper, PR control 2 s wall / 1.60 s wrapper. These frozen runs used Node 24.19.0 and the pinned lockfile. The earlier checkpoint's standalone 20-run proof for unchanged planning, Android, and release-routing behavior was reused; the integrated helper sweep and affected shard replays were refreshed. Final-parent dependency/runtime checks are reported separately rather than treating this pinned evidence as proof of different inputs.

node scripts/check-changed.mjs, workflow sanity, targeted type-aware lint, formatting, and git diff --check passed. After the conflicting routing assertion was corrected, its exact test and formatting passed, the full importer sweep and routing row were repeated, and the routing correction was verified by the refreshed sweep. The earlier branch-mode review covered committed changes but excluded staged integration edits; it is not claimed as full integration review. Before the final consumer commit, the complete staged candidate against producer 697af3978ecabaaad072fa4fad13352fc8b7de1b, with complete workflow and producer-source evidence, received a P2 scoped-clean local-mode review with no findings across all three passes. The frozen checkpoint's normal hooks passed and its tree exactly matches the remote proof. No assertions, timeouts, required checks, or auto-merge conditions were weakened.

Historical red jobs, run 35893809952 attempt 2: checks-node-compact-small-38, job 107323160443, failed openai-image-auth-docker-client.test.ts when the oversized-body request encountered UND_ERR_SOCKET / "other side closed" after about 90 s. checks-windows-node-test-5, job 107323155792, failed agent-tools.read.windows.test.ts with PowerShell spawnSync ETIMEDOUT during its 10 s startup/Out-File fixture. Both failures are outside this PR's changed owner. Their historical root causes remain unproven; no owning fix or successful replay is claimed, and no rerun was issued for them. At comparison time, main hourly run 36081177285 had no failed jobs and 36087033303 was pending. The refreshed source receives fresh CI.

Refreshed producer integration

Consumer candidate 10b259d603433b132d8be53a8fd2db7b10916d40 has exact proven tree 0e4b98e11a97da2828da04ea9cb8ce417594a260. Its consumer-only patch applies cleanly to producer 697af3978ecabaaad072fa4fad13352fc8b7de1b on main 18ce5c82559a2b83f4aec5af0e4adc5035b3c13d. Its stable patch identity exactly matches the frozen consumer checkpoint. The producer script, producer test, and complete check-plan job remain unchanged. The new lockfile was installed independently; local runtime was Node 24.21.0 with pnpm 12.4.2. Full changed-file checks, workflow sanity, formatting, and diff checks passed. Full staged local-mode P2 review, including producer source and complete workflow evidence, completed with no findings across all three passes.

The new-parent 17-file integration run completed once: 1,643 tests passed, 14 skipped, one failed in 953.00 s. Its only failure is a pre-existing main-owned static assertion in package-acceptance-workflow.test.ts:9323: the test expects env -u OPENCLAW_GATEWAY_TOKEN -u OPENCLAW_GATEWAY_PASSWORD openclaw, while main commit 8fd584f8abf96489858ac6edcb183f6541c13629 inserts OPENCLAW_GATEWAY_STARTUP_TRACE=1 before openclaw gateway in scripts/e2e/lib/upgrade-survivor/run.sh. Both env -u operations remain present. Those files are unchanged by the consumer and match its main parent. The failure was handed to its main owner without changing this PR or retrying the failing file.

The repository's actual logical runner profile is hybrid. Its current monitor/control/guard rows changed membership, so their row proof is refreshed on the final candidate instead of treating old row labels as equivalent. The proof explicitly selected Node 24.21. Its runtime precondition initially stopped the hydrated Node 24.19 shell before any test; the existing ensure-node.sh owner selected 24.21, after which source/dependency/runtime assertions passed. Both versions satisfy the package engines contract: 24.19 was not an invalid product environment. The observed real CI job 107951002711 used Node 24.19.0, despite its declared NODE_VERSION=24.21.0. These Testbox runs establish compatible-runtime coverage on 24.21; they do not establish the observed runtime of fresh CI. Frozen 24.19 proof, new-parent 24.21 proof, and subsequent exact-head CI remain separate evidence.

Final hybrid row proof: the exact candidate tree 0e4b98e11a97da2828da04ea9cb8ce417594a260 passed all three repetitions of each selected CI row on Node 24.21.0, with the actual ordered file groups, tooling configs, two-worker group policy, and plan concurrency of one:

Row Contract Three replay wall times
compact-small-5 Monitor and planner siblings 199 / 155 / 152 s
compact-small-6 PR control and workflow siblings 73 / 77 / 75 s
compact-small-8 Routing guards and workflow siblings 95 / 100 / 101 s

Blacksmith Testbox evidence: monitor run 36097317407, lease tbx_01m3bfe7tjs3es0hjefqxdk4cc; control/guard run 36097355725, lease tbx_01m3bff7scf2grb40nhzk7p105. Every command checked source, lockfile, and runtime identity before proof. No row contained the known failing Package Acceptance file, so its failure was not repeated.

The candidate commit passed normal hooks with the verified maintainer identity. Both proof leases were stopped after their logs were downloaded. Publication of that checkpoint was held until the producer merged and the consumer could be mechanically rebased onto its actual main parent.

The stale Package Acceptance assertion above is now repaired on main by 98313da6cab4b5f0477b6acd2dfaf0592ba7e8c3 (#157902): the existing child-process test checks that neither inherited credential reaches the launched gateway. The final-parent integration will consume that landed owner repair. No duplicate assertion patch is published.

Reviewed consumer checkpoint

Consumer 4639cace72d8cb86f779c9cd2fa31bcf1ec8a623 is based on immutable producer ed0bfb627e74e475151fc9f62d620cc5bad126ca (producer tree 2d4ae85647ba9e839e24cc42022ab524eb463046). The consumer tree 6d58ed01d5c43598a70affb2319b4cb8b3506ac8 exactly matches the source verified on both Testboxes. The producer script, producer tests, and complete planner job are unchanged. The monitor, control tests, and extracted manifest helper remain byte-identical to the previously proved consumer.

The integration preserves the incoming policy-watch fix and the release publisher's releasePublishRunId evaluator input. The release-routing test combines upstream approval/credentialed-publishing/preview expectations with CS2's explicit assertions that the PR-only monitor is not admitted on non-PR runs. The prior Package Acceptance shell-string failure is resolved by its upstream owner: 98313da6 verifies both inherited credentials at the actual child-launch boundary.

All 17 helper-importing test files present in this immutable checkpoint, plus the release-evidence sibling, passed: 18 files, 1,726 tests, 160.79 s through the repository wrapper using their owned CI configs. full-release-validation-nightly.test.ts, present in a later main snapshot, is absent from this checkpoint and is not claimed as tested here; it needs its own integration proof if it enters the final parent.

The combined release-routing file passed 20/20 standalone runs, 46 tests per run, with OPENCLAW_VITEST_MAX_WORKERS=8. Its one-worker pnpm test <file> --maxWorkers=1 cost was 3 s wall / 2.05 s wrapper. Existing source-identical monitor/control 20-run proof is retained.

Refreshed hybrid row Three replay wall times
Monitor / policy-planner siblings, compact-small-5 258 / 225 / 230 s
Combined release routing, compact-small-3 34 / 34 / 35 s
Workflow guards, compact-small-9 74 / 75 / 73 s

The control row moved from compact-small-6 to compact-small-7, but its ordered files, configs, environment, and concurrency are identical; only inventory/timing identifiers changed. Its previous 3/3 proof is reused explicitly, and the current helper sweep exercises its tests with the integrated helper.

These new runs selected and verified Node 24.19.0, matching the previously observed CI runtime. Earlier Node 24.21 proof remains compatible-runtime evidence; neither is substituted for later exact-head CI. All row replays use the actual group configs, two-worker policy, plan concurrency one, and bun-compatible runtime policy through the repository shard executor. Evidence: monitor Testbox run 36103201279, lease tbx_01m3bm4w9v5svdzzpn22pc7xzh; helper/release/guard Testbox run 36103202126, lease tbx_01m3bm4x3eyecrvbyg2y9405kr.

Full changed-file checks, workflow sanity, formatting, diff checks, and the complete staged P2 local-mode review passed. All three review passes reported no findings. The normal commit hooks passed, the worktree is clean, and both proof leases are stopped after downloading their logs. No required check, assertion, timeout, or auto-merge condition was weakened. Publication and any mechanical rebase to the actual producer squash remain separate steps.

Mechanical integration with the published producer

Consumer c4d36628c90f0d5de259b633f99db9267c93eb92, tree 6751d1a555f4b93ccbf7c405488fe94bff1364e2, is privately rebased onto published producer 4425e490bd1a3f612b4a36d68058a335614dbda8. All 16 consumer-touched files are byte-identical to reviewed checkpoint 4639cace72d8cb86f779c9cd2fa31bcf1ec8a623; the stable patch identity is unchanged. Producer script/test/job, lockfile, workspace configuration, and shared/tooling Vitest configuration also match the earlier proof. The inherited packing fix changes the GitHub push path while preserving the hybrid/PR path. Existing review, standalone stress, row proof, and unchanged importer coverage are retained rather than repeated for ancestry or inventory changes.

The sole new shared-helper importer, full-release-validation-nightly.test.ts, passed all six cases on native Blacksmith Testbox, under test/vitest/vitest.tooling.config.ts with two workers and observed Node 24.19.0. Vitest duration was 1.28 s. This test mocks workflow dispatch; it did not launch Full Release Validation. Source and helper hashes were checked before execution. Evidence: run 36110559239, lease tbx_01m3bs8kexarvaz5fzk0bzfbdx, wrapper exit 0. The one-shot lease stopped successfully. A subsequent external portal synchronization warning did not change the completed command result.

Current coverage is 18 helper importers plus the release-evidence sibling: the prior exact-input sweep passed 1,726 tests across 18 files, and the newly present nightly importer adds six passing tests. These are explicitly separate runs, not a claimed single combined sweep. Final test-root typechecking, formatter, and diff checks passed. The worktree is clean; no source edit, dependency reinstall, additional stress run, or repeated shard run was needed for this mechanical rebase.

That checkpoint remained private pending the producer merge. The verified actual-squash integration is recorded below; ancestry alone does not invalidate the retained proof.

Actual producer squash integration

Published consumer 17882761db6697c3b2f14c84e5e21c7c07ed3411, tree 40f6a09146611ee49ca3f090253c0c18689f9ebc, is based directly on merged producer abde4d463ded7312cb53ecca9b0ab436166c6cb7. The squash was fetched into a private ref without changing remote-tracking refs or FETCH_HEAD. The transplant was conflict-free.

All 16 consumer-touched files, all 18 helper-importing tests plus the release-evidence sibling, producer script/test/job, nightly workflow inputs, and shared/tooling Vitest configuration remain byte-identical to the corresponding recorded proof inputs. The stable consumer patch identity remains 426cc449ef0faacbe4127f23bb6e770823dcd964. Existing P2 review, stress, row, all-importer, and six-case nightly evidence is therefore retained explicitly; no test was repeated for ancestry alone.

The actual squash also carries unrelated main changes. Its moved lockfile only replaces the Lit analyzers' private classic TypeScript 5.2.2 with 5.9.3; all lockfile importers are unchanged. The owned checkout was reconciled with the frozen lockfile. Both analyzer resolvers now select 5.9.3, while the consumer toolchain remains TypeScript 7.0.2, Vitest 5.0.1, and YAML 2.9.1. Added database/Gateway routing entries are outside the tooling targets and do not change this helper proof's config or admission. The package script change only renames the iOS review-notes input.

Prior-head fixture failure and live cancellation

Job 107997263696, checks-node-compact-small-5, failed ten cases in src/scripts/ci-changed-scope.test.ts:920 with ERR_MODULE_NOT_FOUND for scripts/lib/ci-native-generated-scope.mjs. This PR imports that dependency-free module from the real scope CLI, but the zero-install test fixture’s explicit copy list still contains only the old files. The other 111 cases passed. All ten workload annotations identify that same missing module. This is a PR fixture integration defect, not a new main regression; the earlier workflow-helper sweep did not cover this separate CLI copy fixture. The repair adds the missing fixture file while retaining its no-node_modules, real-process, and output assertions. No rerun, timeout increase, or assertion change is used.

The same run exercised the completed producer/consumer cancellation contract. Planner 107996452317 successfully published the unique same-run/attempt marker CI check job count v1: 17; preflight supplied 70 total jobs and a 20-job provisional check reservation. Monitor 107996452366 recorded failure-cancelled at 08:19:40 UTC and 32 jobs were cancelled across families. Gate 107998602557 received FAILURE_JOB_ID=107997263696 and FAILURE_JOB_NAME=checks-node-compact-small-5, executed its failure-summary step, and remained red. Selected-lane verification also rejected the failed/cancelled families. The completed run has 35 successful, 15 skipped, 32 cancelled, and two failed jobs (the owner row and aggregate). Both failed jobs’ annotations and all relevant logs were inspected. No manual cancellation or rerun was issued.

Zero-install fixture repair after fresh CI

Fresh CI run 36111583823 at 17882761db6697c3b2f14c84e5e21c7c07ed3411 exposed a PR-caused fixture integration defect in checks-node-compact-small-5, job 107997263696. The real ci-changed-scope.mjs imports the extracted ci-native-generated-scope.mjs, but its zero-install test fixture copied only the previous module closure. All ten zero-install cases failed with ERR_MODULE_NOT_FOUND before the CLI could emit its decisions. This was not a new-main regression or a hosted flake.

Commit 4c0725ed924697d6ebccbe34edfc5105099a9ab4, tree 6caeda1538b18ba82de3aa073701fee701706f90, adds exactly one explicit fixture copy-list entry. The new module has no imports. No production or shared-helper module changed, and the existing node_modules-absence, actual Node CLI execution, and full output assertions are preserved.

Native Blacksmith Testbox reproduced the full file before editing: 10 failed / 111 passed, 121 total. After repair, the full 121-case file passed 20/20 runs at worker ceiling eight—0/20 failing runs, 2,420 passing case executions. The exact failed CI row, decoded from the saved job's GROUPS_GZIP value, passed 3/3 with its original ordered groups, tooling configs, two-worker policy, concurrency one, and bun-compatible executor policy; replay walls were 191 / 133 / 124 s. Scope owner/siblings passed 7 files / 297 tests. Proof observed Node 24.19.0 and verified the exact source hashes.

One-worker pnpm test src/scripts/ci-changed-scope.test.ts --maxWorkers=1 cost: 21 s wall / 20.01 s wrapper. The target's wrapper times within the three captured-row replays were 7.76 / 7.14 / 8.61 s. Fresh full-run CI timings remain separate from this Testbox proof.

Evidence: before/stress/sibling Testbox run 36112773712, lease tbx_01m3btnfzndgtexdkxqqsav0pc; captured-row Testbox run 36113240357, lease tbx_01m3btyx0p306t54ktxrtmb7p1. Both command outcomes and source hashes are recorded; the leases are stopped after log download. Full scoped check-changed, type-aware lint, formatting, diff checks, and fresh P2 scoped-clean review passed. The normal commit hooks passed. Existing source-identical workflow-helper and monitor/control proof is reused.

The failed fresh run also exercised the intended fail-fast behavior: monitor job 107996452366 read preflight reservation 70, check reservation 20, and successful planner count 17, giving final expected count 67. It recorded the failed row before its single cancellation request at 08:19:40Z, and 32 jobs were cancelled. Gate 107998602557 executed its red failure-reporting step with FAILURE_JOB_NAME=checks-node-compact-small-5 and FAILURE_JOB_ID=107997263696. No GitHub rerun was issued to hide the defect; the repaired commit receives fresh CI.

Scheduled-main integration after the green CS2 run

Rebased CS2 onto 1ae730f6750bfc841d2444fa61111f93d0662dea, integrating #157751's direct hourly schedule on ci.yml. Published head: fd265321c03b3e15738c86ca872677e0f8092f5a. Its tree is exactly the reviewed and final-row-tested tree 5cbb69c2b548b9e6872ef988e5a1671347ded662. The two commits are e368636a5a1ab5c1f1919e112dacae152f4ef757 and fd265321c03b3e15738c86ca872677e0f8092f5a; the worktree is clean.

The aggregate gate now prefixes the entire existing CS2 condition with upstream canonical scheduled-main admission. PR-only cancellation, the single actions: write job, attempt-scoped failure reporting, named red aggregate, retry behavior, and GitHub runner override are preserved. The extracted manifest fixture remains the sole owner; its only upstream interface addition is eventName: "schedule". Upstream scheduled planning, exact-checkout diff-base behavior, and evaluated guard tables remain intact.

The new hourly runner/cache parity loop incorrectly tried to evaluate the PR-only monitor's runner expression on main, whose context has no PR head. The unadapted full file failed 5 of 21 cases in one observed baseline run. The repair first evaluates the real monitor admission expression and asserts it is false for both schedule and push, then skips only that inadmissible job's placement comparison. All other parity assertions remain. Mechanical inherited lint cleanup adds braces, folds a constant string, and renames one shadowed tuple binding; it changes no assertions or budgets.

Proof:

  • Blacksmith Testbox tbx_01m3bxe3q0mfv2ge6rch358pat: all 18 shared-helper importers plus the release-evidence sibling passed, 19 files / 1,741 tests. The ordinary wrapper used vitest.unit-fast-isolated.config.ts (2 files / 38 tests) and vitest.tooling.config.ts (17 files / 1,703 tests), finishing in 188.72 s.
  • On that Testbox, the complete 21-case hourly file passed 20/20 runs at OPENCLAW_VITEST_MAX_WORKERS=8. pnpm test test/scripts/ci-hourly.test.ts --maxWorkers=1 took 3 s wall / 2.51 s wrapper / 1.42 s Vitest. This frozen proof preceded only the mechanical lint cleanup; the helper and assertion behavior are identical. Final local focused proof passed all 21 hourly cases plus the affected guard-table case.
  • Blacksmith Testbox tbx_01m3bxe35p66bfjg9hr8ezym66: final tree passed the actual generated checks-node-changed row three times (4 files / 43 tests each; 20, 21, and 20 s). Targets were changed-path-facts, changed-lanes-generated-extension-lint, ci-workflow-native-generated, and ci-hourly. The real shard executor retained the automatic two-worker policy, bun-compatible runtime routing, and blank matrix concurrency. It used the repository's checksum-pinned Bun action after verifying Linux/X64; both archive and binary checksums passed. Node was 24.19.0; Bun reported 1.4.3-canary.1+ddfce5d01 from public commit ddfce5d01f6a436203a8f41fc8bff074f9b09614. The final guard-table case also passed on this Testbox.
  • node scripts/check-changed.mjs passed completely, including formatting, all selected type lanes, type-aware lint, dead exports, and boundary guards. Workflow sanity and git diff --check passed. Fresh full-candidate local-mode independent autoreview against the pinned base returned scoped-clean, zero P0–P2 findings across both passes.
  • Existing source-identical monitor/control and zero-install 20×/3× evidence remains valid, including the green prior CI run 36114665302 and the earlier live red gate correctly naming originating job 107997263696 in run 36111583823. Rebase ancestry and row labels do not invalidate that behavior proof.

Two preliminary row attempts failed before any tests: the lease lacked Bun, then the copied Actions setup step lacked Actions-provided runner environment values. Supplying verified Linux/X64 and a task-owned temporary directory to the unchanged pinned installer fixed provisioning. These are setup failures, not flaky tests or rerun-for-green evidence. Bun emitted a directory-mismatch diagnostic after passing tests; every file and row exited 0. No test, timeout, wait budget, auto-merge condition, or runtime policy was weakened.

The helper/standalone lease is linked by its exact lease ID in hydration run 36117205584. Final row logs and source receipts were downloaded before cleanup; both proof leases are stopped.

Prior green CI also verified all 121 scope cases in job 108007387374; the test file reported 0.726 seconds, separate from setup/transform/job wall time. Monitor 108006387128 ended with PR failure monitor: completed, validating healthy completion after the successful planner count.

Final monitor job 108019632274 ended with PR failure monitor: completed at 09:43:42 UTC. The aggregate gate passed. Together with the earlier observed cross-family cancellation and named red gate, this verifies both healthy completion and failure reporting through live CI.

@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Sep 23, 2026
@steipete
steipete marked this pull request as ready for review September 23, 2026 09:09
@steipete
steipete force-pushed the ci-burden/cs2-pr-volume branch from 89438c9 to eddcdba Compare September 23, 2026 10:02
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 23, 2026
@clawsweeper

clawsweeper Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 4:54 AM ET / 08:54 UTC (Revision 5).

ClawSweeper review

What this changes

The branch adds first-attempt PR failure cancellation, Node matrix fail-fast, aggregate failure reporting, and narrower CI selection for bot-generated native locale changes.

Merge readiness

⛔ Blocked before merge - 2 items remain

Current main still lacks cross-family PR failure cancellation. A hosted run supports the intended behavior, and the branch remains useful. GitHub currently reports a merge conflict with main.

Priority: P2
Reviewed head: 4c0725ed924697d6ebccbe34edfc5105099a9ab4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Hosted behavior proof and focused tests support a coherent CI change; the current merge conflict remains a workflow blocker.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): A hosted GitHub Actions first-attempt run on the unchanged production monitor path showed a failed Node row, successful monitor, canceled sibling work, and a failed aggregate gate. The reviewed head only repairs a zero-install test fixture; its exact-head CI was still running. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): A hosted GitHub Actions first-attempt run on the unchanged production monitor path showed a failed Node row, successful monitor, canceled sibling work, and a failed aggregate gate. The reviewed head only repairs a zero-install test fixture; its exact-head CI was still running. No stored-data contract changes.
Evidence reviewed 9 items Introduced workflow: The pinned introduced diff adds a first-attempt, same-repository monitor with Actions write permission and connects its result to the aggregate gate.
Cancellation boundary: The monitor checks the open PR, head, run identity, and newer runs before recording the failed job and requesting cancellation of its own run.
Prior blocker resolved: The current head changes only the zero-install fixture copy list relative to the preceding reviewed head; the monitor's expiry path is present in the current source.
Findings None None.
Security None None.

How this fits together

GitHub Actions selects jobs for each pull request and runs Node, native, and other checks in parallel. The new monitor observes those jobs and passes a failure cause to the aggregate CI check.

flowchart LR
A[Pull request] --> B[Preflight selection]
B --> C[CI job families]
C --> D[Failure monitor]
D --> E{Current run failed?}
E -->|Yes| F[Cancel remaining jobs]
E -->|No| G[Finish observation]
F --> H[Aggregate CI check]
G --> H
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports a merge conflict with current main, which changed scheduled CI policy in the same workflow; the combined workflow has not been validated.
  • Complete next step (P2) - Resolve GitHub's reported merge conflict with current main while preserving scheduled validation and PR cancellation.
Agent review details

Security

None.

PR surface

Tests +834, Docs +31, Config +97, Other +335. Total +1297 across 17 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 10 1495 661 +834
Docs 3 38 7 +31
Config 1 107 10 +97
Generated 0 0 0 0
Other 3 344 9 +335
Total 17 1984 687 +1297

Review metrics

Metric Value Why it matters
Code balance production/tooling +432 net; tests/test support +834 net The monitor and job accounting explain tooling growth; much of the test growth is an extracted shared workflow fixture.
Cancellation permission 1 job granted Actions write The permission is confined to the PR failure monitor.

Merge-risk options

Maintainer options:

  1. Reconcile the CI workflow (recommended)
    Resolve the conflict while retaining main's scheduled-validation policy and this PR's cancellation path, then validate the resulting head through the enforced CI gate.

Technical review

Best possible solution:

Keep one scoped PR failure monitor that stops wasted jobs while preserving scheduled main validation, manual coverage, and a red aggregate check for genuine failures.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug report. A deliberate failed Node row in hosted CI demonstrates the changed cancellation and failure-reporting path.

Is this the best way to solve the issue?

Yes. Native Node matrix fail-fast and one scoped monitor use the existing CI graph and aggregate gate without adding another result owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 79399a653aab.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This CI efficiency improvement has meaningful runner cost impact without a demonstrated urgent user-facing regression.
  • merge-risk: 🚨 automation: The branch changes job cancellation and aggregate reporting, and its workflow currently conflicts with main's scheduled-CI change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): A hosted GitHub Actions first-attempt run on the unchanged production monitor path showed a failed Node row, successful monitor, canceled sibling work, and a failed aggregate gate. The reviewed head only repairs a zero-install test fixture; its exact-head CI was still running. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. A hosted GitHub Actions first-attempt run on the unchanged production monitor path showed a failed Node row, successful monitor, canceled sibling work, and a failed aggregate gate. The reviewed head only repairs a zero-install test fixture; its exact-head CI was still running. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-23T10:16:57.634Z sha eddcdba :: blocked before merge. :: [P1] Remove the deliberate failure before landing
  • reviewed 2026-09-23T11:00:31.005Z sha 2c8b2fe :: blocked before merge. :: [P2] Let the observer expire without failing healthy CI | [P2] Copy the extracted helper into the zero-install fixture
  • reviewed 2026-09-23T17:19:13.566Z sha 72ea91d :: blocked before merge. :: [P2] Let the observer expire without failing healthy CI | [P2] Copy the extracted helper into the zero-install fixture
  • reviewed 2026-09-25T08:20:03.777Z sha 17882761db6697c3b2f14c84e5e21c7c07ed3411 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the ci-burden/cs2-pr-volume branch from e3e427d to 2c8b2fe Compare September 23, 2026 10:51
@steipete
steipete enabled auto-merge (squash) September 23, 2026 11:22
@steipete
steipete force-pushed the ci-burden/cs2-pr-volume branch 2 times, most recently from 72ea91d to 1788276 Compare September 25, 2026 08:11
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 25, 2026
Observe same-repository PR failures from preflight, cancel remaining families
through one authorized job, and preserve a red aggregate naming the failed
row. Bind cancellation and planner count facts to the current run attempt,
retain retry isolation, and bound observation by the monitor's actual start.

Reconcile installed check planning without delaying failure observation.
Preserve upstream policy-watch selection and release-publish routing, the
existing hybrid routing, and the missing Blacksmith failure reporting route.
Keep generated-native-only selection with its artifact owner.

Verify every present shared-helper importer, combined release-routing
assertions, changed CI rows, and source-identical stress evidence. Full staged
review and changed-file checks pass; retain the upstream child-launch repair
for inherited credentials rather than its superseded shell-string assertion.
The native artifact classifier moved to its own ESM module, but the
zero-install scope fixture still copied the previous import closure. Include
the dependency-free module so the real Node CLI runs without node_modules
and all existing execution and scope-output assertions remain effective.

Reproduce all ten zero-install failures in the full 121-case file before the
repair. Verify the full file twenty times, the captured failing CI row three
times, and the scope owner/siblings without changing assertions or budgets.
@steipete
steipete force-pushed the ci-burden/cs2-pr-volume branch from 4c0725e to fd26532 Compare September 25, 2026 09:30
@steipete
steipete merged commit d53f229 into main Sep 25, 2026
143 checks passed
@steipete
steipete deleted the ci-burden/cs2-pr-volume branch September 25, 2026 09:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
* ci: fail fast across PR job families

Observe same-repository PR failures from preflight, cancel remaining families
through one authorized job, and preserve a red aggregate naming the failed
row. Bind cancellation and planner count facts to the current run attempt,
retain retry isolation, and bound observation by the monitor's actual start.

Reconcile installed check planning without delaying failure observation.
Preserve upstream policy-watch selection and release-publish routing, the
existing hybrid routing, and the missing Blacksmith failure reporting route.
Keep generated-native-only selection with its artifact owner.

Verify every present shared-helper importer, combined release-routing
assertions, changed CI rows, and source-identical stress evidence. Full staged
review and changed-file checks pass; retain the upstream child-launch repair
for inherited credentials rather than its superseded shell-string assertion.

* test(ci): complete zero-install scope fixture

The native artifact classifier moved to its own ESM module, but the
zero-install scope fixture still copied the previous import closure. Include
the dependency-free module so the real Node CLI runs without node_modules
and all existing execution and scope-output assertions remain effective.

Reproduce all ten zero-install failures in the full 121-case file before the
repair. Verify the full file twenty times, the captured failing CI row three
times, and the scope owner/siblings without changing assertions or budgets.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 9, 2026
Two reasons, both from the stale base:

- The pr-fail-fast job checks out scripts/ci-pr-fail-fast.mjs from the
  pull request's recorded base, f6a3ed7 (2026-09-23), and main only
  gained that script in d53f229 (openclaw#156375, 2026-09-25), so the job
  fails with "Cannot find module" before it inspects this diff.
- Main's 1d09a03 (openclaw#167916) renamed the safeguard's summarizer seam
  to summarizeCompactionHistory and its test hook to
  setSummarizeCompactionHistoryForTest. The textual merge is clean, but
  the quality-feedback suite then fails on
  "testing.setSummarizeInStagesForTest is not a function" (6 of 6) and
  the agents-other test graph on TS2305/TS2339. The suite now uses
  main's names; its assertions are unchanged.

The branch still changes only compaction-safeguard-quality.ts and its
quality-feedback suite.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant