Repository navigation
fix(ci): route Markdown-only PR jobs away from Blacksmith runners - #95104
xzh-icenter wants to merge 1 commit into
Conversation
Add a lightweight ci_scope job on ubuntu-24.04 that detects docs-only changes before any Blacksmith-backed job is scheduled. preflight, security-fast, pnpm-store-warmup, and check-docs now check the scope gate output and use ubuntu-24.04 for Markdown-only PRs, avoiding unnecessary Blacksmith queue contention.
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close this PR as superseded: it has the right CI scope-gate idea, but #95098 is the stronger open landing candidate for the same linked Markdown-only Blacksmith runner-routing issue, with bounded checkout/base handling and live Markdown-only Actions proof. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Canonical path: Use #95098 as the canonical landing candidate for the Markdown-only CI runner-routing fix, and close this duplicate branch rather than repairing two competing workflow changes. So I’m closing this here and keeping the remaining discussion on #95098. Review detailsBest possible solution: Use #95098 as the canonical landing candidate for the Markdown-only CI runner-routing fix, and close this duplicate branch rather than repairing two competing workflow changes. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main schedules the affected pull-request CI jobs on Blacksmith before docs-only detection can influence runner choice, and the linked issue includes a live queued-run example. Is this the best way to solve the issue? No. The early scope-gate direction is appropriate, but this PR is no longer the best landing path because the open canonical candidate implements the same fix with safer checkout/base handling and stronger real behavior proof. Security review: Security review cleared: The diff changes a contents-read workflow, docs, and tests without adding new third-party actions, secret access, publishing, or pull_request_target-style execution. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 3d5aefb50ce5. |
|
Closing: our CI proof validation failed in the test environment. The approach of adding a Focusing on #94942 (fake-indexeddb OOM) instead — higher user impact. |
What Problem This Solves
Markdown-only PRs (e.g.
CONTRIBUTING.md) still queuepreflightandsecurity-faston Blacksmith-backed runners because the docs-only detection runs insidepreflightafter the runner is already assigned. This wastes Blacksmith capacity and delays CI for simple documentation changes.Summary
ci_scopejob onubuntu-24.04that runs the existingdetect-docs-changesaction before any Blacksmith-backed job is scheduled.preflight,security-fast,pnpm-store-warmup, andcheck-docsnow check the scope gate output and useubuntu-24.04for Markdown-only PRs.pushevent handling (already ignores all**/*.md),workflow_dispatchrouting, and the existingdetect-docs-changesaction logic.Fixes #95089
Verification
$ git diff --check (no output — clean) $ node scripts/check-workflows.mjs (exits 0 — no violations) $ node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts ✓ tooling test/scripts/ci-workflow-guards.test.ts (22 tests) 309ms Test Files 1 passed (1) Tests 22 passed (22)Impact Assessment
ubuntu-24.04instead of waiting for Blacksmith capacity. Non-docs PRs are unaffected.workflow_dispatchandpushevents continue using existing routing (no scope gate needed).Synthetic Proof: Markdown-only PR Runner Routing
Behavior addressed: Markdown-only PR CI jobs route to
ubuntu-24.04instead of Blacksmith runners.Environment tested: Node.js v22.14.0, Linux (WSL2), worktree at
/mnt/g/code/openclaw-worktrees/issue-95089Simulation: Traced the workflow YAML routing logic for a hypothetical PR changing only
CONTRIBUTING.mdanddocs/README.md.Steps run after the patch:
Evidence after fix (console output):
Additional validation: 22 unit tests pass
$ node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts ✓ tooling test/scripts/ci-workflow-guards.test.ts (22 tests) 422ms Test Files 1 passed (1) Tests 22 passed (22)Observed result: For a Markdown-only PR, all 4 gated jobs (
preflight,security-fast,pnpm-store-warmup,check-docs) route toubuntu-24.04instead ofblacksmith-4vcpu-ubuntu-2404. Theci_scopejob detects docs-only changes and setsdocs_only=true, which the downstream jobs use in theirruns-onternary expression.Not tested: Actual GitHub Actions run with a real Markdown-only PR (requires pushing to GitHub and triggering CI).