Skip to content

fix(ci): bound ClawHub docs checkout - #87811

Merged
RomneyDa merged 1 commit into
mainfrom
check-docs-long
May 28, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
check-docs-long

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Summary

  • Bound the raw ClawHub docs-source checkout with a 30s fetch timeout, kill-after, five retries, and elapsed-time logging.
  • Fetch openclaw/clawhub refs/heads/main explicitly while keeping unauthenticated Git reads.
  • Treat test/fixtures/** markdown as fixture content so prompt snapshots do not trigger check-docs.

Verification

  • git diff --check
  • ruby -e 'require "yaml"; YAML.load_file(".github/actions/detect-docs-changes/action.yml"); YAML.load_file(".github/workflows/ci.yml")'
  • node scripts/check-workflows.mjs
  • Manual classifier probe: test/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=false
  • Manual unauthenticated ClawHub fetch probe: git -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-docs could spend minutes in the raw ClawHub checkout step, and prompt snapshot markdown under test/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 where timeout is 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 ClawHub refs/heads/main shallow fetch.

Evidence after fix: The classifier probe returned docs_changed=false docs_only=false for test/fixtures/agents/prompt-snapshots/foo.md plus JSON fixture content; the ClawHub fetch resolved ff48b2c from main successfully.

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.

@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels May 28, 2026
@clawsweeper

clawsweeper Bot commented May 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed May 28, 2026, 7:22 PM ET / 23:22 UTC.

Summary
The PR changes the docs-change detector to treat test fixtures as non-docs and wraps the CI ClawHub docs checkout in an explicit main-branch fetch with timeout, retries, and elapsed logging.

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.

  • Automation surfaces changed: 1 docs classifier exception added; 1 ClawHub checkout loop bounded. These surfaces decide which checks run and whether check-docs can wait on an external ClawHub fetch, so maintainers should verify the exact workflow behavior before merge.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🐚 platinum hermit
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Let the exact head complete the GitHub Actions checks that exercise Ubuntu timeout and docs-routing behavior.

Risk before merge

  • [P2] This PR changes CI routing and a GitHub Actions checkout loop, so the remaining merge risk is that the Ubuntu workflow environment exposes a shell or timeout issue not covered by the local macOS proof in the PR body.

Maintainer options:

  1. Wait for live CI on the exact head (recommended)
    Let the PR's preflight, workflow guard, and check-docs-relevant GitHub Actions checks run on Ubuntu before merge because the local proof could not execute GNU timeout.
  2. Accept the narrow CI-environment risk
    A maintainer can merge based on the existing timeout-loop precedent and PR-body probes if they are comfortable owning any follow-up workflow syntax/runtime fix.

Next step before merge

  • [P2] Human maintainer and CI validation are the right next action because this maintainer-labeled PR changes automation behavior but has no narrow code defect for ClawSweeper to repair.

Security
Cleared: No concrete security or supply-chain regression found; the patch keeps unauthenticated reads of the same public ClawHub repo and does not add secrets, permissions, third-party actions, or dependency sources.

Review details

Best 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 changes

Label changes:

  • add P2: The PR fixes a real CI reliability and routing problem with limited maintainer-facing blast radius.
  • add merge-risk: 🚨 automation: The diff changes GitHub Actions routing and checkout behavior, so a mistake could skip or fail future CI checks even if the code diff is small.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author association is MEMBER, so the external contributor proof gate does not apply; the PR body still includes useful classifier and live unauthenticated fetch proof.

Label justifications:

  • P2: The PR fixes a real CI reliability and routing problem with limited maintainer-facing blast radius.
  • merge-risk: 🚨 automation: The diff changes GitHub Actions routing and checkout behavior, so a mistake could skip or fail future CI checks even if the code diff is small.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The author association is MEMBER, so the external contributor proof gate does not apply; the PR body still includes useful classifier and live unauthenticated fetch proof.
Evidence reviewed

PR surface:

Config +45. Total +45 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 2 56 11 +45
Generated 0 0 0 0
Other 0 0 0 0
Total 2 56 11 +45

What I checked:

  • Current main classifier still treats fixture markdown as docs: On current main, the composite action classifies any .md/.mdx path as docs and marks all-markdown changes as docs-only, so markdown under test/fixtures can route as docs instead of fixture/test content. (.github/actions/detect-docs-changes/action.yml:39, e9cca2d1efdf)
  • Current main ClawHub docs checkout is unbounded: The check-docs job currently initializes clawhub-source and fetches +HEAD from openclaw/clawhub without the timeout/retry wrapper used by other CI checkout paths. (.github/workflows/ci.yml:1500, e9cca2d1efdf)
  • CI manifest uses these docs-routing outputs: The preflight job skips changed-scope when docs_only is true and later uses docs_changed to decide whether check-docs runs, so the classifier change affects CI routing rather than only logging. (.github/workflows/ci.yml:116, e9cca2d1efdf)
  • Existing CI precedent for timed checkout loops: Nearby CI checkout code already uses timeout --signal=TERM --kill-after=10s 30s around git fetch with retry loops, which supports the PR's chosen pattern for the ClawHub docs checkout. (.github/workflows/ci.yml:1468, e9cca2d1efdf)
  • Protected maintainer state: The GitHub context marks the PR author association as MEMBER and the PR has the maintainer label, so cleanup review should not close it even though the diff is small and focused.
  • CI surface provenance: Blame on the current docs detector and check-docs ClawHub checkout points to commit 423531d by Peter Steinberger, which introduced the current workflow/action content in this checkout. (.github/workflows/ci.yml:1494, 423531df509c)

Likely related people:

  • steipete: Blame and history for the docs detector, check-docs ClawHub checkout, and docs mirror workflows point to Peter Steinberger as the most recent central contributor on this surface. (role: recent CI/docs workflow contributor; confidence: high; commits: 423531df509c, 283a6c65b7d7; files: .github/actions/detect-docs-changes/action.yml, .github/workflows/ci.yml, .github/workflows/docs.yml)
  • Vincent Koc: CI history shows prior checkout-stall hardening and timeout-based checkout loops in the same workflow, which this PR mirrors for the ClawHub docs checkout. (role: adjacent CI checkout hardening contributor; confidence: medium; commits: 334f0a4de299; files: .github/workflows/ci.yml)
  • RomneyDa: Current-main history shows Dallin Romney refreshed the markdown prompt snapshot fixtures shortly before this PR, which is the fixture surface affected by the docs classifier change. (role: recent prompt-snapshot fixture contributor; confidence: medium; commits: ac8c56cc701e; files: test/fixtures/agents/prompt-snapshots)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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
  • 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.

@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. labels May 28, 2026
@RomneyDa
RomneyDa merged commit aeeccdf into main May 28, 2026
112 of 117 checks passed
@RomneyDa
RomneyDa deleted the check-docs-long branch May 28, 2026 23:25
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request May 29, 2026
sablehead pushed a commit to sablehead/openclaw that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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