ci(st): cutover to new selective testing infra#112263
Merged
Merged
Conversation
Folds backend-selective.yml's test selection approach into backend.yml: uses GitHub API for changed files, downloads from getsentry's latest coverage DB instead of walking per-commit history, and calls compute-sentry-selected-tests.py directly. Also wires changed files and previous filenames through getsentry-dispatch.yml. Co-authored-by: Claude <noreply@anthropic.com>
- Delete backend-selective.yml and getsentry-dispatch-selective.yml (logic folded into backend.yml and getsentry-dispatch.yml) - Delete scripts/selective-testing/ directory (replaced by compute-sentry-selected-tests.py) - Remove stale Makefile targets (compute-selected-tests, test-selective) - Add parse-pr-files.py to replace fragile TSV/cut/awk shell parsing of the GitHub PR files API, with --prefix flag for dispatch outputs - Use parse-pr-files.py in both backend.yml and getsentry-dispatch.yml Co-authored-by: Claude <noreply@anthropic.com>
joshuarli
commented
Apr 6, 2026
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh api repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files \ | ||
| --paginate | python3 .github/workflows/scripts/parse-pr-files.py >> "$GITHUB_OUTPUT" |
Member
Author
There was a problem hiding this comment.
parse-pr-files.py is being added here because I added support for sentry-previous-filenames in #111937 but forgot to integrate it
the prior backend-selective.yml just pipes gh api to jq but parse-pr-files.py (copied from getsentry) does double-duty and handles renames
rbro112
approved these changes
Apr 6, 2026
george-sentry
pushed a commit
that referenced
this pull request
Apr 9, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
this deletes the old infra and cuts over the new stuff
getsentry: https://github.com/getsentry/getsentry/pull/19765