Repository navigation
Rollouts: no prepared-statement cache, so adding a column never fails the previous release's SELECT * (#178's rollout 500) - #201
Merged
Conversation
VisualCIdocspring/visualci · build #649 · 486 unchanged · no changes This PR vs base: 23 changed, 72 added since #577, across 3 builds docspring/visualci · journeys · build #646 · 50 unchanged · no changes This PR vs base: 1 changed, 8 added since #548, across 3 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
ndbroadbent
force-pushed
the
no-stale-statements
branch
from
December 4, 2026 10:21
210b26d to
0cc5360
Compare
…ts, so a migration that adds a column never fails the previous release's SELECT * (cached plan must not change result type: #178's rollout 500)
ndbroadbent
force-pushed
the
no-stale-statements
branch
from
December 4, 2026 11:24
0cc5360 to
9232841
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.
The second rollout 500 of 4 Dec.
POST /api/v1/buildsanswered 500 at 09:02:37 (request 30e0b60c), during #178's rollout.Cause (logs and timeline from talira infra)
cached plan must not change result type ... select "builds".* from "builds" where ... "nonce" = $2.builds.base_branch. That's safe by CI: migrations must work with the release still serving (the 4 Dec first-build 500: a dropped column during rollout) #191's rule, and model hydration ignores extra columns.SELECT builds.*once the table's row type changes (SQLSTATE 0A000).SELECT *fails the old pods for the ~30 s of the rollout.Fix
config::without_statement_cacheaddsstatement-cache-capacity=0to the database URL, which sqlx 0.9.1 reads. Every query is then planned against the schema as it is now. A URL that sets the capacity keeps it.Tests
tests/rollouts.rs: run the build query, add a column, run it again.cached plan must not change result type (... select "builds".* from "builds" where "builds"."id" = $1 limit 1).Also from the timeline, for infra
/up, which answers without the database.