Skip to content

ci: pass changed files to getsentry dispatch for selective testing#110103

Closed
joshuarli wants to merge 3 commits intomasterfrom
ci-selective-testing-dispatch
Closed

ci: pass changed files to getsentry dispatch for selective testing#110103
joshuarli wants to merge 3 commits intomasterfrom
ci-selective-testing-dispatch

Conversation

@joshuarli
Copy link
Member

@joshuarli joshuarli commented Mar 6, 2026

Summary

Passes changed file paths from sentry PRs to getsentry's backend.yml dispatch, enabling getsentry to run only affected tests.

  • getsentry-dispatch.yml: new step lists changed PR files via pulls.listFiles API, passes result to dispatch script via env var
  • getsentry-dispatch.js: forwards sentryChangedFiles as the sentry-changed-files workflow dispatch input
  • backend.yml: commented-out cutover showing how to replace prepare-selective-tests with getsentry's select-sentry-tests.yml reusable workflow for cross-repo coverage

Companion PR: https://github.com/getsentry/getsentry/pull/19474

…ve testing

Compute changed files via GitHub API in the dispatch workflow and forward
them as the sentry-changed-files input to getsentry's backend.yml. This
enables getsentry to run only affected tests when a sentry PR is opened.

Also add commented-out cutover in backend.yml showing how to replace
prepare-selective-tests with getsentry's cross-repo coverage workflow.
@github-actions github-actions bot added Scope: Frontend Automatically applied to PRs that change frontend components Scope: Backend Automatically applied to PRs that change backend components labels Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 6, 2026

🚨 Warning: This pull request contains Frontend and Backend changes!

It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently.

Have questions? Please ask in the #discuss-dev-infra channel.

@joshuarli joshuarli changed the title wip Pass changed files to getsentry dispatch for selective testing Mar 6, 2026
@joshuarli joshuarli changed the title Pass changed files to getsentry dispatch for selective testing ci: pass changed files to getsentry dispatch for selective testing Mar 6, 2026
@joshuarli
Copy link
Member Author

sup'd #110668

@joshuarli joshuarli closed this Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant