ci(tests): skip Python suite on website-only PRs#935
Open
silversurfer562 wants to merge 3 commits into
Open
Conversation
The `website/` surface is not the application — it is continuously deployed by Vercel and has no version or changelog of its own. A PR that touches only `website/` cannot affect the Python test outcome, yet today it still runs the full pytest suite (slim matrix + coverage + clock-tz). Add a `website_only` output to the existing `changes` gate: true when every changed file is under `website/`. The three full-suite jobs (`test`, `clock-tz`, `coverage`) then guard their pip-install + pytest steps on `website_only != 'true'`. Required-check discipline: the jobs still RUN and report green (only their heavy steps are skipped), so `test (ubuntu-latest, 3.12)` and `coverage` are never "missing" and the PR is not blocked — same approach the slim matrix already uses for the required lane. The cheap lint/platform-compat/code-quality jobs are left as-is (low value to gate; less surface to get wrong). Also adds website/CLAUDE.md documenting the no-changelog policy and this CI behavior. Note: this PR touches tests.yml, so its own run takes the full matrix path (website_only=false) — the website-only path needs a follow-up website-only PR to exercise live. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…iltered CI Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
…review) A PR can show draft=false / mergeStateStatus=CLEAN with all per-PR checks green yet be "do not merge" — the validating job (integration-auth) is keyless-by-design at the per-PR level and the real-key validation is a separate scheduled/budget-capped job whose failure never enters the merge rollup. Records the review-discipline complement to the already-recorded bundled-CLI root-cause lesson. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Website-only PRs (every changed file under
website/) no longer runthe Python test suite. The
website/surface is continuously deployedby Vercel and has no version or changelog of its own — a CSS/copy/page
change cannot affect a Python test outcome.
How
Extends the existing
changesgate intests.ymlwith awebsite_onlyoutput (true when no file outsidewebsite/changed).The three full-suite jobs guard their pip-install + pytest steps:
test(slim matrix)clock-tz(hostile-clock lanes)coverageRequired-check safety
The required checks
test (ubuntu-latest, 3.12)andcoveragearenot skipped — the jobs still run and report green, with only their
heavy steps gated off. This avoids the "required check never runs →
MISSING → PR blocked forever" trap, exactly as the slim-matrix logic
already does for the required lane. All 240
tests/unit/ci/test_workflow_yaml.pyguard tests pass.
Scope notes
lint,platform-compat,code-quality,build) areleft running — low value to gate, less surface to break a required
check. Easy follow-up if desired.
tests.yml, so its own run takes the full-matrixpath (
website_only=false). Exercising the website-only path liveneeds a follow-up website-only PR.
Also
website/CLAUDE.mddocuments the no-changelog policy (website-only →no changelog; package-affecting → root
CHANGELOG.md, which thepublic
/changelogpage renders) and this CI behavior.🤖 Generated with Claude Code