From 426eb7900f4dcdd3e98f22aa1e67ebd656b47a84 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 13 Nov 2025 14:43:09 -0800 Subject: [PATCH 1/3] SENTRY_NO_CREATE_DEFAULT_PROJECT: 1 --- .github/workflows/migrations-drift.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/migrations-drift.yml b/.github/workflows/migrations-drift.yml index f5b31cb5f9e3c3..901da1af353ca9 100644 --- a/.github/workflows/migrations-drift.yml +++ b/.github/workflows/migrations-drift.yml @@ -33,6 +33,11 @@ jobs: mode: migrations - name: Apply migrations + env: + # This short circuits the create_default_projects post_upgrade hook + # which spawns taskworkers which will spin for 5 minutes on kafka + # not being up. We don't need the default project here as this is not local dev. + SENTRY_NO_CREATE_DEFAULT_PROJECT: 1 run: make apply-migrations # Checkout the current ref @@ -41,6 +46,8 @@ jobs: clean: false - name: Apply migrations (again) + env: + SENTRY_NO_CREATE_DEFAULT_PROJECT: 1 run: make apply-migrations - name: capture database schema before @@ -53,6 +60,8 @@ jobs: run: python3 -um tools.migrations.squash - name: apply squashed migrations + env: + SENTRY_NO_CREATE_DEFAULT_PROJECT: 1 run: make drop-db apply-migrations - name: capture database schema after From aed72a479705c224949fd1f4b1fc35d61cf529d4 Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 13 Nov 2025 14:45:34 -0800 Subject: [PATCH 2/3] dry run --- .github/workflows/migrations-drift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/migrations-drift.yml b/.github/workflows/migrations-drift.yml index 901da1af353ca9..071e627fc2273e 100644 --- a/.github/workflows/migrations-drift.yml +++ b/.github/workflows/migrations-drift.yml @@ -1,7 +1,7 @@ name: migrations-drift on: pull_request: - paths: ['src/sentry/**/migrations/**.py', '.github/workflows/migrations-drift.yml'] +# paths: ['src/sentry/**/migrations/**.py', '.github/workflows/migrations-drift.yml'] # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value From 6e4aa10fd98d977a3be17ef54b0752765983b5cb Mon Sep 17 00:00:00 2001 From: Joshua Li Date: Thu, 13 Nov 2025 14:45:43 -0800 Subject: [PATCH 3/3] Revert "dry run" This reverts commit aed72a479705c224949fd1f4b1fc35d61cf529d4. --- .github/workflows/migrations-drift.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/migrations-drift.yml b/.github/workflows/migrations-drift.yml index 071e627fc2273e..901da1af353ca9 100644 --- a/.github/workflows/migrations-drift.yml +++ b/.github/workflows/migrations-drift.yml @@ -1,7 +1,7 @@ name: migrations-drift on: pull_request: -# paths: ['src/sentry/**/migrations/**.py', '.github/workflows/migrations-drift.yml'] + paths: ['src/sentry/**/migrations/**.py', '.github/workflows/migrations-drift.yml'] # Cancel in progress workflows on pull_requests. # https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value