Skip to content

Docs-only changes skip the reusable smoke matrix (fixes #126) - #127

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/docs-only-smoke-scope
Jul 30, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/docs-only-smoke-scope

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Fixes #126 — CI/release-audit series task 8 (over-testing).

A changes gate job inside the reusable smoke-tests.yml (one implementation for all workspace callers, no new third-party actions):

  • base = pull_request.base.sha || event.before; shallow checkout + git fetch --depth=1 origin $BASE; two-dot git diff --name-only.
  • Fail closed: no base / zero sha / unfetchable base / empty diff / any non-allowlisted file → the matrix runs. Only an explicit every-file-matches verdict skips. Allowlist: *.md, docs/ (root-anchored), LICENSE, runtime.txt — dotfiles and path-keyed sidecars count as code.
  • Two-dot diff vs the base tip means upstream drift shows as extra files → conservatively runs.
  • Skips write the changed-file list to the step summary; a skipped matrix job satisfies required-check semantics on the callers.
  • Classifier exercised locally over 8 edge cases (docs-only, mixed, dotfile, empty, nested-docs); wiring test pins the needs+if fail-closed shape; suite green.

Library main.yml files deliberately untouched — unit tests remain the universal PR gate.

🤖 Generated with Claude Code

…ate)

Every workspace smoke caller is on: [push, pull_request] with no path filter,
so a README one-liner ran 2 Python versions x a 5-library chain, twice
(PyAutoHeart#126). A 'changes' gate job in the reusable workflow classifies
the diff (base = pull_request.base.sha || event.before, shallow fetch,
two-dot diff): the matrix is skipped ONLY when every changed file matches the
tiny allowlist (*.md, docs/, LICENSE, runtime.txt) — no base, unfetchable
base, empty diff, or any other file runs it (dotfiles and sidecars count as
code). Skips list the files in the step summary; a skipped matrix satisfies
required-check semantics. Wiring test pins needs+if fail-closed shape.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit ad0d884 into main Jul 30, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/docs-only-smoke-scope branch July 30, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs-only workspace changes should not run the full smoke matrix

1 participant