Skip to content

ci: let PR checks finish and classify inherited failures - #169647

Merged
steipete merged 4 commits into
mainfrom
steipete/ci-run-to-completion
Oct 12, 2026
Merged

steipete merged 4 commits into
mainfrom
steipete/ci-run-to-completion

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

PR CI loses evidence when its first failure cancels sibling jobs. In the October 12 measurement, all 59 hourly main runs since October 9 16:35Z failed, 67% of finished PR runs over 48 hours were red, and 41% of steipete merges crossed a red or cancelled gate, costing about 27 minutes of attribution each. Since PR CI tests a merge ref, inherited main failures can erase the evidence needed to assess the PR itself.

User Impact

All planned same-repository PR jobs can finish after a sibling failure. pr-failure-report and openclaw/ci-gate show each failed or timed-out job as pre-existing, new, or unknown, with links to the newest completed scheduled main run/job. Stable JSON output supplies job, conclusion, class, mainRunId, mainJobId, and reason.

The reason column distinguishes matching failure signatures from job-name-only matches. Matching signatures need no further attribution. For job-name-only pre-existing failures, the lander must check the failing tests against main before attributing them. The gate's existing stricter allowance remains unchanged.

Failed runs previously stopped around six minutes; they are expected to finish around 10–11 minutes now, adding roughly four to five minutes of execution to retain the full evidence. This is the intended CI cost tradeoff.

Why This Change Was Made

Replaces the polling/cancellation owner with a report job that depends on the existing validation jobs. Deletes the cancel request, ci:no-fail-fast opt-out, dead planner-count transport, obsolete tests/docs, and the deleted test's timing entry. The renamed job describes its actual responsibility, and ci.yml shrinks within its existing size guard.

Classification stays in ci-known-main-red.mjs, reusing its bounded Actions inventory and Node/static parsers. Exact job/shard names must match. A comparable main pass or different signature is new; detected scope mismatches are unknown; matching failures and supported signature sets are pre-existing; absent, cancelled, ambiguous, incomplete, or unavailable evidence is unknown. Unsupported families visibly require manual failure comparison. The existing gate allowance retains its first-attempt/Node eligibility and unchanged-subject checks; a label alone cannot make the gate pass.

Rebased onto main 10b134430807c9b04e697e59a87bc09e5e41e330. Preserves the slim scripts/AGENTS.md and main's proof policy. Applies the moved cancellation/attribution guidance in docs/reference/scripts/prior-ci.md and the landing reference instead of restoring removed guide text. The P2 attribution distinction is accepted in this revision.

Fork PRs targeting this repository retain complete matrix coverage and no cancellation authority. They use the same terminal reporting with code from the trusted base; retry/no-Node reporting does not change gate results. Native matrix fail-fast in other workflow repositories remains enabled, without the deleted label override. The three old-name literals left in code/tests are explicitly historical receipt decoding: renaming them would reject authentic retained runs. No live workflow invokes that cancellation owner.

Runner labels, concurrency groups, fanout caps, rulesets, required checks, and release-owned changelogs are unchanged. The reporter reduces its Actions permission from write to read.

A follow-up option, not implemented here, is to pass the gate whenever every failure is classified pre-existing. That requires a separate decision.

Evidence

This follow-up fixes the existing no-map-spread violation in the manifest's real-Gateway matrix projection, preserving its output. It also makes attribution honest about detected scope differences. The existing owner compares the build job's seven logged verifier-selection flags and distinguishes changed-file from full/striped lint steps. A detected difference yields unknown with Selected scope differs from main; failure signatures not comparable. Other rows disclose selected scope not compared. Existing job-log reads are cached, and gate semantics and permissions are unchanged.

SQLite failure attribution

The SQLite failure is an existing intermittent lifecycle-test failure, not a test selected only by this PR. Main run 38216343022, job 114702187142 ran the same sqlite-sessions-transcripts-flip-proof.built-cli.e2e.test.ts and passed it in 105.903 seconds. Main selected all nine artifact verifiers; this PR selected startup memory, plugin singleton, and the SQLite lifecycle verifier. The full lifecycle helper is unchanged from this PR's base.

One recent-PR query followed by four failed-log reads found the identical terminal deletion AbortError: agent run aborted, with endedAt and no stopReason, on three unrelated branches:

The fourth sampled run had no matching failure. Saved logs were reused; no SQLite code, assertions, or timeouts were changed. The earlier local diagnostic stopped before deletion at the existing plugins inspect exit deadline and is not claimed as a reproduction or fix.

