You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a files-changed job to the test orchestrator that detects whether a PR touches anything beyond docs (markdown, docs/, LICENSE, .agents/, issue templates, CODEOWNERS). Each test group, and the coverage report job, now needs it and only runs when code changed. Docs-only PRs skip every group; check-required still reports, so the required status check keeps working. Pushes to master and release branches always run the full suite.
Tested on my fork with mock PRs: a CHANGELOG.md-only change skipped all groups and the coverage report while "All tests passed" stayed green, and a pyproject.toml-only change ran the full suite.
@alexander-alderman-webb the only test-related required check is All tests passed, not the individual groups and that job keeps if: always() and isn't gated on files-changed, so it always runs and reports, skipped groups don't count as failure/cancelled, so it goes green on docs-only PRs. The report job is gated too so it doesn't try to combine non-existent coverage, verified this by making a change in a **.md file where PR skipped all groups and All tests passed succeeded, https://github.com/safina57/sentry-python/actions/runs/35128371710, and another one where I made a change on pyproject.toml and the gate worked as intended https://github.com/safina57/sentry-python/actions/runs/35128878739/job/104904614766
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
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.
Description
Adds a
files-changedjob to the test orchestrator that detects whether a PR touches anything beyond docs (markdown,docs/,LICENSE,.agents/, issue templates,CODEOWNERS). Each test group, and the coveragereportjob, nowneedsit and only runs when code changed. Docs-only PRs skip every group;check-requiredstill reports, so the required status check keeps working. Pushes tomasterand release branches always run the full suite.Tested on my fork with mock PRs: a
CHANGELOG.md-only change skipped all groups and the coverage report while "All tests passed" stayed green, and apyproject.toml-only change ran the full suite.Issues