Repository navigation
ref(discover): Remove obsolete saved-query dataset splitter - #129853
Merged
Merged
Conversation
Remove the saved-query splitter and exclusive helpers and tests after migration 0894 was deleted. The 25.5.1 hard stop preserves the historical upgrade path; shared dashboard helpers remain.
jamieQ
marked this pull request as ready for review
November 4, 2026 15:00
wmak
approved these changes
Nov 4, 2026
wmak
left a comment
Member
There was a problem hiding this comment.
If you're confident that self-hosted doesn't need this anymore should be safe to burn 🔥
shruthilayaj
approved these changes
Nov 9, 2026
shruthilayaj
left a comment
Member
There was a problem hiding this comment.
thanks for cleaning this up, it's safe since we'd cut a hard stop migration!
joshuarli
pushed a commit
that referenced
this pull request
Nov 11, 2026
…130382) 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: [42956939397](https://github.com/getsentry/sentry/actions/runs/42956939397), [42949582386](https://github.com/getsentry/sentry/actions/runs/42949582386) and [42946963462](https://github.com/getsentry/sentry/actions/runs/42946963462) (master through `80574457ad`). 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. This replaces the earlier candidate on this branch (built from runs 42725166893, 42723710111 and 42720716567). **What changed vs master** - **66 test files added, 12 removed.** Added: mostly `tests/sentry/notebooks` (28) after the investigations → notebooks move, plus `cadence` (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 ten `tests/sentry/investigations/` files). - **`seconds_per_test`:** 0.407 → 0.406 (−0.2%). - **Files in both versions:** total time +2.8% (19,376s → 19,915s). One file moved by more than 25% and 30s: `tests/sentry/discover/test_dataset_split.py` 33.9s → 3.1s, after #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 nine `tests/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 as `median` produced 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.py` and `test_pytest_selected.py` pass (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. <!-- junior-request-attribution:start --> via [automation `sched_de6a73f860e60ba77d1f3cfb024722f2`](https://junior-prod.sentry.dev/automations/sched_de6a73f860e60ba77d1f3cfb024722f2) · Run ID `sched_de6a73f860e60ba77d1f3cfb024722f2:1794124800000`, [automation `sched_de6a73f860e60ba77d1f3cfb024722f2`](https://junior-prod.sentry.dev/automations/sched_de6a73f860e60ba77d1f3cfb024722f2) · Run ID `sched_de6a73f860e60ba77d1f3cfb024722f2:1794211200000`, [automation `sched_de6a73f860e60ba77d1f3cfb024722f2`](https://junior-prod.sentry.dev/automations/sched_de6a73f860e60ba77d1f3cfb024722f2) · Run ID `sched_de6a73f860e60ba77d1f3cfb024722f2:1794297600000`, [automation `sched_de6a73f860e60ba77d1f3cfb024722f2`](https://junior-prod.sentry.dev/automations/sched_de6a73f860e60ba77d1f3cfb024722f2) · Run ID `sched_de6a73f860e60ba77d1f3cfb024722f2:1794384000000`. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_71235f9c34e965e4d4a45d6c7df91edd --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_71235f9c34e965e4d4a45d6c7df91edd) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_71235f9c34e965e4d4a45d6c7df91edd/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
This branch was successfully deployed
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.
Remove
_get_and_save_split_decision_for_query, its exclusive helpers, and tests. Added in #76201 (2024-08-29) to classify saved Discover queries as errors or transactions. Its final caller, self-hosted migration0894, was deleted in #92047 (2025-05-21), after the SaaS job was retired in getsentry#17340.Older self-hosted installations must upgrade to 25.5.1 before moving to newer releases. That version includes this function and runs the saved-query migration, so removing the function from current releases preserves the supported upgrade path.