Skip to content

ci(st): cutover to new selective testing infra#112263

Merged
joshuarli merged 4 commits into
masterfrom
ci-st-cutover
Apr 6, 2026
Merged

ci(st): cutover to new selective testing infra#112263
joshuarli merged 4 commits into
masterfrom
ci-st-cutover

Conversation

@joshuarli
Copy link
Copy Markdown
Member

@joshuarli joshuarli commented Apr 6, 2026

this deletes the old infra and cuts over the new stuff

getsentry: https://github.com/getsentry/getsentry/pull/19765

joshuarli and others added 2 commits April 6, 2026 09:26
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>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label 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"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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

@joshuarli joshuarli requested a review from rbro112 April 6, 2026 16:56
@joshuarli joshuarli marked this pull request as ready for review April 6, 2026 16:56
@joshuarli joshuarli requested review from a team as code owners April 6, 2026 16:56
@joshuarli joshuarli merged commit 66f69d2 into master Apr 6, 2026
64 checks passed
@joshuarli joshuarli deleted the ci-st-cutover branch April 6, 2026 20:58
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants