Skip to content

Conversation

@rbro112
Copy link
Member

@rbro112 rbro112 commented Dec 12, 2025

This was a tough one. Under the hood when creating a team when SENTRY_USE_SNOWFLAKE=true (default), the team is created in the DB with a snowflake ID (a bigint like 4557266861096961). This makes postgres automatically create new (non-snowflake) teams with IDs that are autoincrementing, meaning 4557266861096962.

This broke the specific SENTRY_USE_SNOWFLAKE=false test case, as a previous test with SENTRY_USE_SNOWFLAKE=true would create a team with a very large snowflake ID, but then the autoincrement would continue from that ID, breaking the rigid < 1000000000 check.

This instead just checks that autoincrement will take place, which IMO is a better test anyway of what the intent was of the existing test.

Copy link
Member Author

rbro112 commented Dec 12, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@rbro112 rbro112 changed the title Fix test ID sequencing flake fix(infra): Fix test ID sequencing flake Dec 12, 2025
@rbro112 rbro112 mentioned this pull request Dec 12, 2025
@hubertdeng123
Copy link
Member

great find

@rbro112 rbro112 merged commit b1c6018 into master Dec 12, 2025
182 of 189 checks passed
@rbro112 rbro112 deleted the ryan/fix_test_id_sequencing_flake branch December 12, 2025 17:25
@github-actions github-actions bot locked and limited conversation to collaborators Dec 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants