Skip to content

ci(backend): Resync backend test durations from recent master runs - #131174

Merged
joshuarli merged 2 commits into
masterfrom
ci/resync-backend-test-durations-2026-11-14
Nov 16, 2026
Merged

joshuarli merged 2 commits into
masterfrom
ci/resync-backend-test-durations-2026-11-14

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Refreshes .github/workflows/scripts/backend-test-durations.json from recent master runs, following #129569.

Source data: the per-file median of the backend-test-durations-* artifacts from three green full-suite master backend.yml runs: 43539658344, 43539075246 and 43537601902 (master e99eb0ee16b through 73b55402452). All three ran 30 shards with 4 workers on ubuntu-26.04. The file was built with the merge then median commands in the backend-test-durations.py docstring and is unedited.

What changed vs master (last resync: #130884)

  • 21 test files added, 3 removed (the drift trigger). Added are new test files such as issues/endpoints/test_group_related.py (17.7s), preprod/size_analysis/test_comparison_run.py, telemetry_classifiers/* (3), notebooks/* (2), and two tests/snuba/api/endpoints files. Removed: preprod/size_analysis/test_size_analysis_tasks.py, seer/workflows/test_registry.py and seer/workflows/test_schedule.py, which no longer exist on master.
  • seconds_per_test: 0.386 → 0.400 (+3.6%).
  • Files in both versions: total time +3.3% (19,037s → 19,666s). Two files moved by more than 25% and 30s, both down:
    • tests/sentry/api/endpoints/test_organization_releases.py 87.3s → 47.0s (runs: 49.2 / 41.4 / 47.0)
    • tests/sentry/api/endpoints/test_organization_ai_conversations.py 104.3s → 65.0s (runs: 71.0 / 65.0 / 64.8)
  • No file is >50% and >30s above the checked-in value.

Not changed: WORKER_SECONDS_PER_SHARD and TESTS_PER_SHARD. Shared files shifted well under 15%, so the budget doesn't need retuning.

Opened by the weekly backend test durations resync.

via automation sched_24013c871420a6cbab8d518dae1de4ae · Run ID sched_24013c871420a6cbab8d518dae1de4ae:1794643200000.

--

View Session [Sentry]

@joshuarli
joshuarli marked this pull request as ready for review November 14, 2026 17:21
@joshuarli
joshuarli requested a review from a team as a code owner November 14, 2026 17:21
@cursor

cursor Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

This PR is too large for Bugbot to review. It changes 4,140 lines and 318,637 characters. Split the change into smaller pull requests to get a review.

…est-durations-2026-11-14

# Conflicts:
#	.github/workflows/scripts/backend-test-durations.json
@joshuarli
joshuarli merged commit 895432a into master Nov 16, 2026
68 checks passed
@joshuarli
joshuarli deleted the ci/resync-backend-test-durations-2026-11-14 branch November 16, 2026 19:17
joshuarli added a commit that referenced this pull request Nov 24, 2026
…132105)

Refreshes `.github/workflows/scripts/backend-test-durations.json` from
recent master runs, following #129569.

**Source data:** the per-file median of the `backend-test-durations-*`
artifacts from three green full-suite master `backend.yml` runs:
[45447921880](https://github.com/getsentry/sentry/actions/runs/45447921880),
[45445395411](https://github.com/getsentry/sentry/actions/runs/45445395411)
and
[45442363055](https://github.com/getsentry/sentry/actions/runs/45442363055)
(master `712e106928c` through `6a3df08320e`). All three ran 30 shards
with 4 workers on `ubuntu-26.04`. The file is the unedited output of the
`merge` then `median` commands in the `backend-test-durations.py`
docstring.

**What changed vs master** (last resync: #131174)
- **25 test files added, 6 removed** (the drift trigger). The added
files are all under 11s, the largest being
`integrations/supabase/test_integration.py` (10.1s) and
`integrations/supabase/test_client.py` (9.3s). The removed files, such
as the three `api/endpoints/release_thresholds/*` tests, no longer exist
on master.
- **`seconds_per_test`:** 0.400 → 0.451 (+12.7%), the other drift
trigger.
- **Files in both versions:** total time +12.9% (19,640s → 22,178s).
Four files moved by more than 25% and 30s:
- `tests/sentry/seer/endpoints/test_organization_agent_token.py` 493.8s
→ 748.5s, +52% (runs: 748.5 / 761.8 / 657.2). This crosses the
regression bar. Recent commits touching it include
#129239, #131473 and
#131113.
- `tests/snuba/api/endpoints/test_organization_events_span_indexed.py`
208.8s → 262.2s (+26%)
- `tests/relay_integration/test_integration.py` 136.7s → 65.3s and
`tests/relay_integration/test_message_filters.py` 111.3s → 49.2s. Both
drops line up with #131170.

**Acceptance durations aren't refreshed here.**
`acceptance-test-durations.json` (#132407) gets
refreshed from the median of 3 full master `acceptance.yml` runs that
upload `acceptance-test-durations-*`. No such run has finished yet, so
the coverage-instrumented seed stays in place. The weekly resync
replaces it once three exist.

**Not changed:** `WORKER_SECONDS_PER_SHARD` and `TESTS_PER_SHARD`.
Shared files shifted +12.9%, under the 15% bar for retuning the budget.

Opened by the weekly backend test durations resync.

<!-- junior-request-attribution:start -->
via [automation
`sched_24013c871420a6cbab8d518dae1de4ae`](https://junior-prod.sentry.dev/automations/sched_24013c871420a6cbab8d518dae1de4ae)
· Run ID `sched_24013c871420a6cbab8d518dae1de4ae:1795248000000`,
@joshuarli.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!--
junior-conversation-id:agent-dispatch%3Adispatch_6819e6c570f111d16716e7c099e1d6bc
-->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_6819e6c570f111d16716e7c099e1d6bc)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_6819e6c570f111d16716e7c099e1d6bc/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: Joshua Li <[email protected]>

This branch was successfully deployed

1 active deployment
Preview — 59be143e Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant