Skip to content

fix(migrations): Getsentry clean migration #110374

Merged
hubertdeng123 merged 1 commit intomasterfrom
hubertdeng/fix-getsentry-migration-setup
Mar 11, 2026
Merged

fix(migrations): Getsentry clean migration #110374
hubertdeng123 merged 1 commit intomasterfrom
hubertdeng/fix-getsentry-migration-setup

Conversation

@hubertdeng123
Copy link
Member

@hubertdeng123 hubertdeng123 commented Mar 10, 2026

With the deletion of project templates, clean installation of getsentry from scratch will error out

This job sets up getsentry dev env from scratch.
https://github.com/getsentry/devinfra-coder-infra/actions/runs/22923463253/job/66527712795

Follow up to #110214

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Mar 10, 2026
@hubertdeng123
Copy link
Member Author

@hubertdeng123 hubertdeng123 marked this pull request as ready for review March 10, 2026 23:25
@hubertdeng123 hubertdeng123 requested a review from a team as a code owner March 10, 2026 23:25

dependencies = [
("monitors", "0007_monitors_json_field"),
("sentry", "0964_add_commitcomparison_table"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by design this also is a dependency on 0964 since 1040 comes afterwards


dependencies = [
("sentry", "1039_widget_description_to_textfield"),
("monitors", "0008_fix_processing_error_keys"),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apparently 0008 needs to run after 1040, not the other way around

@markstory
Copy link
Member

Thanks @hubertdeng123 ❤️

@hubertdeng123 hubertdeng123 merged commit 4a509ea into master Mar 11, 2026
80 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng/fix-getsentry-migration-setup branch March 11, 2026 16:34
hubertdeng123 added a commit that referenced this pull request Mar 16, 2026
follow up to #110374

For self-hosted users, 0008 migration is already applied. 1040 was added
last month, so the migration order cannot be done in the order that is
expected in the dependency graph. This reverts the migration dependency,
and fixes clean migrations so that 0008 no longer uses
`sentry_project.template_id` which was breaking for clean installs of
getsentry

fixes getsentry/self-hosted#4222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants