Skip to content

fix(tests): Unregister options registered in test_deprecation - #128460

Merged
srest2021 merged 1 commit into
masterfrom
fix/test-deprecation-option-leak
Oct 21, 2026
Merged

srest2021 merged 1 commit into
masterfrom
fix/test-deprecation-option-leak

Conversation

@srest2021

@srest2021 srest2021 commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

DeprecationTest::test_custom_key registers the override-cron and override-duration options and never unregisters them. When test_no_new_legacy_options runs later on the same worker, it fails with New options must have FLAG_AUTOMATOR_MODIFIABLE: ['override-cron', 'override-duration'].

This only shows up when the shard split puts both files together, and then every re-run fails too. The fix unregisters both options when the test finishes.

First identified here: https://github.com/getsentry/sentry/actions/runs/39671002907/job/119469311970?pr=128416
and is blocking #128416

test_custom_key registered override-cron and override-duration without cleanup,
so test_no_new_legacy_options failed whenever both ran in the same process.
@srest2021
srest2021 marked this pull request as ready for review October 21, 2026 22:00
@srest2021
srest2021 requested a review from a team as a code owner October 21, 2026 22:00
@srest2021
srest2021 enabled auto-merge (squash) October 21, 2026 22:07
@srest2021
srest2021 merged commit a107fef into master Oct 21, 2026
72 checks passed
@srest2021
srest2021 deleted the fix/test-deprecation-option-leak branch October 21, 2026 22:07
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