Local proof

  • Classifier, report, and heavy-lane tests: 102 passed, 26.52 s wall, using pnpm test <files> --maxWorkers=1.
  • Existing UI manifest cases: nine passed, 13.96 s + 6.05 s wall, using focused test-name filters. These verify frozen and selected-test matrix serialization.
  • Before the fix, all four newly added scope regressions failed for the intended reason (3.41 s); the completed implementation has five new passing cases, including equal build scopes.
  • Targeted script lint: passed, 2.41 s; targeted root-test lint: passed, 18.85 s. Formatting and git diff --check passed.
  • One independent Codex delta autoreview through P2: scoped-clean, zero findings, 33.32 s. The review is pinned to the previous PR head.

Exact-head CI

Head: 7fcb68de4ee9be3bcd5125437edf0514f28a6112. Run 38224033197, attempt 1, passed in 10m 34s: 74 successful, 18 skipped, zero failed, zero cancelled. All 92 jobs are terminal. build-artifacts, check-lint, pr-failure-report, and openclaw/ci-gate passed. The gate reported no selected validation lane as skipped. The report and gate summaries are byte-identical, with machine-readable classification JSON [].

The published summary has no failure rows:

PR failure classification

No failed or timed-out jobs.

Earlier red runs 38217698549 and 38221185147 also completed all selected lanes with zero cancellations after workload failures. This green run verifies the current repaired head; it is not claimed to fix the unchanged intermittent SQLite defect. Replaying the saved failing PR/main build logs through the current owner returns unknown with the scope-difference reason.

The PR remains open and unmerged. This is one new commit, a normal push, and one exact-head CI observation. No rerun, dispatch, update-branch, or merge was performed.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review in progress

ClawSweeper is reviewing this revision. This supersedes any previous blocked status.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces failure-triggered PR CI cancellation with terminal failure reports comparing results against scheduled main CI.

Example: check-lint fails while sibling validation jobs are running.

  • Before: The first-attempt monitor can cancel sibling jobs before they produce results.
  • After: Sibling jobs finish, and the reporter classifies failures without automatically relaxing the aggregate gate.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The actual workflow demonstrates completion and terminal reporting, but introduced lint errors block validation and the build failure remains unattributed.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The author supplies the exact-head Actions observation and published classification table; REST inspection confirms terminal sibling jobs, a successful reporter, matching scheduled-main jobs that passed, and a failed aggregate retaining workload failures.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Maintainers lose sibling validation evidence when the first CI failure cancels remaining PR work.
Reason: The feature-history owner accepts the execution-cost tradeoff, and the patch removes the cancellation path it replaces.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep open: this PR preserves useful CI evidence and remains necessary on main, but its added fixtures cause a required lint failure.

Priority: P2
Reviewed head: 8248ddcd37d99bd753f4a0a985edbeff9cd92389

Before merge

  • Replace both fixture map-and-spread transformations (P2) - The added map callback spreads each entry into a new object, violating the repository's error-level oxc/no-map-spread rule. The same pattern appears at test/scripts/ci-pr-failure-report.test.ts:54-55. The author identifies both diagnostics in the exact-head check-lint failure, and inspection confirms both introduced expressions. Rewrite these fixture transformations using a lint-compliant construction without suppressing the rule; otherwise the required lint check and aggregate gate remain red.
  • Complete next step - Attribute the SQLite lifecycle AbortError in https://github.com/openclaw/openclaw/actions/runs/38217698549/job/114706557586 using baseline or head-versus-revert evidence, and repair it only if this diff caused it.

Findings

  • [P2] Replace both fixture map-and-spread transformations — test/scripts/ci-known-main-red.test.ts:125-128

Tests

  • Low-value test test/scripts/ci-pr-failure-report.test.ts: Remove or replace the retry test at line 96: its empty inventory never exercises denial of an otherwise eligible exemption, as the previous review already noted.
Agent review details

How this fits together

GitHub Actions selects validation jobs from preflight; their terminal results and scheduled-main evidence feed failure reporting and the aggregate CI gate.

flowchart TD
  A[PR event] --> B[Preflight selection]
  B --> C[Validation jobs]
  C --> D[Failure reporter]
  E[Scheduled main evidence] --> D
  D --> F[Aggregate CI gate]
  C --> F
Loading

Technical review

Best possible solution:

Retain one terminal reporting owner with strict gate admission, and repair the fixture lint errors before landing.

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

Current-main source explicitly cancels eligible same-repository PR work after an unqualified failure; no target code or tests were executed during this review.

Is this the best way to solve the issue?

Dependency-driven reporting removes the polling cancellation owner and reuses existing evidence parsers while preserving separate, stricter gate admission.

