Skip to content

Commit d8a82e2

Browse files
authored
ref: short circuit post_upgrade hook for migrations-drift (#103337)
same idea as getsentry/getsentry#18807 will shave ~10 minutes off migrations-drift time lol
1 parent e9e5959 commit d8a82e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/migrations-drift.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
mode: migrations
3434

3535
- name: Apply migrations
36+
env:
37+
# This short circuits the create_default_projects post_upgrade hook
38+
# which spawns taskworkers which will spin for 5 minutes on kafka
39+
# not being up. We don't need the default project here as this is not local dev.
40+
SENTRY_NO_CREATE_DEFAULT_PROJECT: 1
3641
run: make apply-migrations
3742

3843
# Checkout the current ref
@@ -41,6 +46,8 @@ jobs:
4146
clean: false
4247

4348
- name: Apply migrations (again)
49+
env:
50+
SENTRY_NO_CREATE_DEFAULT_PROJECT: 1
4451
run: make apply-migrations
4552

4653
- name: capture database schema before
@@ -53,6 +60,8 @@ jobs:
5360
run: python3 -um tools.migrations.squash
5461

5562
- name: apply squashed migrations
63+
env:
64+
SENTRY_NO_CREATE_DEFAULT_PROJECT: 1
5665
run: make drop-db apply-migrations
5766

5867
- name: capture database schema after

0 commit comments

Comments
 (0)