Repository navigation
fix(ci): stop docs publish Git descendants before retries - #133093
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 1:29 AM ET / 05:29 UTC. ClawSweeper reviewWhat this changesThe PR replaces raw timeout-based Git clone, fetch, rebase, and push handling in docs publication with the pinned process-tree-owning Git helper, plus lifecycle tests and CI routing updates. Merge readinessKeep open: the introduced workflow change applies the existing canonical Git lifecycle owner to a still-unsafe current-main docs publication path, with focused boundary coverage. The maintainer label and incomplete exact-head CI require explicit maintainer handling before merge. Priority: P2 Review scores
Verification
How this fits togetherThe docs publishing workflow copies OpenClaw and ClawHub documentation into a separate publish repository. It must safely clone, synchronize, validate, commit, and push that repository without a previous Git process tree surviving into a retry or subsequent step. flowchart LR
A[Source and ClawHub checkouts] --> B[Docs publish workflow]
B --> C[Pinned Git process owner]
C --> D[Clone, fetch, rebase, or push]
D --> E{Process tree extinct?}
E -->|yes| F[Retry or continue synchronization]
E -->|no| G[Fail safely]
F --> H[Published docs repository]
Decision needed
Why: The patch has strong source and fixture coverage, but this protected workflow change needs an explicit maintainer merge decision after its exact-head automation completes. Before merge
Agent review detailsSecurityNone. PR surfaceTests +492, Docs +2, Config +48, Other +1. Total +543 across 11 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the single canonical Git owner and workflow-specific typed policies, then merge after exact-head CI confirms the docs publication and cross-platform ownership lanes. Do we have a high-confidence way to reproduce the issue? Yes, source-reproducible: the parsed workflow bodies are exercised by a process-tree fixture that records child and grandchild liveness at each retry, deletion, consumption, and exit boundary. Is this the best way to solve the issue? Yes. Reusing the pinned canonical owner while keeping caller-specific publication policy inline removes the unsafe raw timeout boundary without adding a parallel supervisor or changing publication semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ed37774f856d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready verification is complete for head ClawSweeper rated the patch 5/6 with no actionable finding and asked only for exact-head workflow/platform verification; that item is complete: #133093 (comment) Behavior proof:
Exact-head hosted proof:
Native review artifacts validated with Authenticated GitHub docs publication and local native Linux/Windows execution were intentionally not run. The actual workflow bodies are exercised locally on macOS; exact-head CI owns action/native verification without exposing the publish token. Workflow/tooling/docs delta is +113/-62; tests and test support are +515/-23. Product runtime and canonical owner implementation are unchanged. The positive caller-policy delta is required to preserve typed advisory/retry behavior; the replaced shell paths were deleted. Issue #132183 remains open for the other consumer families. |
|
Merged via squash.
|
Related: #132183
What Problem This Solves
Fixes an issue where the docs mirror could delete/reuse the publish checkout, retry, abort a rebase, launch another fetch, commit, or consume ClawHub metadata after a Git leader had exited while its child or grandchild was still alive. GNU
timeoutbounded elapsed time but did not prove process-tree extinction at those boundaries.Why This Change Was Made
Docs Sync Publish Repo now prepares the reviewed canonical owner at
dd4528b6393e7d00063067a080ca7241b48ce475. A trusted inline clone policy owns the exact publish-path deletion and five clone attempts. A second typed policy owns the connected diff, advisory fetch/stale check, config/add/commit, and five fetch/rebase/push/abort attempts. ClawHub HEAD is read through a straight-line unbounded owner call before the sync script consumes it.Clone and both fetch sites retain 120-second operation deadlines. Clone and publication keep five attempts and 2/4/6/8/10-second backoffs, including the final failed attempt. Rebase, push, local reads, config/add/commit, and abort remain unbounded. Only typed ordinary Git failure or
FetchTimeoutcan reach existing retry/advisory behavior after verified cleanup; owner/setup/census failure or cancellation is terminal before deletion, abort, retry, or consumption.The authenticated URL, refspecs, stale-source/no-change behavior, rebase strategy, push target, bot identity, queue concurrency, source/ClawHub checkouts, sync arguments, MDX checks, and token skip are unchanged. No new retry, deadline, input/config surface, dependency, or second supervisor was added.
User Impact
There is no OpenClaw runtime behavior change. Maintainers get deterministic docs publication: retries and reconciliation cannot overlap an earlier Git process tree, while the existing mirror policy and timing remain intact.
Evidence
125/143collisions, strict JSON compatibility, clone/fetch/rebase/push retry families, stale/no-change outcomes, and ClawHub consumption.actionlint, owner projection, targetedoxfmt --check, docs inventory,git diff --check, and fresh autoreview passed.Native Linux/Windows execution and authenticated GitHub docs publication were intentionally not performed. The actual workflow bodies and process lifecycle are exercised locally on macOS; exact-head CI owns native/action packaging proof without using the publication token locally.
Workflow/tooling/docs delta: +113/-62 (net +51). Tests and test support: +515/-23 (net +492). Product runtime and canonical owner implementation: +0/-0. The positive workflow delta is the typed connected recovery policy replacing ambiguous shell statuses; the old shell paths were deleted.