Repository navigation
fix(ci): bound ClawHub docs checkout - #87811
Conversation
|
Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 7:22 PM ET / 23:22 UTC. Summary PR surface: Config +45. Total +45 across 2 files. Reproducibility: yes. Source inspection of current main shows the docs detector classifies all .md/.mdx files as docs and the check-docs ClawHub fetch is not bounded by timeout or retries. Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land the bounded checkout and fixture-classifier change after the exact head has green workflow validation on Ubuntu, keeping check-docs tied to real docs changes and the public ClawHub main branch. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection of current main shows the docs detector classifies all .md/.mdx files as docs and the check-docs ClawHub fetch is not bounded by timeout or retries. Is this the best way to solve the issue? Yes. The PR follows the existing timed checkout pattern and narrows docs detection only for test fixtures; the remaining proof needed is live Ubuntu workflow validation. AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against e9cca2d1efdf. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Config +45. Total +45 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
Summary
openclaw/clawhubrefs/heads/mainexplicitly while keeping unauthenticated Git reads.test/fixtures/**markdown as fixture content so prompt snapshots do not triggercheck-docs.Verification
git diff --checkruby -e 'require "yaml"; YAML.load_file(".github/actions/detect-docs-changes/action.yml"); YAML.load_file(".github/workflows/ci.yml")'node scripts/check-workflows.mjstest/fixtures/.../*.md->docs_changed=false docs_only=false; docs-only files ->docs_changed=true docs_only=true; mixed docs/source ->docs_changed=true docs_only=falsegit -C <temp>/clawhub-source -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin '+refs/heads/main:refs/remotes/origin/checkout'Real behavior proof
Behavior addressed:
check-docscould spend minutes in the raw ClawHub checkout step, and prompt snapshot markdown undertest/fixtures/**could trigger the docs lane.Real environment tested: Local macOS checkout plus live unauthenticated Git fetch from
https://github.com/openclaw/clawhub.git; CI target remains Ubuntu wheretimeoutis already used by existing CI checkout steps.Exact steps or command run after this patch:
git diff --check; YAML parse with Ruby;node scripts/check-workflows.mjs; manual shell classifier probe; manual unauthenticated ClawHubrefs/heads/mainshallow fetch.Evidence after fix: The classifier probe returned
docs_changed=false docs_only=falsefortest/fixtures/agents/prompt-snapshots/foo.mdplus JSON fixture content; the ClawHub fetch resolvedff48b2cfrommainsuccessfully.Observed result after fix: Fixture prompt snapshots no longer route to
check-docs, and the ClawHub checkout path now has bounded fetch attempts with timing logs.What was not tested: A full GitHub Actions PR run had not completed at PR creation time; local macOS does not provide GNU
timeout, so the exact timeout wrapper was syntax-checked locally and relies on the existing Ubuntu CI environment contract.