Skip to content

Commit 4b8a2a7

Browse files
authored
fix(ci): stop Git descendants before standalone checkout reuse (#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
1 parent 85cefd0 commit 4b8a2a7

8 files changed

Lines changed: 1718 additions & 999 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 798 additions & 902 deletions
Large diffs are not rendered by default.

‎docs/ci.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,11 @@ When the check fails, update the PR body instead of pushing another code commit.
157157

158158
The shared Linux Node checkout (`linux_node_checkout_step`) and shared Windows/macOS/iOS checkout (`platform_checkout_step`) use one process owner for every Git command within those anchors. Linux allows five whole-checkout attempts, clearing the workspace before each attempt, with 120-second candidate and trusted workflow-harness fetch deadlines and an increasing five-second backoff. Windows, macOS, and iOS retain 90-second fetch deadlines, three candidate fetch attempts on timeout only, five-second backoff, and one harness fetch attempt. Candidate and harness revisions remain separately pinned; Linux also fetches the optional ratchet base at depth one.
159159

160-
Timeout, cancellation, and leader exit drain the owned POSIX process group or Windows Job Object before workspace deletion, another Git command, or step completion. Cleanup has a ten-second allowance. POSIX zombie-only groups are terminated, not active writers; a denied signal is tolerated only when checked process inspection proves that no live group members remain. If ownership inspection or cleanup fails, checkout exits with code 125 without retrying. The bootstrap uses the runner's Python standard library because repository helpers are unavailable before checkout. A fetch timeout alone does not explain why transport stalled.
160+
Timeout, cancellation, and leader exit drain the owned POSIX process group or Windows Job Object before workspace deletion, another Git command, or step completion. Cleanup has a ten-second allowance. POSIX zombie-only groups are terminated, not active writers; a denied signal is tolerated only when checked process inspection proves that no live group members remain. If ownership inspection or cleanup fails, checkout exits with code 125 without retrying. After an inspection failure, the owner still uses the remaining cleanup allowance to observe group disappearance after KILL; cleanup does not turn that fatal error into a retry. The bootstrap uses the runner's Python standard library because repository helpers are unavailable before checkout. A fetch timeout alone does not explain why transport stalled.
161161

162-
Separate bootstrap and checkout flows in preflight, security, skills-python, ClawHub, and Android still use GNU timeout and are outside these shared anchors' ownership guarantees.
162+
Preflight, manual security, Python skills, ClawHub docs source, and Android reuse that owner. Preflight and Python skills retain three timeout-only depth-one fetch attempts; manual security keeps depth two and its unavailable-target fallback. Preflight separately retries depth-two blobless parent metadata on any Git failure and verifies exact requested SHAs even when an event ref moves. ClawHub and Android retain five whole-checkout attempts: only the ClawHub source directory is cleared for docs, while Android clears its candidate workspace and requires an executable Gradle wrapper. The preflight and Android trusted-harness checkouts remain separate.
163+
164+
Direct supplemental fetches in `ci.yml` use the same workflow-owned bootstrap from the runner temporary directory, never a helper from the selected candidate. Scan history retains its PR-count-derived depth; release-gate ratchets retain six merge-snapshot attempts; npm-lock history failures still select a full sweep, but cleanup uncertainty or cancellation stops instead of launching a consumer. Existing deadlines and the unbounded protocol-baseline fetch remain unchanged. The shared `ensure-base-commit` action and other workflows have separate timeout ownership and are not covered by this bootstrap.
163165

164166
## Scope and routing
165167

‎scripts/test-projects.test-support.mts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2110,8 +2110,8 @@ const pluginSdkEntryOwners = [
21102110
// Keep only genuinely ambiguous paths explicit; conventional discovery owns
21112111
// unambiguous scripts and direct imports without a second inventory.
21122112
const EXACT_TOOLING_TARGETS = new Map<string, string[]>([
2113-
[".github/workflows/ci.yml", ["ci-platform-checkout"]],
2114-
["test/scripts/fixtures/ci-platform-checkout.mjs", ["ci-platform-checkout"]],
2113+
[".github/workflows/ci.yml", ["ci-platform-checkout", "ci-linux-git"]],
2114+
["test/scripts/fixtures/ci-platform-checkout.mjs", ["ci-platform-checkout", "ci-linux-git"]],
21152115
[
21162116
".github/workflows/mantis-telegram-live.yml",
21172117
["mantis-telegram-desktop-proof-workflow", packageAcceptance, workflowGuards],

0 commit comments

Comments
 (0)