Repository navigation
ci(backend): Resync backend test durations from recent master runs - #130382
Merged
Merged
Conversation
Per-file medians from green full-suite master runs 42403459053, 42396718933 and 42392176744 (30 shards, ubuntu-26.04).
…04aff6 Per-file medians of the backend-test-durations-* artifacts from master backend.yml runs 42551499043, 42533901868 and 42507883119 (30 shards, 4 workers, ubuntu-26.04).
…1dfa7b Per-file medians from runs 42725166893, 42723710111 and 42720716567 (30 shards, 4 workers, ubuntu-26.04).
…057445 Per-file medians from runs 42956939397, 42949582386 and 42946963462 (30 shards, 4 workers, ubuntu-26.04).
joshuarli
approved these changes
Nov 11, 2026
Contributor
|
This PR is too large for Bugbot to review. It changes 4,064 lines and 314,998 characters. Split the change into smaller pull requests to get a review. |
joshuarli
pushed a commit
that referenced
this pull request
Nov 12, 2026
…130884) 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: [43146026608](https://github.com/getsentry/sentry/actions/runs/43146026608), [43140609145](https://github.com/getsentry/sentry/actions/runs/43140609145) and [43139806889](https://github.com/getsentry/sentry/actions/runs/43139806889) (master `bda8d6a6f4` through `d3dd278a2a`). All three ran 30 shards with 4 workers on `ubuntu-26.04`, with no `.github/` changes between them. 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: #130382) - **9 test files added, 17 removed.** Added: `telemetry_classifiers` (3), `runner/test_main.py`, `runner/commands/test_devserver.py`, `debug/utils/test_packages.py`, `cadence/test_registry.py`, `receivers/test_users.py`, `seer/autofix/test_prompt_redaction.py`. Removed: 16 old `tests/sentry/notebooks/**/*investigation*` file names and `tests/sentry/migrations/test_0125_clean_up_metric_detector_config.py`; none of them exist on master anymore. - **`seconds_per_test`:** 0.406 → 0.386 (−4.9%). - **Files in both versions:** total time −5.2% (20,089s → 19,038s). Three files moved by more than 25% and 30s: - `tests/sentry/api/endpoints/test_organization_releases.py` 57.1s → 87.3s (runs: 75.8 / 87.3 / 105.6) - `tests/sentry/api/endpoints/test_organization_ai_conversation_details.py` 47.2s → 78.8s (runs: 64.2 / 78.8 / 82.5) - `tests/sentry/api/endpoints/test_api_tokens.py` 41.1s → 7.5s - The first two are >50% and >30s above the checked-in value. Neither test file changed since the last resync's source runs, so the cause is unclear (could be source changes or runner variance; not verified). **Not changed:** `WORKER_SECONDS_PER_SHARD`. Shared files shifted well under 15%, so the budget doesn't need retuning. **Checks:** `test_backend_test_durations.py`, `test_calculate_backend_test_shards.py` and `test_pytest_selected.py` pass (58 tests), and prek passes on the changed file. Opened by the nightly backend CI audit. <!-- junior-request-attribution:start --> via [automation `sched_de6a73f860e60ba77d1f3cfb024722f2`](https://junior-prod.sentry.dev/automations/sched_de6a73f860e60ba77d1f3cfb024722f2) · Run ID `sched_de6a73f860e60ba77d1f3cfb024722f2:1794470400000`. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_a2de44b17e6f183cdc3ab0b389e501a5 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_a2de44b17e6f183cdc3ab0b389e501a5) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_a2de44b17e6f183cdc3ab0b389e501a5/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refreshes
.github/workflows/scripts/backend-test-durations.jsonfrom recent master runs, following #129569.Source data: the per-file median of the
backend-test-durations-*artifacts from three green full-suite masterbackend.ymlruns: 42956939397, 42949582386 and 42946963462 (master through80574457ad). All three ran 30 shards with 4 workers onubuntu-26.04, with no.github/changes between them. The file was built with themergethenmediancommands in thebackend-test-durations.pydocstring.This replaces the earlier candidate on this branch (built from runs 42725166893, 42723710111 and 42720716567).
What changed vs master
tests/sentry/notebooks(28) after the investigations → notebooks move, pluscadence(5),telemetry_classifiers(5),apidocs(4),integrations(4),issues(3),preprod(3) and others. Until now the planner estimated these from their AST test count. Removed: files deleted from the repo (test_organization_sampling_project_rates.py,test_organization_sampling_project_span_counts.py, and tentests/sentry/investigations/files).seconds_per_test: 0.407 → 0.406 (−0.2%).tests/sentry/discover/test_dataset_split.py33.9s → 3.1s, after ref(discover): Remove obsolete saved-query dataset splitter #129853 removed the saved-query dataset splitter. No file regressed by more than 50% and 30s.Reviewer note: the oldest source run (
8cfabdbe5e) predates #130698, which renamed ninetests/sentry/notebooks/endpoints/*investigation*test files to*notebook*. Their old names carry one run's timing and no longer exist on master; the planner never looks them up, and the next resync drops them. I kept the output exactly asmedianproduced it rather than hand-editing it.Not changed:
WORKER_SECONDS_PER_SHARD. The shared files shifted well under 15%, so the budget doesn't need retuning.Checks:
test_backend_test_durations.py,test_calculate_backend_test_shards.pyandtest_pytest_selected.pypass (58 tests) on this branch and on current master with the new file, and prek passes on the changed file.Updated by the nightly backend CI audit.
via automation
sched_de6a73f860e60ba77d1f3cfb024722f2· Run IDsched_de6a73f860e60ba77d1f3cfb024722f2:1794124800000, automationsched_de6a73f860e60ba77d1f3cfb024722f2· Run IDsched_de6a73f860e60ba77d1f3cfb024722f2:1794211200000, automationsched_de6a73f860e60ba77d1f3cfb024722f2· Run IDsched_de6a73f860e60ba77d1f3cfb024722f2:1794297600000, automationsched_de6a73f860e60ba77d1f3cfb024722f2· Run IDsched_de6a73f860e60ba77d1f3cfb024722f2:1794384000000.--
View Session [Sentry]