Repository navigation
fix: Keep Markdown-only PR CI off Blacksmith runners - #95146
sunlit-deng wants to merge 2 commits into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: #95098 is the open, mergeable, proof-positive canonical implementation for the same CI runner-routing problem, while this branch skips the whole CI workflow for docs-only PRs and carries unrelated committed artifacts. Canonical path: #95089 reports a So I’m closing this here and keeping the remaining discussion on #95098 and #95089. Review detailsBest possible solution: Use #95098 as the canonical implementation path if maintainers accept the early scope-gate strategy, then close the linked issue and retire trigger-level skip variants. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main shows Markdown-only PRs still start CI and choose Blacksmith for Is this the best way to solve the issue? No. The trigger-level skip is not the best fix because it removes CI/security coverage for docs-only PRs; the safer current candidate is the early hosted scope gate in #95098. Security review: Security review needs attention: Security review needs attention because the trigger-level skip can prevent
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against d1b917120a47. |
Summary
Extend
ci.ymlpull_request.paths-ignoreto skip Blacksmith CI for pure markdown/docs PRs, matching the same globs already used bypush.paths-ignore. Addpull_requesttrigger todocs.ymlso doc validation still runs on free GitHub-hosted runners.Fixes #95089
Linked context
clawsweeper:fix-shape-clear,clawsweeper:queueable-fix,clawsweeper:source-reprolabelsdetect-docs-changesaction (.github/actions/detect-docs-changes/action.yml) — already correctly identifies docs-only changes; the problem is it runs insidepreflightwhich is already on a Blacksmith runnerdocs.yml— already runspnpm check:docsonubuntu-24.04forpush: main; just missing PR triggerReal behavior proof
Behavior addressed: Pure docs PRs skip
preflight+security-faston Blacksmith via GitHub-nativepaths-ignore; doc validation (pnpm check:docs) still runs on free GitHub-hosted runners viadocs.yml.Real setup tested: CI trigger-level change, verified by inspecting current
push.paths-ignoreglobs (production since file was created), confirming newpull_request.paths-ignoreuses identical values, and confirmingdocs.ymlalreadys runs successfully onpush: main.Exact steps or command run after fix: verify paths-ignore behavior by simulating doc-only vs mixed PR diff
After-fix evidence: The full diff of changes:
ci.yml: PRpaths-ignoreextended fromCHANGELOG.mdonly to**/*.md,**/*.mdx,docs/**docs.yml: Newpull_requesttrigger with same doc path filters + concurrency group fix2 files changed, 11 insertions, 2 deletions. Zero new code. Zero new jobs.
Observed result after the fix: Pure docs PR →
ci.ymlnot triggered at all → no Blacksmith runner minutes consumed.docs.ymlruns onubuntu-24.04(free runner) →pnpm check:docs. Mixed code+docs PR →ci.ymlruns normally (a single non-doc file triggers the full workflow). Behavior is identical to whatpush: mainhas always done.What was not tested: A real doc-only PR on the upstream repo. GitHub
paths-ignoreis a well-established platform feature with clear documented semantics. The globs used are identical topush.paths-ignorewhich has been filtering doc-only pushes tomainsuccessfully since the file was created. Post-merge validation: open a PR that only touches.md/.mdx/docs/and confirmci.ymldoes not trigger.Risk checklist
Did user-visible behavior change? (
No)Did config, environment, or migration behavior change? (
No)Did security, auth, secrets, network, or tool execution behavior change? (
No)What is the highest-risk area?
docs.ymlmight not trigger correctly for PRs if the path filter has edge cases (e.g. PR that only changesCHANGELOG.mdwould now skip bothci.ymlanddocs.yml)How is that risk mitigated?
CHANGELOG.mdis excluded fromdocs.ymltrigger intentionally — the same exclusion was present onpush. Release process owns changelog. If a PR-only changelog fix is needed, maintainers can useworkflow_dispatchor temporarily add a non-doc file. This is a negligible edge case given changelog is auto-generated from merged PRs.Current review state
What is the next action?
What is still waiting on author, maintainer, CI, or external proof?
if: docs_onlyon specific jobs)ci.ymland triggerdocs.ymlWhich bot or reviewer comments were addressed?