Skip to content

fix(ci): stop Git descendants before standalone checkout reuse - #132169

Merged
steipete merged 5 commits into
mainfrom
steipete/cool-panini-197439
Aug 29, 2026
Merged

steipete merged 5 commits into
mainfrom
steipete/cool-panini-197439

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Related: shared Node/platform checkout ownership.

What Problem This Solves

Resolves a problem where Linux CI could delete or reuse a checkout while Git descendants from an earlier attempt were still running. The shared Node/platform checkout was repaired separately, but preflight, manual security, Python skills, ClawHub docs source, Android, and direct supplemental history fetches still had independent timeout paths.

GNU timeout can return when the Git leader exits before its delayed KILL fires. That leaves TERM-resistant descendants alive despite the command having returned. The original network/transport stall cause remains unknown; this fixes process ownership, not that unproven cause.

Why This Change Was Made

Reuse the one existing workflow-owned Python Git owner instead of adding another supervisor. Standalone profiles preserve their different retries, deadlines, shallow-history depths, manual fallback rules, exact-SHA checks, and candidate/trusted-harness identities. Linux retains the bootstrap outside the deletable candidate workspace for later supplemental calls; Windows and macOS keep their stdin bootstrap path.

Cleanup uncertainty and cancellation remain terminal: neither a new checkout attempt nor npm-lock's otherwise-valid full-sweep fallback may reuse an unverified workspace. The complete repair removes 104 production workflow lines relative to current main, including the bounded failed-cleanup correction found by CI, the cancellation checkpoint repair, and integration of the subsequently landed macOS zombie handling. There are no new dependencies or product configuration options.

User Impact

CI maintainers can rely on verified descendant cleanup before workspace deletion, retry, fallback, checkout, or history consumption; uncertain cleanup fails closed instead of continuing. Normal retry counts and history selection do not change. Android still requires an executable candidate Gradle wrapper; preflight and Android retain their distinct trusted-harness checkout arrangements.

The shared 30-second ensure-base-commit action, other workflows, and existing unbounded ls-remote paths are separate follow-ups. This does not change SwiftPM or operator Gateway/app/state behavior.

Evidence

  • Dependency contract inspected directly: coreutils timeout.c signal handling and leader-only wait/return. The standalone pattern predates the available local Git history; blame reaches a shallow boundary, so its introducing change is unknown rather than attributed to that boundary's author.
  • Native Linux/coreutils 9.1 red/green proof executes the actual workflow body through real fake-Git parent/child/grandchild processes. Original Android code had 2, 4, 6, and 8 live descendants at subsequent deletion boundaries, then 10 at final exit. The new regression fails for that exact reason. Repaired code has zero survivors at every boundary; the unrelated detached sentinel remains alive and fixture cleanup reclaims only its own processes.
  • 43 standalone Linux boundary cases passed, covering all five standalone checkout profiles, six supplemental history surfaces, retry exhaustion/recovery, unavailable-target versus timeout/cleanup failure, moved exact SHAs, parent-metadata recovery, stale ratchet snapshots, npm-lock fallback, cancellation during raw timeout cleanup, and candidate Python-startup isolation.
  • Six native Linux real-Git checkout profiles passed, including separate candidate/harness commits and correction of a moved manual event ref. A separate Android timeout/recovery run retained the full ten-second cleanup allowance (no accelerated KILL) and observed zero survivors before deletion, checkout, and exit.
  • Exact-head CI exposed an inherited failed-inspection cleanup race: after group KILL, the owner waited only for the Git leader before returning fatal 125. The canonical owner now observes group disappearance within the remaining original ten-second allowance, then still fails closed. It sends no additional destructive signals based on those later probes and never turns inspection failure into success or retry. Python's waitpid(self.pid) contract and Linux's queued signal delivery were inspected directly.
  • The requested cancellation-during-cleanup regression exposed a real ordering gap: the checkpoint outside finally was skipped while FetchTimeout unwound. The checkpoint now runs after verified cleanup inside finally. Both the readiness-controlled regression and a real-wall-clock timeout variant show the old workflow returning success and launching the full npm-lock sweep after cancellation; the fixed workflow returns 143, invokes no consumer, and leaves no descendants. The fixture signals only the Git-observed owner after revalidating its Linux birth identity and Bash parent. No production test seam or consumer-only guard was added.
  • After the producer repairs, all 63 native Linux cases (43 standalone plus 20 shared) and the complete original-order 20-case macOS suite passed. CI run 33222894331 then passed all 127 executed jobs at 6d0ee7414d4a5061857bfc4adba67efde78d182f. Main subsequently landed the macOS zombie and fixture-readiness repair, PR #132204, creating a real conflict in the shared owner. The rebase preserves that repair, its readiness clock and zombie/live-denial assertions, plus this PR's fatal-cleanup and cancellation ordering. Integrated native Linux proof passes all 64 cases. On macOS, all 20 existing shared cases passed in original order; the new zombie case passed after correcting its subprocess to start inside its owned temporary workspace. The containment guard and assertions remain unchanged. The failed-inspection CI witness does not itself establish post-exit writes.
  • The later additional-boundary CI failure was a main-side UI typecheck partition growing to 724 roots against the unchanged 720 ceiling. Its canonical split landed with the native-assets and UI-shard repair, PR #132193 as 249c248285b03eacc1fdcb9153bc47c6c3a2ec20. This PR does not duplicate that repair or raise the ceiling; fresh merge CI must include it.
  • Rebased CI passed the Linux lanes but exposed a Windows fixture observation defect: an old PID reappeared after several absent boundaries. This does not conclusively identify the historical process or prove a production leak. Node/libuv's signal-zero probe opens a fresh handle by PID. The fixture now persists observed death per unique registration, never per PID; new live instances stay visible. Windows retires only on ESRCH, preserves EPERM as potentially alive and fails on unexpected errors. A regression first observes real child death, then fault-injects PID reuse; it fails before this correction and passes afterward. Production cleanup is unchanged.
  • Final local proof: 65 native Linux cases and the complete original-order 22-case macOS suite passed. Workflow guards and test-target routing, changed checks, scripts/test-root typechecking, formatting, workflow validation, and fresh independent P0 autoreview passed. The subsequent rebase also preserves main's slow-start cancellation test repair, PR #132203: normal cancellation is emitted by the ready fake-Git producer, while this PR's distinct raw timeout-cleanup cancellation remains identity-validated. Final hosted CI run 33227024766 passed all 127 executed jobs on 0d7e1c963347964f1e2aed16d5db880587799130, including native Windows recovery and the required gate. The latest exact-head ClawSweeper review has no findings; its hosted-proof rank-up request is satisfied.

Local regression command:

node scripts/run-vitest.mjs test/scripts/ci-platform-checkout.test.ts test/scripts/ci-linux-git.test.ts test/scripts/ci-workflow-guards.test.ts test/scripts/test-projects.test.ts

Native Linux proof used an isolated local Node 24 Bookworm container with coreutils 9.1, Python, Git, jq, repository-pinned Vitest 4.1.11 and yaml 2.9.0, --init, and --network none during execution. Linux-only cases are skipped on macOS and were separately executed on Linux; that distinction is not hidden in the local aggregate count.

AI-assisted implementation and review. No agent transcripts or credentials are included.

@steipete steipete self-assigned this Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 22:35
@steipete steipete closed this Aug 28, 2026
@steipete steipete reopened this Aug 28, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Verified pre-merge boundary finding on 8f7528f014d996fece503c93c8abdaa9f3e857bd: cancellation during timeout cleanup is reported as retryable timeout in the new raw --git path.

In run_git, FetchTimeout is raised before finally drains the process group. If SIGTERM arrives during that drain, the handler latches cancellation, but the pending exception skips the trailing check_cancelled(). The raw CLI mapper then exits 124. This matters because the npm-lock continuation treats 143 as terminal but permits the full-sweep fallback for 124.

Native Linux proof executed the exact extracted owner with --git 1, leaving its real ten-second cleanup allowance unchanged. Fake Git forked a real child and grandchild in the inherited group; the observer sent SIGTERM to the owner only after a child had recorded the first timeout-drain TERM, rather than after a guessed sleep.

Case Owner exit Tree dead before return Unrelated sentinel
Original owner, SIGTERM during drain 124 (wrong) Yes Alive
Original owner, SIGTERM before deadline 143 Yes Alive
Scratch-only owner ordering repair, during drain 143 Yes Alive
Scratch-only repair, before deadline 143 Yes Alive

Original extracted Python SHA-256: 60bdd208580519fe2acbbf7de511894908c9cdbe267b7b335b85076fdafb1b2e. The successful observations used an isolated cached Node Bookworm container with --init --network none; no real Git network, credentials, repository mutations, or unrelated process signals. Cleanup and status were asserted separately. An initial fixture-only bind-mount lease failure was discarded as inconclusive, not counted as product evidence.

Please preserve the canonical ordering verified drain → cancellation decision → timeout/Git result, with cleanup uncertainty still terminal and higher priority. Repair it once in the owner, not with another npm-lock status guard. The scratch fix demonstrates the ordering but is not presented as landed code or complete review of setup-error precedence. Add the during-drain regression before merging; the outside-CI owner extraction will reuse the corrected primitive rather than fork it.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 Aug 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 28, 2026, 10:01 PM ET / August 29, 2026, 02:01 UTC.

ClawSweeper review

What this changes

The PR moves standalone CI Git checkout and supplemental-fetch paths under one process-tree owner, adds lifecycle regressions, and documents the fail-closed cleanup contract.

Regression provenance

Possible regression — probable (reproduction; reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open for normal maintainer merge judgment: current main still leaves these standalone checkout paths on GNU timeout, so the PR is not redundant; the introduced owner, regression coverage, and supplied exact-head CI evidence show no actionable defect.

Priority: P2
Reviewed head: 0d7e1c963347964f1e2aed16d5db880587799130
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A normal good-quality CI repair: the process owner is coherent, preserves caller-specific policies, and has targeted boundary coverage with no actionable review finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored CI lifecycle repair is exempt from the external-contributor proof gate; supplied native-process and exact-head hosted CI evidence remains supportive validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored CI lifecycle repair is exempt from the external-contributor proof gate; supplied native-process and exact-head hosted CI evidence remains supportive validation.
Evidence reviewed 6 items Current-main gap: Current main still runs standalone preflight checkout fetches through GNU timeout; it does not contain this PR's process-tree owner.
Introduced owner boundary: The PR creates one owner that starts Git in an isolated process group or Job Object, drains it in finally, then gives cancellation precedence after verified cleanup.
Caller and sibling coverage: The owner preserves distinct checkout policies for preflight/manual, reset-based Android and ClawHub paths, skills, and direct supplemental fetches; the CI guide describes the same scope.
Findings None None.
Security None None.

How this fits together

CI jobs fetch revisions into workspaces before later steps consume or delete them. This workflow owner contains each Git process tree so timeout or cancellation cannot authorize reuse until descendant cleanup is verified.

flowchart LR
  A[CI checkout job] --> B[Git process owner]
  B --> C[Fetch or checkout]
  C --> D{Timeout or cancellation}
  D -->|No| E[Workflow consumer]
  D -->|Yes| F[Verify process cleanup]
  F -->|Clean| E
  F -->|Uncertain| G[Fail CI safely]
Loading

Decision needed

Question Recommendation
Should the repository accept this shared standalone-checkout process owner after normal maintainer review of its CI lifecycle impact? Accept the owner migration: Merge the reviewed process-tree owner and its boundary coverage under the normal exact-head CI and repository approval gates.

Why: The implementation is source-supported and tested, but it changes a cross-job CI process-lifecycle boundary whose operational rollout requires maintainer acceptance.

Before merge

  • Resolve merge risk (P1) - The inline owner becomes shared CI lifecycle behavior for standalone checkout and history-fetch paths; a regression could stop setup or incorrectly permit workspace reuse across multiple jobs.
  • Complete next step (P2) - No mechanical repair is indicated; this member-owned PR awaits normal maintainer acceptance of the shared CI lifecycle change.
Agent review details

Security

None.

PR surface

Tests +821, Docs +2, Config -104, Other 0. Total +719 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 5 914 93 +821
Docs 1 4 2 +2
Config 1 798 902 -104
Generated 0 0 0 0
Other 1 2 2 0
Total 8 1718 999 +719

Review metrics

Metric Value Why it matters
Production versus test delta workflow production -104; tests/support +821; docs +2 The large lifecycle refactor reduces workflow code while adding focused coverage for the newly owned checkout boundaries.

Merge-risk options

Maintainer options:

  1. Accept verified CI lifecycle risk (recommended)
    Merge after normal maintainer approval, retaining the exact-head CI gate and the new process-boundary regressions.
  2. Pause for cross-platform owner review
    Defer merge if maintainers need a separate audit of the inline POSIX and Windows cleanup paths.

Technical review

Best possible solution:

Adopt the single fail-closed Git owner for the standalone callers while retaining their existing retry, depth, reference, and fallback contracts.

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

Yes, source-reproducible: the Linux fixture executes the parsed workflow owner with a real descendant process tree and checks that no consumer runs after cancellation during cleanup.

Is this the best way to solve the issue?

Yes: centralizing ownership at the Git producer preserves each caller's policy while preventing downstream workspace reuse from compensating for an unjoined process tree.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 81e9f85efca6.

Labels

Label justifications:

  • P2: This is a bounded CI reliability repair without a demonstrated shipped-runtime outage.
  • merge-risk: 🚨 automation: The PR changes the shared CI checkout and supplemental Git-fetch lifecycle behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored CI lifecycle repair is exempt from the external-contributor proof gate; supplied native-process and exact-head hosted CI evidence remains supportive validation.

Evidence

What I checked:

  • Current-main gap: Current main still runs standalone preflight checkout fetches through GNU timeout; it does not contain this PR's process-tree owner. (.github/workflows/ci.yml:201, 81e9f85efca6)
  • Introduced owner boundary: The PR creates one owner that starts Git in an isolated process group or Job Object, drains it in finally, then gives cancellation precedence after verified cleanup. (.github/workflows/ci.yml:391, 0d7e1c963347)
  • Caller and sibling coverage: The owner preserves distinct checkout policies for preflight/manual, reset-based Android and ClawHub paths, skills, and direct supplemental fetches; the CI guide describes the same scope. Public docs: docs/ci.md. (docs/ci.md:162, 0d7e1c963347)
  • Boundary regression: Linux coverage executes parsed workflow steps with real fixture parent/child/grandchild processes and asserts cancellation during raw Git timeout cleanup prevents the npm-lock consumer fallback. (test/scripts/ci-linux-git.test.ts:630, 0d7e1c963347)
  • Mainline provenance: The related shared checkout owner and macOS cleanup behavior were introduced on main by the merged checkout repairs, providing the canonical pattern this PR extends to standalone callers. (.github/workflows/ci.yml:194, 050e2883b4b0)
  • Supplied hosted validation: The PR discussion records a successful exact-head hosted run with 127 executed jobs, including the Windows recovery and required gate; this is consistent with the clean verified test-merge context. (0d7e1c963347)

Likely related people:

  • steipete: Authored the current PR and the merged shared checkout ownership and macOS cleanup repairs that establish the owner pattern being extended. (role: feature owner and recent CI checkout contributor; confidence: high; commits: 050e2883b4b0, ad6739064efa, 0d7e1c963347; files: .github/workflows/ci.yml, test/scripts/ci-platform-checkout.test.ts, test/scripts/fixtures/ci-platform-checkout.mjs)

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-08-28T23:24:54.472Z sha 7c03b64 :: needs changes before merge. :: [P2] Cover cancellation that arrives during raw Git cleanup
  • reviewed 2026-08-29T00:22:18.185Z sha 6d0ee7414d4a5061857bfc4adba67efde78d182f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:09:06.191Z sha bb0797b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T01:48:44.285Z sha 0d7e1c9 :: needs maintainer review before merge. :: none

@steipete

steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor Author

Addressed the raw cleanup cancellation finding in 6d0ee7414d4a5061857bfc4adba67efde78d182f.

The new regression exposed a real ordering bug, not only missing coverage: a pending FetchTimeout skipped the cancellation checkpoint outside finally. The checkpoint now runs after verified cleanup inside finally; failed or uncertain cleanup still propagates fatal 125 and never authorizes reuse.

The native Linux case signals the raw Python owner only after the complete fake-Git tree exists and actual TERM delivery proves cleanup has started. The fixture revalidates that owner's Linux birth identity and Bash parent immediately before signaling it. Before the fix, the actual npm-lock workflow returned success and launched the full sweep after cancellation. After the fix, it returns 143, invokes no consumer, and records no surviving descendants. A supplementary red/green run used an actual wall-clock timeout (two-second test deadline, with real TERM grace and cleanup), rather than readiness-controlled timeout injection, and produced the same results.

All 63 native Linux cases and all 20 macOS shared-checkout cases pass. Changed checks, type/lint checks, workflow validation, formatting and fresh independent P0 autoreview are clean. No cleanup assertion, production timeout, or caller fallback guard was weakened.

The earlier CI failures are accounted for: the inherited failed-inspection join gap was repaired in 7c03b6485bb2463746722d77be3e38e51e697ffd; the separate main-side UI shard overflow was fixed by the native-assets and UI-shard repair, PR #132193, without raising the 720-root limit. Fresh merge ref 8d951af53a9a5ca05cd5998333a5bed082a2201e has this PR head as its second parent and includes that canonical main repair through its first parent.

CI run 33222894331 passed all 127 executed jobs on 6d0ee7414d4a5061857bfc4adba67efde78d182f, including preflight, security, checkout tooling and the required gate. Main then landed the macOS zombie/readiness repair, PR #132204, producing actual shared-owner conflicts. These are reconciled in bb0797be621e90c7adb55675e9586a65b732aab8: the upstream checked-census/EPERM behavior and readiness clock remain, composed with this PR's bounded fatal cleanup and cancellation checkpoint. No independent supervisor was added.

Integrated Linux proof passes all 64 cases. The macOS original-order run passed the 20 existing shared cases and the guards/routing tests; its new retained-zombie case initially hit the fixture's starting-directory containment guard. A one-line test launch correction starts that subprocess inside its owned temporary workspace; the targeted macOS case and complete Linux rerun pass without weakening the guard or assertions. Integrated changed checks and fresh independent P0 review are clean. Production workflow delta is now -104 lines; test/support delta is +751.

The rebased CI run 33225195558 passed the Linux and other lanes but failed the Windows shared recovery fixture: an attempt-one PID appeared at harness checkout after five intervening absent observations. That is reuse-shaped evidence, not definitive creation-identity proof or a demonstrated production leak. Direct inspection of the actual CI Node/libuv signal-zero implementation confirms each probe opens a fresh handle by PID.

8790d906143daf7212fc11147f9477370d1235d4 repairs the concrete fixture defect: observed-dead registrations cannot revive when a PID is reused. Retirement is per instance, not per PID, and is persisted across the separate command observers. New registrations remain checked. Windows records death only on ESRCH, keeps EPERM potentially alive, and fails on unexpected probe errors; the checked POSIX census remains. A boundary regression first observes real child termination, then fault-injects a reused live PID while requiring the fresh live instance to remain visible. It failed before the repair and passes afterward. This is fault-injected reuse, not a claim that the OS allocator was forced to reuse a PID. Reuse before the first death observation may still produce a conservative false positive, never an authorized false pass.

Current local proof is 65/65 Linux cases and the complete original-order 22/22 macOS suite, plus changed checks and fresh independent P0 autoreview. Production ownership, deadlines and every cleanup assertion are unchanged by this final fixture correction. Final delta: production workflow -104; tests/support +821; docs +2. Main then landed the slow-start cancellation fixture repair, PR #132203, causing another actual conflict before CI could attach. Rebase 0d7e1c963347964f1e2aed16d5db880587799130 preserves its sorted records, delayed-start regression and ready-producer cancellation; this PR's raw timeout-cleanup signal remains separately identity-validated. Production owner behavior is unchanged by that integration. Land-ready: final CI run 33227024766 completed successfully on exact head 0d7e1c963347964f1e2aed16d5db880587799130: all 127 executed jobs passed, including native Windows recovery, Linux checkout tooling, and the required gate. The latest exact-head ClawSweeper review reports no findings; its remaining hosted-check/Windows request is now satisfied. No skipped, cancelled, or stale run is used as current-head success.

Final local commands included:

node scripts/run-vitest.mjs test/scripts/ci-platform-checkout.test.ts
node scripts/check-changed.mjs -- .github/workflows/ci.yml docs/ci.md scripts/test-projects.test-support.mts test/scripts/ci-linux-git.test.ts test/scripts/ci-platform-checkout.test.ts test/scripts/ci-workflow-guards.test.ts test/scripts/fixtures/ci-platform-checkout.mjs test/scripts/test-projects.test.ts
node --import tsx scripts/check-workflows.mts
git diff --check

Workflow sanity used installed Python 3.13 on PATH; the initial login-shell Python 3.9 could not install pinned pre-commit. Linux proof ran both checkout suites in the isolated Node 24 Bookworm container with --init --network none. The broader workflow migration remains a separate follow-up; no operator Gateway/apps/state or SwiftPM changes were made.

@steipete
steipete force-pushed the steipete/cool-panini-197439 branch from 6d0ee74 to bb0797b Compare August 29, 2026 01:00
@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 Aug 29, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Downstream context from #119326: CI33222068278/job99018176316 failed the Linux checkout cleanup-failure case on merge 9e4b30aaac572a5d27e10f8cb315421f7d1f1295. The test came from main, not the history patch. It reported the child and grandchild alive at the fatal125 boundary; the log does not establish whether they were active, zombies, or disappearing during observation.

I ran a bounded, secret-free ARM64 Linux container diagnostic using the exact original workflow owner/fixture, the original #132169 group-disappearance correction, and the separate #132204 observer correction. All 80 cases passed, including the original code, with 568 boundary checks and no observed survivors. All cleanup-failure cases remained fatal125 with no retry and preserved the unrelated sentinel. The exit-only diagnostic captured 264 later process observations, all ENOENT. This did not reproduce the CI race and is not RED/GREEN proof or a claim about the failed CI processes. Both owned containers are removed.

No competing repair or ownership claim from the history/Buzz lane. Please preserve the producer-side cleanup verification and the separate observer/macOS improvements when integrating them; I will consume the landed correction for downstream validation. This diagnostic predates the newer raw-Git cancellation changes and does not certify those changes.

@steipete
steipete force-pushed the steipete/cool-panini-197439 branch from 8790d90 to 0d7e1c9 Compare August 29, 2026 01:40
@steipete
steipete merged commit 4b8a2a7 into main Aug 29, 2026
183 of 185 checks passed
@steipete
steipete deleted the steipete/cool-panini-197439 branch August 29, 2026 02:02
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…law#132169)

* fix(ci): stop Git descendants before standalone checkout reuse

* fix(ci): join Git groups after cleanup inspection failures

* fix(ci): preserve cancellation during Git timeout cleanup

* test(ci): launch zombie probe inside its owned workspace

* test(ci): retain observed checkout process lifetimes
steipete added a commit that referenced this pull request Aug 29, 2026
Related: #132183. Builds on canonical Git cleanup prerequisite #132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.
steipete added a commit that referenced this pull request Aug 29, 2026
Related: #132183. Builds on canonical Git cleanup prerequisite #132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.
steipete added a commit that referenced this pull request Aug 29, 2026
Related: #132183. Builds on canonical Git cleanup prerequisite #132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.
steipete added a commit that referenced this pull request Aug 29, 2026
Related: #132183. Builds on canonical Git cleanup prerequisite #132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.
steipete added a commit that referenced this pull request Aug 29, 2026
* fix(ci): stop Git descendants before base and ref checks

Related: #132183. Builds on canonical Git cleanup prerequisite #132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.

* fix(ci): keep Git owner budgets fixed and cover native runners

* fix(ci): cover shared checkout helper on native runners

* test(ci): consolidate checkout fixture clocks

* fix(agents): own apply_patch filesystem initialization

* test(agents): track apply_patch temp roots
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
…#132428)

* fix(ci): stop Git descendants before base and ref checks

Related: openclaw#132183. Builds on canonical Git cleanup prerequisite openclaw#132169. This covers the shared owner package, base checks, and six preflight ref lookups; remaining workflow consumers are deferred.

* fix(ci): keep Git owner budgets fixed and cover native runners

* fix(ci): cover shared checkout helper on native runners

* test(ci): consolidate checkout fixture clocks

* fix(agents): own apply_patch filesystem initialization

* test(agents): track apply_patch temp roots
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 maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. 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