Skip to content

NAS-140294 / 27.0.0-BETA.1 / Fix alert deserialization crash on upgrade#18455

Open
sonicaj wants to merge 1 commit intomasterfrom
fix-alerts-db
Open

NAS-140294 / 27.0.0-BETA.1 / Fix alert deserialization crash on upgrade#18455
sonicaj wants to merge 1 commit intomasterfrom
fix-alerts-db

Conversation

@sonicaj
Copy link
Member

@sonicaj sonicaj commented Mar 14, 2026

This commit fixes an issue where middleware won't start when a system is upgraded to latest nightlies because the recent alerts mypy refactor changed alert args format (moving fields from key into required dataclass fields in args). Pre-existing alerts in system_alert have the old format and crash during deserialization at startup. The migration deletes the affected rows; all are ephemeral and regenerated by their alert sources within 60 seconds.

This commit fixes an issue where middleware won't start when a system
is upgraded to latest nightlies because the recent alerts mypy refactor
changed alert args format (moving fields from `key` into required
dataclass fields in `args`). Pre-existing alerts
in `system_alert` have the old format and crash during deserialization
at startup. The migration deletes the affected rows; all are ephemeral
and regenerated by their alert sources within 60 seconds.
@sonicaj sonicaj requested a review from a team March 14, 2026 21:44
@sonicaj sonicaj self-assigned this Mar 14, 2026
@bugclerk
Copy link
Contributor

@bugclerk bugclerk changed the title Fix alert deserialization crash on upgrade NAS-140294 / 27.0.0-BETA.1 / Fix alert deserialization crash on upgrade Mar 14, 2026
@bugclerk
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants