Skip to content

chore(migrations): Delete migration tests over a week old#115528

Draft
JoshFerge wants to merge 1 commit into
masterfrom
jferg/delete-old-migration-tests
Draft

chore(migrations): Delete migration tests over a week old#115528
JoshFerge wants to merge 1 commit into
masterfrom
jferg/delete-old-migration-tests

Conversation

@JoshFerge
Copy link
Copy Markdown
Member

Summary

Migration tests verify one-time backfill/data-fix logic. Once a migration has been deployed for more than a week, the test no longer provides meaningful coverage — it just adds CI time and maintenance overhead.

This deletes 37 migration tests whose corresponding migrations were added more than 7 days ago (as of 2026-05-13). Kept the two recent ones:

  • tests/sentry/migrations/test_1092_backfill_projectrepository.py (added today)
  • tests/sentry/workflow_engine/migrations/test_0113_migrate_data_conditions_categories.py (added 2026-05-06)
  • tests/sentry/migrations/test_noop.py (not a real migration test)

Two of the deleted tests (test_0002_backfill_insights_team_starred_segments.py, test_0078_update_metric_detector_config_fields.py) were already stale — their migration files no longer exist.

Test plan

  • CI passes

Migration tests only verify the one-time migration logic. Once a migration
has been deployed (more than a week ago), the test no longer provides value.

Keeps tests for migrations added within the last week.

Agent transcript: https://claudescope.sentry.dev/share/aFldkPeJaa4Ir6fSec9SSew5EiVG6pS7dbU8OPAISZc
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.

1 participant