Full review comments:

  • [P2] Replace both fixture map-and-spread transformations — test/scripts/ci-known-main-red.test.ts:125-128
    The added map callback spreads each entry into a new object, violating the repository's error-level oxc/no-map-spread rule. The same pattern appears at test/scripts/ci-pr-failure-report.test.ts:54-55. The author identifies both diagnostics in the exact-head check-lint failure, and inspection confirms both introduced expressions. Rewrite these fixture transformations using a lint-compliant construction without suppressing the rule; otherwise the required lint check and aggregate gate remain red.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6cf651fb899f.

Provenance checked

  • Failure-triggered cancellation and planner-count transport changes intended behavior with a stated reason (d53f229: Stop spending runner time after a failure makes the run unusable while preserving a red aggregate naming its cause.)
  • Known-main-red gate allowance keeps the original intent (83fb6a3: Accept only verified inherited failures with complete execution evidence, unchanged subjects, and current trusted main evidence.)
  • Canonical PR matrix completion keeps the original intent (55fe1b4: Preserve remaining validation evidence after failures on canonical PR reruns.)
  • ci:no-fail-fast label changes intended behavior with a stated reason (90563ee: Allow maintainers to collect the complete failure set through an explicit opt-out.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test test/scripts/ci-known-main-red.test.ts test/scripts/ci-pr-failure-report.test.ts --maxWorkers=1
  • node scripts/run-oxlint.mjs --tsconfig test/tsconfig/tsconfig.test-root.json test/scripts/ci-known-main-red.test.ts test/scripts/ci-pr-failure-report.test.ts
  • ./node_modules/.bin/oxfmt --check test/scripts/ci-known-main-red.test.ts test/scripts/ci-pr-failure-report.test.ts
  • git diff --check

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 83fb6a3 adds scripts/ci-known-main-red.mjs:7 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 83fb6a3aa8ce; files: scripts/ci-known-main-red.mjs)

PR surface

Tests -352, Docs -102, Config +25, Other -244. Total -673 across 23 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 10 515 867 -352
Docs 5 43 145 -102
Config 1 68 43 +25
Generated 0 0 0 0
Other 7 249 493 -244
Total 23 875 1548 -673

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.

Label justifications:

  • P2: This improves maintainer CI evidence retention and attribution without changing the product runtime.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-12T05:51:13.304Z sha 468a179 :: needs changes before merge. :: none
  • reviewed 2026-10-12T05:58:01.180Z sha 468a179 :: needs changes before merge. :: none
  • reviewed 2026-10-12T07:32:21.775Z sha 8248ddc :: needs changes before merge. :: none

Reviewed October 12, 2026, 3:52 AM ET / 07:52 UTC (Revision 4).

@steipete
steipete force-pushed the steipete/ci-run-to-completion branch from 468a179 to 8248ddc Compare October 12, 2026 07:25
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Oct 12, 2026
@steipete
steipete merged commit 7c4ff5a into main Oct 12, 2026
137 checks passed
@steipete
steipete deleted the steipete/ci-run-to-completion branch October 12, 2026 08:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…9647)

* ci: finish PR jobs and classify failures against main

* ci: distinguish signature and job-name failure attribution

* test(ci): avoid object spread in failure fixtures

* ci: classify differing validation scopes as unknown
RomneyDa added a commit that referenced this pull request Oct 20, 2026
…8170)

