Skip to content

ci(sentry): Shard sentry tests over 16 runners#8037

Merged
phacops merged 1 commit into
masterfrom
ci/shard-sentry-tests-over-16-runners
Jun 16, 2026
Merged

ci(sentry): Shard sentry tests over 16 runners#8037
phacops merged 1 commit into
masterfrom
ci/shard-sentry-tests-over-16-runners

Conversation

@phacops

@phacops phacops commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Increase the sentry job's test matrix from 4 to 16 instances to cut wall-clock time of the cross-repo sentry test run.

Sharding is driven by round-robin grouping: the setup-sentry action reads the matrix instance and exports TEST_GROUP/TOTAL_TEST_GROUPS, and sentry's pytest plugin keeps only hash(test) % TOTAL_TEST_GROUPS == TEST_GROUP. Both knobs are bumped in lockstep, as the inline comment requires.

Tradeoff

Each shard pays a fixed setup cost (image load, sentry checkout, devservices, snuba migrations) regardless of test volume, so this trades ~4x runner-minutes for faster wall-clock and won't yield a full 4x speedup. Worth watching per-shard timing after merge to confirm 16 beats a smaller count like 8.

🤖 Generated with Claude Code

Agent transcript: https://claudescope.sentry.dev/share/yP9pFj3TliBk-_-vXWAKh7eHEAJil2TLbhmu92JgDVk

Increase the sentry test matrix from 4 to 16 instances to reduce
wall-clock time of the sentry job. The round-robin grouping is driven
by the matrix instance count and MATRIX_INSTANCE_TOTAL, so both are
bumped in lockstep.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Agent transcript: https://claudescope.sentry.dev/share/cg8C9Pe7N50McOUx8dm5I5EwAl24Tars1RrzsNzWFrE
@phacops phacops requested a review from a team as a code owner June 16, 2026 01:52
@phacops phacops enabled auto-merge (squash) June 16, 2026 02:13

@MeredithAnya MeredithAnya left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shardmaxxxing

@phacops phacops merged commit 17af008 into master Jun 16, 2026
66 checks passed
@phacops phacops deleted the ci/shard-sentry-tests-over-16-runners branch June 16, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants