-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
chore(launchpad): actually delete preprodartifact.analysis_file_id #94658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
chore(launchpad): actually delete preprodartifact.analysis_file_id #94658
Conversation
This PR has a migration; here is the generated SQL for for --
-- Add field analysis_file_id to preprodartifactsizemetrics
--
ALTER TABLE "sentry_preprodartifactsizemetrics" ADD COLUMN "analysis_file_id" bigint NULL;
CREATE INDEX CONCURRENTLY "sentry_preprodartifactsizemetrics_analysis_file_id_f7c6d67f" ON "sentry_preprodartifactsizemetrics" ("analysis_file_id"); for --
-- Moved preprodartifact.analysis_file_id field to pending deletion state
--
-- (no-op) for --
-- Remove field analysis_file_id from preprodartifact
--
ALTER TABLE "sentry_preprodartifact" DROP COLUMN "analysis_file_id" CASCADE; |
cb9742a
to
320a058
Compare
d407355
to
5e7da81
Compare
320a058
to
fd64ede
Compare
5e7da81
to
88efe9f
Compare
fd64ede
to
423ccba
Compare
88efe9f
to
8d38f6e
Compare
423ccba
to
14a8e46
Compare
8d38f6e
to
7f23f18
Compare
This PR has a migration; here is the generated SQL for for --
-- Moved preprodartifact.analysis_file_id field to pending deletion state
--
-- (no-op) for --
-- Remove field analysis_file_id from preprodartifact
--
ALTER TABLE "sentry_preprodartifact" DROP COLUMN "analysis_file_id" CASCADE; |
7f23f18
to
c4a1864
Compare
14a8e46
to
7b6eff2
Compare
c4a1864
to
75e612e
Compare
7b6eff2
to
60fed41
Compare
75e612e
to
1e776c5
Compare
This PR has a migration; here is the generated SQL for for --
-- Remove field analysis_file_id from preprodartifact
--
ALTER TABLE "sentry_preprodartifact" DROP COLUMN "analysis_file_id" CASCADE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Migration Timing Error: Incorrect `is_post_deployment` Setting
The migration 0010_actual_drop_preprod_artifact_analysis_file_id_col
incorrectly sets is_post_deployment = False
. This migration drops the analysis_file_id
column from preprodartifact
. As a schema alteration, and critically, due to an explicit dependency on PR #94657 (which removes code references to this field) being fully deployed, this setting creates a timing issue. The column could be dropped during deployment before the code changes are deployed, potentially causing runtime errors. is_post_deployment
should be True
to ensure the migration runs only after the code is deployed.
src/sentry/preprod/migrations/0010_actual_drop_preprod_artifact_analysis_file_id_col.py#L20-L21
sentry/src/sentry/preprod/migrations/0010_actual_drop_preprod_artifact_analysis_file_id_col.py
Lines 20 to 21 in 1e776c5
is_post_deployment = False |
Was this report helpful? Give feedback by reacting with 👍 or 👎
must wait until #94657 is fully deployed to merge