Repository navigation
CI: migrations must work with the release still serving (the 4 Dec first-build 500: a dropped column during rollout) - #191
Merged
Conversation
VisualCIdocspring/visualci · build #610 · 424 unchanged · no changes This PR vs base: 19 changed, 10 added since #511, across 3 builds docspring/visualci · journeys · build #606 · 50 unchanged · no changes This PR vs base: 2 changed, 8 added since #507, across 3 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
migration-safety
branch
from
December 4, 2026 09:09
f000f58 to
fc3f296
Compare
…till serving reads, or add a required column with no default; AGENTS.md says why (the 4 Dec first-build 500)
ndbroadbent
force-pushed
the
migration-safety
branch
from
December 4, 2026 09:58
fc3f296 to
0fa629b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A sign-up blocker from the case studies: a new project's first
POST /api/v1/buildsanswered 500, and a rerun 90 s later worked (visualci-com/pdfkit, 4 Dec 07:14:33 UTC, feedback fb_01a23fea24157d3c97e7fa1e90938e7e).Cause (logs from talira infra)
API request failed error="no column found for name: setup_dismissed_at".organizations.setup_dismissed_atin the same deploy that stopped reading it.What changes
scripts/ci/migration_safety.py, run in the requiredcli-versionjob, compares the migrations a change adds withapp/srcat the base commit (the release that will still be serving). It fails when a new migration:NOT NULLcolumn with no default to a table, since the old release's inserts would leave it out.-- contract: <name>: <why>in the migration.Tests
scripts/ci/test_migration_safety.pyhas 5 unit tests: the 4 Dec migration; drops, renames and retypes; additions, constraints, defaults and comments passing; required columns without a default; the contract line.drops or changes column setup_dismissed_at, which app/src still reads.The schema that's live is already consistent, since #172's code is deployed. Nothing to repair in production.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.