Skip to content

ci: skip the full lane for docs-only changes - #97

Merged
Ardnived merged 4 commits into
mainfrom
claude/ci-docs-light-lane
Nov 24, 2026
Merged

Ardnived merged 4 commits into
mainfrom
claude/ci-docs-light-lane

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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 & test and Tests (current PHP and WordPress) now start with sydevs/claude-workflow/.github/actions/change-scope@main. Every step after it runs only when steps.scope.outputs.full == 'true'. The action returns full=true on 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 and docs/ out, because another repo's tests read its prose. I checked that none of these reaches anything: tests/lint.php parses only .php, no test reads a doc, and .distignore and package.sh keep docs/, .claude/, README.md, AGENTS.md and CLAUDE.md out of the zip. readme.txt is not .md, ships as plugin metadata, and stays on the full lane. AGENTS.md says the same, beside the two CI jobs it describes.

Gating is per step, not per workflow: Lint & test is 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-scope action) had to merge first, and did, at 0288c17. The uses: ...@main step resolves.

🤖 Generated with Claude Code

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]>
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

🤖 no session running
CI fix 1

recent dispatches
  • 18:57Z address-review · attempt 1 · session · done
  • 18:57Z address-review · attempt 1 · session
  • 18:51Z review-pr · attempt 1 · session · done
  • 18:51Z review-pr · attempt 1 · session
  • 18:31Z fix-ci · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot

Copy link
Copy Markdown
Contributor

CI fails on an unmerged dependency, not on this change.

Both required checks die at action resolution, 3 seconds in:

Can't find 'action.yml', 'action.yaml' or 'Dockerfile' for action sydevs/claude-workflow/.github/actions/change-scope@main.

sydevs/claude-workflow#314 is still open, so main (c78caaa) carries only .github/actions/contract-check. That is the merge order this PR's body states.

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 sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
@Ardnived
Ardnived enabled auto-merge November 24, 2026 18:49
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Working in SYDevelopers Technical Roadmap Nov 24, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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: no light: input, so no docs-only change takes the light lane.
  • consider — .github/workflows/ci.yml:42: the added scope clause is redundant beside steps.package.outputs.pending.

What was checked

  • ci.yml whole on the branch, plus change-scope/action.yml and scope.sh on claude-workflow main. #314 merged at 0288c17, so the merge-order note in the body is settled.
  • Ran scope.sh's grep with the default light: README.md and docs/releasing.md both classify heavy.
  • The widening's premises hold. tests/lint.php walks .php only, no test reads a doc (the docs/ mentions under tests/ are comments), and .distignore with package.sh:103 keeps docs/, .claude/, README.md, AGENTS.md and CLAUDE.md out of the zip. readme.txt carries Stable tag, so staying heavy is right.
  • .distignore names those three .md files one by one, so a new top-level .md would ship. Harmless.
  • new-pieces.mjs returned NONE, 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

Comment thread .github/workflows/ci.yml Resolved
Comment thread .github/workflows/ci.yml Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 24, 2026
sydevs-bot and others added 3 commits November 24, 2026 18:59
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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Both critic threads adopted. Pushed 8b373fe.

  • The light lane never fires — 2015ffc: both Classify the change steps now pass light: '\.md$|^docs/|^\.claude/|^\.vscode/'. Without it they took the action's default, ^\.claude/|^\.vscode/, and no docs-only change reached the light lane.
  • The scope clause is redundant — e987a18: the release notice is back to steps.package.outputs.pending == 'true'.

8b373fe records the light lane in AGENTS.md, beside the two CI jobs. The body no longer calls the widened regex the action's default, and its merge-order note now says #314 merged at 0288c17.

The branch was already level with main, so no merge. pnpm test:all passed, 0 failures. No pushed path matches securityReview.triggerPattern, so no security review ran.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 24, 2026

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Ardnived
Ardnived added this pull request to the merge queue Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 24, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 24, 2026
Merged via the queue into main with commit adc5d51 Nov 24, 2026
51 of 53 checks passed
@Ardnived
Ardnived deleted the claude/ci-docs-light-lane branch November 24, 2026 19:07
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants