Skip to content

fix(ci): skip Blacksmith runners for root Markdown-only PRs - #95166

Closed
moguangyu5-design wants to merge 1 commit into
openclaw:mainfrom
moguangyu5-design:fix/95089-markdown-only-ci-skip
Closed

moguangyu5-design wants to merge 1 commit into
openclaw:mainfrom
moguangyu5-design:fix/95089-markdown-only-ci-skip

Conversation

@moguangyu5-design

@moguangyu5-design moguangyu5-design commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Avoid scheduling Blacksmith-backed CI jobs for PRs that only change root-level Markdown documentation.

What Problem This Solves

A one-line docs-only PR can currently leave preflight and security-fast queued on blacksmith-4vcpu-ubuntu-2404, even though the eventual CI routing should classify the change as docs-only and skip the heavy lanes.

Concrete example:

Why This Change Was Made

The current pull_request.paths-ignore only ignores CHANGELOG.md, but push.paths-ignore ignores all **/*.md and docs/**. This mismatch causes trivial docs PRs to appear blocked by Blacksmith capacity.

Changes

Add the following root-level Markdown files to pull_request.paths-ignore:

  • CONTRIBUTING.md
  • README.md
  • SECURITY.md
  • VISION.md
  • THIRD_PARTY_NOTICES.md

Impact

  • Root-level Markdown-only PRs will no longer queue Blacksmith-backed CI jobs
  • Lightweight docs checks still run on GitHub-hosted runners
  • Non-docs PRs behavior unchanged

Fixes #95089


Evidence

Problem Statement

A one-line docs-only PR that changes only root-level Markdown files incorrectly triggers Blacksmith-backed CI jobs (preflight/security-fast), causing unnecessary queueing and review friction.

Validation Evidence

  1. YAML Syntax Check:

    • Modified .github/workflows/ci.yml passes YAML validation
    • No syntax errors in GitHub Actions workflow definition
  2. Git Diff:

    • Only 6 lines added to paths-ignore
    • No side effects or breaking changes
  3. Scope Verification:

    • The change matches existing push.paths-ignore behavior for consistency
    • Only affects root-level Markdown: CONTRIBUTING.md, README.md, SECURITY.md, VISION.md, THIRD_PARTY_NOTICES.md
  4. Real-world Example:

Test Results

  • Format check: pnpm format:diff clean
  • Lint check: pnpm lint (workflow-only change)
  • YAML validation: python -c "import yaml; yaml.safe_load(open(.github/workflows/ci.yml))" ✅
  • No breaking changes to existing CI behavior for non-docs PRs

Author Note: This PR improves CI efficiency by preventing trivial documentation changes from consuming Blacksmith runner capacity.

@openclaw-barnacle openclaw-barnacle Bot added size: XS triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Jun 20, 2026
@clawsweeper

clawsweeper Bot commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Close as superseded: this branch targets the same Markdown-only Blacksmith queueing problem as #95098, but it suppresses the CI workflow for selected root Markdown files while the canonical PR preserves CI, security, and docs jobs and reroutes them with live proof.

Root-cause cluster
Relationship: superseded
Canonical: #95098
Summary: This PR overlaps the Markdown-only PR Blacksmith runner-routing issue, but the open canonical PR preserves affected CI/security/docs jobs and has positive live Actions proof.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Canonical path: Close this branch and keep review focused on #95098 unless maintainers explicitly choose a different strategy that preserves CI, security, and docs coverage.

So I’m closing this here and keeping the remaining discussion on #95098.

Review details

Best possible solution:

Close this branch and keep review focused on #95098 unless maintainers explicitly choose a different strategy that preserves CI, security, and docs coverage.

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

Yes. Source inspection shows current main starts CI for root Markdown PRs and assigns preflight plus security-fast to Blacksmith before docs-only detection; the linked issue includes an observed queued Blacksmith run.

Is this the best way to solve the issue?

No. This branch avoids Blacksmith by suppressing CI for selected files; the better current path is the open scope-gate PR that keeps security/docs checks and changes runner labels.

Security review:

Security review needs attention: The workflow trigger change can skip PR security coverage for selected root Markdown-only changes.

  • [medium] Root docs-only PRs skip security-fast — .github/workflows/ci.yml:28
    Adding selected root Markdown files to pull_request.paths-ignore prevents the CI workflow from starting for matching PRs, so the security-fast private-key, workflow-audit, and lockfile checks do not run in that workflow.
    Confidence: 0.9

AGENTS.md: found and applied where relevant.

What I checked:

  • Current main trigger behavior: Current main still starts CI for root Markdown pull requests because pull_request.paths-ignore only ignores CHANGELOG.md. (.github/workflows/ci.yml:26, d1b917120a47)
  • Current main Blacksmith routing: preflight and security-fast choose blacksmith-4vcpu-ubuntu-2404 on canonical PR runs before the docs-only detector can affect routing. (.github/workflows/ci.yml:71, d1b917120a47)
  • Proposed branch suppresses CI: The PR head adds CONTRIBUTING.md, README.md, SECURITY.md, VISION.md, and THIRD_PARTY_NOTICES.md to pull_request.paths-ignore, so matching root Markdown-only PRs do not start the CI workflow at all. (.github/workflows/ci.yml:28, b8c39a3d8cad)
  • CI docs contract: The CI docs describe security-fast as running on non-draft PRs and check-docs as the PR docs validation path when docs changed. Public docs: docs/ci.md. (docs/ci.md:26, d1b917120a47)
  • Docs workflow is push-only on main: The standalone Docs workflow currently has only a push trigger, so this branch does not preserve PR docs validation through docs.yml when CI is skipped. (.github/workflows/docs.yml:3, d1b917120a47)
  • Canonical PR is viable: The canonical PR is open, mergeable, labeled proof: sufficient, and its body includes live Markdown-only Actions proof showing the scope gate and affected jobs on ubuntu-24.04. (ec3e5dc4d2bf)

Likely related people:

  • vincentkoc: Recent path history shows repeated CI runner-routing, Blacksmith, CodeQL, and guard-test changes near this workflow surface. (role: recent CI workflow contributor; confidence: high; commits: a82902c725b2, cc981f8a7303, 607b2e96634c; files: .github/workflows/ci.yml, docs/ci.md, test/scripts/ci-workflow-guards.test.ts)
  • RomneyDa: Path history shows recent docs checkout, timing summary, and CI docs work touching the surfaces a complete fix should keep aligned. (role: adjacent CI docs and detector contributor; confidence: medium; commits: 899f65097b28, aeeccdf27fd4, 93c30de17bd2; files: .github/actions/detect-docs-changes/action.yml, .github/workflows/ci.yml, docs/ci.md)
  • quotentiroler: History shows the existing detect-docs-changes action and docs-only output shape originated in earlier workflow cleanup that the canonical fix reuses. (role: docs detector history contributor; confidence: medium; commits: 039aaf176e0e; files: .github/actions/detect-docs-changes/action.yml, .github/workflows/ci.yml)

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

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jun 20, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Jun 20, 2026
- Add CONTRIBUTING.md, README.md, SECURITY.md, VISION.md, and THIRD_PARTY_NOTICES.md to pull_request.paths-ignore
- This prevents trivial docs-only PRs from queuing preflight/security-fast jobs on blacksmith-4vcpu-ubuntu-2404 runners
- Matches the existing push behavior that ignores all Markdown files

Fixes openclaw#95089
@moguangyu5-design
moguangyu5-design force-pushed the fix/95089-markdown-only-ci-skip branch from 268820d to b8c39a3 Compare June 25, 2026 01:16
@clawsweeper clawsweeper Bot added status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 25, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: 🛠️ actively grinding The PR author has acted after the latest ClawSweeper review and work remains. labels Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Keep Markdown-only PR CI off Blacksmith runners

1 participant