Repository navigation
ci: skip the full lane for docs-only changes - #97
Conversation
A PR touching only markdown, docs/, .claude/ or .vscode/ ran the whole lane (package, lint, WordPress boots, zip boot, a second matrix on current PHP/WP). Classify the change with claude-workflow's change-scope action and gate the steps, never the workflow, so the required Lint & test check still reports. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
|
CI fails on an unmerged dependency, not on this change. Both required checks die at action resolution, 3 seconds in:
sydevs/claude-workflow#314 is still open, so No fix belongs in this repo. Pinning the action to another ref or vendoring it would undo the design. These checks pass once #314 merges and they re-run. 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
One file, one mechanism, no new abstraction, and the shared action does the deciding — the right size for the problem. But it does not do what its title says. Both Classify the change steps omit with: light:, so they take the action's default, ^\.claude/|^\.vscode/, and a markdown or docs/ change here still runs the full lane. The analysis that justifies widening light is written into the comment and the body, never into the step.
Gating steps rather than jobs is right, for a reason the body does not give: a scope job plus needs would skip the suites when the classifier itself fails, and a ruleset accepts SKIPPED. Per-step gating fails closed. The 11 repeated if: lines are that choice's price, not a smell.
Findings
- blocker —
.github/workflows/ci.yml:32, and:110: nolight:input, so no docs-only change takes the light lane. - consider —
.github/workflows/ci.yml:42: the added scope clause is redundant besidesteps.package.outputs.pending.
What was checked
ci.ymlwhole on the branch, pluschange-scope/action.ymlandscope.shon claude-workflowmain. #314 merged at0288c17, so the merge-order note in the body is settled.- Ran
scope.sh's grep with the defaultlight:README.mdanddocs/releasing.mdboth classify heavy. - The widening's premises hold.
tests/lint.phpwalks.phponly, no test reads a doc (thedocs/mentions undertests/are comments), and.distignorewithpackage.sh:103keepsdocs/,.claude/,README.md,AGENTS.mdandCLAUDE.mdout of the zip.readme.txtcarriesStable tag, so staying heavy is right. .distignorenames those three.mdfiles one by one, so a new top-level.mdwould ship. Harmless.new-pieces.mjsreturnedNONE, so no streamliner ran. No question threads, so no second opinions.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The change-scope action's default `light` is `^\.claude/|^\.vscode/`: markdown and docs/ are deliberately left out, because another repo's tests read its prose. Without the input, a README-only PR here still ran the full lane — the behaviour this workflow's comment and the PR body both claimed. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV581LteZKKbgdcqF3
A skipped `Package the plugin zip` leaves `steps.package.outputs.pending` empty, and '' == 'true' already skips the notice. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV581LteZKKbgdcqF3
|
Both critic threads adopted. Pushed
The branch was already level with 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is
Why
A docs-only PR runs the whole CI: packaging, PHP syntax lint, the WordPress integration and render lanes, the zip boot, and the second run on current PHP and WordPress (for example SahajCloud#1265 ran the full lane for a markdown change). Nothing in those steps reads a doc.
What is gated
Lint & testandTests (current PHP and WordPress)now start withsydevs/claude-workflow/.github/actions/change-scope@main. Every step after it runs only whensteps.scope.outputs.full == 'true'. The action returnsfull=trueon a push, an unreadable base or an empty diff, so anything unproven stays on the full lane.Not gated:
URL contract in sync(already cheap and diff-aware),Dependency Review,browser.yml(already path-filtered, not a required check),release.yml.Both steps pass
light: '\.md$|^docs/|^\.claude/|^\.vscode/'. The action's own default is^\.claude/|^\.vscode/, which leaves markdown anddocs/out, because another repo's tests read its prose. I checked that none of these reaches anything:tests/lint.phpparses only.php, no test reads a doc, and.distignoreandpackage.shkeepdocs/,.claude/,README.md,AGENTS.mdandCLAUDE.mdout of the zip.readme.txtis not.md, ships as plugin metadata, and stays on the full lane.AGENTS.mdsays the same, beside the two CI jobs it describes.Gating is per step, not per workflow:
Lint & testis a required check, and a workflow that never runs never reports, so the merge would wait forever. A skipped step passes. (why: sydevs/claude-workflow docs/why.md#a-docs-only-change-takes-the-light-lane)Merge order
sydevs/claude-workflow#314 (the
change-scopeaction) had to merge first, and did, at0288c17. Theuses: ...@mainstep resolves.🤖 Generated with Claude Code