* fix: ClawHub release verification fails while publication is pending (#168153)

* fix(release): verify ClawHub only after public finalization

* fix: align ClawHub recovery with authoritative publication state

(cherry picked from commit 7985ac2)
Co-authored-by: RomneyDa <[email protected]>

* fix: Linux feed publication tolerates stale public downloads (#168179)

(cherry picked from commit 18f2006)
Co-authored-by: RomneyDa <[email protected]>

* feat(pr): scope worktree cleanup to one PR (#168152)

(cherry picked from commit 51c0f56)
Co-authored-by: RomneyDa <[email protected]>

* feat(release): reconcile exact owned validation cancellation trees (#168267)

* feat(release): reconcile exact owned FRV cancellation trees

* fix(release): parse cancellation provenance with fixed patterns

* fix(release): normalize rerun copies before cancellation discovery

(cherry picked from commit 02a2bd2)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): recover failed receipts without rerunning workloads (#168266)

* fix: recover failed release receipts without rerunning workloads

* test(release): materialize publication harness preload closure

(cherry picked from commit 4485101)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): restore Telegram progress E2E delivery (#168675)

(cherry picked from commit 1fbfd4a)
Co-authored-by: RomneyDa <[email protected]>

* docs(release): generate release notes once after validation-recovery backports (#169495)

(cherry picked from commit 696fb2f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): explain why release:candidate --workflow-sha must be trusted main (#169496)

(cherry picked from commit 513d0e7)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): full release validation helper fails when main advances before admission dispatch (#169500)

(cherry picked from commit 992410c)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): derive attested publish tooling in npm postpublish verification (#169497)

(cherry picked from commit 1f8307f)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): report candidate supersession and resume watchers (#168271)

* fix(release): report candidate supersession and resume watchers

* fix(release): keep invalid candidate metadata advisory to watchers

(cherry picked from commit cdb57ac)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): stop waiting for advisory ClawSweeper reviews (#169739)

(cherry picked from commit c2d1513)
Co-authored-by: RomneyDa <[email protected]>

* ci: let PR checks finish and classify inherited failures (#169647)

* ci: finish PR jobs and classify failures against main

* ci: distinguish signature and job-name failure attribution

* test(ci): avoid object spread in failure fixtures

* ci: classify differing validation scopes as unknown

(cherry picked from commit 7c4ff5a)
Co-authored-by: RomneyDa <[email protected]>

* fix(pr): scripts/pr keeps a lock after a failed command that fully drained (#169595)

* fix(pr): release drained failed-operation locks instead of requiring manual recovery

* test(pr): drop unused lock owner initializer

* docs(pr): drop obsolete blanket failure-retention claim

(cherry picked from commit a939a9d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): success headline hides post-swap steps that did not run (#170490)

(cherry picked from commit f26cdca)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): require current website downloads at closeout (#170704)

* fix(release): require current website downloads at closeout

* fix(release): verify request-time downloads before closeout receipts

* style(release): use braces for dispatch validation

(cherry picked from commit 0c51cc6)
Co-authored-by: RomneyDa <[email protected]>

* fix(ci): prevent avoidable FRV retries and cold setup failures (#170964)

* fix(ci): preserve FRV work through transient GitHub reads

* fix(ci): retain cache reads for frozen workflow targets

* fix(ci): count contributing packed release timing samples

* fix(ci): avoid stalled iOS simulator diagnostics

* test(ci): correct FRV regression assertions and output capture

(cherry picked from commit 5cd688d)
Co-authored-by: RomneyDa <[email protected]>

* fix(update): stabilize stalled recovery cleanup validation (#171507)

* test(update): await recovery descendant before fixture expiry

Expire the generated helper recovery timeout callback after the isolated command has persisted a live descendant PID and emitted readiness. Keep process-group termination and close joins native, retain the durable failed sentinel and dead-descendant assertions, and bound missing readiness with a fixture watchdog.

Refs #170803 (stalled-recovery fixture race only).

* test(update): load recovery clock from fixture module

Replace the added hand-written preload source template with a test-owned ESM fixture and per-case JSON configuration. Preserve exact helper and recovery command scoping, native timeout callback and watchdog cleanup, persisted descendant readiness and existing deadline, close-order, sentinel and process-death assertions.

Production behavior and deadlines are unchanged. Refs #170803 (stalled-recovery fixture race only).

* test(update): join state workers before handoff cleanup

Await the maintained state-database test cleanup owner before removing managed-handoff fixture directories. Synchronous native-handle close only starts worker retirement and can race the final WAL cleanup, observed as ENOTEMPTY in the retained-notification triage case.

Reuse closeStateDatabaseForTest without retries, timing seams, triage behavior changes or production changes. Refs #170803 (managed-handoff test fixtures only).

(cherry picked from commit 4a25358)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): retire session MCP managers left by earlier test files (#172515)

(cherry picked from commit d4be691)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): show publication release and Windows source identities (#170274)

(cherry picked from commit 35fffec)
Co-authored-by: RomneyDa <[email protected]>

* fix: distinguish workflow approval and exception capabilities (#172661)

(cherry picked from commit aade2f8)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): expose Linux builder admission and retain failed bundles (#170297)

* fix(release): expose Linux builder admission and retain failed bundles

* fix(release): preserve unconfirmed Linux dispatch status

* fix(ci): make Linux build event admission explicit

* fix(ci): separate Linux mirror dispatch from release builds

* fix(ci): budget cold Linux source package builds

(cherry picked from commit 614f559)
Co-authored-by: RomneyDa <[email protected]>

* fix(ui): let locale refresh workers bootstrap new locale memory (#172689)

(cherry picked from commit 17bea1c)
Co-authored-by: RomneyDa <[email protected]>

* test(gateway): prewarm history worker before composed SDK request budgets (#172745)

(cherry picked from commit 2051055)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): packed package check refuses a root dist above 10,000 JavaScript files (#172954)

(cherry picked from commit 244cd79)
Co-authored-by: RomneyDa <[email protected]>

* test(agents): Bun agents-support shard fails after the question authority test leaks sharing reads (#172974)

(cherry picked from commit 54f0b41)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile (#173105)

* test(plugins): IRC direct import smoke times out on loaded runners during its cold compile

* test(googlechat): keep the direct smoke test deadline above its child budget

(cherry picked from commit 8bc4915)
Co-authored-by: RomneyDa <[email protected]>

* fix(test): interrupted test wrappers miss their signal exit verifying a generation (#173068)

* fix(test): interrupted test runs miss their signal exit verifying a generation they will delete

* fix(test): keep borrower disposal verification; skip it only for interrupted wrappers

* fix(test): return the shim interruption result on every path

(cherry picked from commit b66e0fc)
Co-authored-by: RomneyDa <[email protected]>

* test(openshell): registration lifecycle test fails when registry retirement outlasts its 1s poll (#173205)

(cherry picked from commit 7cd0f47)
Co-authored-by: RomneyDa <[email protected]>

* fix(android): prepare focused proof before running Gradle (#172668)

* fix(android): prepare focused proof before running Gradle

* test(android): reach proof prerequisites on Linux ARM

* test: remove duplicated Android job structure assertion

* fix: seed stored inference account for Docker cron cleanup

(cherry picked from commit 404b708)
Co-authored-by: RomneyDa <[email protected]>

* fix: preserve bound Codex history after app-server restart (#172705)

(cherry picked from commit 9fe4372)
Co-authored-by: RomneyDa <[email protected]>

* fix(release): Linux channel promotion fails after a withdrawn Windows companion (#173615)

(cherry picked from commit c58afa2)
Co-authored-by: RomneyDa <[email protected]>

* ci(release): temporarily disable Windows companion publication (#173656)

(cherry picked from commit 99ce3ea)
Co-authored-by: RomneyDa <[email protected]>

* fix(qa): Telegram live lane fails scenarios when the stale-update drain hits a transient Bot API error (#173465)

* fix(qa): retry Telegram stale-update drain through transient Bot API failures

* fix(qa): cancel Telegram drain waits on proxy stop and cap attempts by budget

* test(qa): prove the Telegram drain abandons a stalled attempt at its deadline

* test(qa): drop timing-dependent upstream count from Telegram drain deadline test

(cherry picked from commit 387ebd6)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): give relocated worker facade and image tests the archive budget (#174556)

(cherry picked from commit 746a52a)
Co-authored-by: RomneyDa <[email protected]>

* test(ui): settle lazy preference reader before profile identity waits (#174614)

(cherry picked from commit d6ea634)
Co-authored-by: RomneyDa <[email protected]>

* test(plugins): collect Bun recovery retention from a timer phase (#174924)

Bun's JavaScriptCore scans native stacks conservatively. Under load, the
immediate dispatcher can keep a stale pointer to the completed recovery
fixture graph across every immediate-phase collection, so the retired
PluginInstance stayed reachable only through GC-internal roots. A
collection from a timer callback releases it. When the expected
references are still live after the existing immediate passes, run up to
four timer-phase collections; a strong retainer still fails.

(cherry picked from commit 8919729)
Co-authored-by: RomneyDa <[email protected]>

* test(scripts): adapt worker archive timeout backport

Keep the release branch test inventory while granting the two relocated archive cases the intended three-minute budget.

Co-authored-by: RomneyDa <[email protected]>

* fix(codex): adapt unloaded-thread recovery to release params

Use the release branch request parameter directly when deciding whether an ordinary bound thread may be resumed.

Co-authored-by: RomneyDa <[email protected]>

* test(codex): adapt recovery fixture to release helper

Use the release branch thread-result helper signature so the recovery regression validates the intended thread identity.

Co-authored-by: RomneyDa <[email protected]>

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
RomneyDa added a commit that referenced this pull request Oct 20, 2026
#178170 backported #169647, which renamed the PR-only pr-fail-fast job
to pr-failure-report, but kept ci-hourly.test.ts's special case on the
old name (main deleted that test in #168983 before the rename). The
scheduled/push runner-parity loop then evaluated pr-failure-report's
PR-only runs-on and threw on github.event.pull_request.head. Point the
special case at the renamed job so it still asserts the job is skipped
for schedule and push.
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 P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant