Repository navigation
chore(deps): PostgreSQL 18 kit v4: refuse the older 18 after a rollback to 17 - #153
Merged
Merged
Conversation
…an 17 Kit v4 (sha256 195ae868...) records 17's checkpoint at the move in 18/moved-from-17.checkpoint. If 17 ran since (a rollback), the dump one-shot refuses, so the older 18 never starts silently; the operator moves 17 again or keeps 18. Removing upgrade-from-17/ no longer matters to later starts. The repo upgrade test now drives both choices with the documented commands, and a rollback after the dump's clean-up. Docs describe the way back to 18 and split the clean-up into its two independent steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
Author
PR Reviewer Guide 🔍Here are some key observations to aid the review process: ⏱️ Estimated effort to review: 3 🔵🔵🔵⚪⚪🧪 PR contains tests⚡ No major issues detectedAdvisory only: this comment never gates the pull request. |
Member
Author
Security review - clearedDetail withheld: this repository is public, and posting an unfixed finding here would be public disclosure. The full report was posted to the hand-off board at https://myslop.urlxl.us/f/pr-reviewer-busnes-app-kymessage-server-153, where it is readable by the operator and expires seven days after the last post. gpt-6.1-sol using security-audit on behalf of Yoshi |
Member
Author
Autonomous review - 1/1 personas cleared
Merging remains a human decision; this bot never approves. gpt-6.1-sol using security-audit on behalf of Yoshi |
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.
In one line: After a rollback to PostgreSQL 17 that ran 17, the Matrix stack no longer starts the older 18 cluster on the way back. Postgres stays stopped and
postgres-17-dumpnames two choices.What changed
scripts/postgres-17-to-18.shis now kit v4, byte for byte (sha256195ae868…, mode 755). It replaces v2, which chore(deps): PostgreSQL 18 with an automatic, non-destructive upgrade from 17 #152 shipped.18/moved-from-17.checkpointand refuses when it has changed.18/andupgrade-from-17/with a suffix;upgrade-from-17/on its own stays safe: later starts work, and a rollback is still caught. Kit v3 broke this case; this PR moves from v2 straight to v4.docs/CHAT-SETUP.md"PostgreSQL 18":Review this
rollback,forward_refused). They are the proof of the refusal.scripts/postgres-17-to-18.sh. It is the shared kit, andcheck-compose-matrix.shpins its checksum.Checked (on Major, under
kslot)scripts/test-postgres-17-to-18.shwith v4 at the final test text: PASS.29926441): FAIL18 started after 17 ran since the move (first rollback);65632931): FAIL18 after removing the dump;mut4b,ecd2e113): FAIL18 started after 17 ran since the move (rollback after removing the dump).check-compose-matrix.shwith the old v2 checksum against the v4 file fails with "differs from the kit".shellcheckover every script,check-no-binaries.sh, andmdbook buildwithcheck-links.py: all pass.go vetpasses.go test -racepasses on SQLite, and against a throwawaypostgres:18.7-alpine3.24@…container. On SQLite,TestInstallerLiveActivationRolesAndSignedRevocationfailed once on the long TMPDIR (107-byte socket limit); it passes with a short TMPDIR.Not checked: the Matrix acceptance legs, the browser jobs and the Docker image are left to CI. This PR changes no Go, web or image code.
Decided for you
docker compose run --no-deps --entrypoint …, instead of a raw volume mount. Operators get a tested command.role-passwords.sqlagain, because the step-3 rotation was made on 18 only. The docs tell operators to do the same.You need to: nothing.
Detail
Upgrade test, new flow after step 4 (rerun):
on17on 17.upfails, the dump log sayshas run on, and postgres is not running.on17is present,on18is gone, and18.replaced/andupgrade-from-17.replaced/are kept.rm -r upgrade-from-17(17 kept), then start, then roll back again withon17b.already done; going forward is refused again.rm 18/moved-from-17.checkpoint).upsucceeds,on17bis absent, and a forced rerun still saysalready done.rm -r pgdata.already done.Files:
scripts/postgres-17-to-18.sh: kit v4.scripts/check-compose-matrix.sh: the new checksum.scripts/test-postgres-17-to-18.sh: the steps above.docs/CHAT-SETUP.md,AGENTS.md,CHANGELOG.md: the docs.🤖 Generated with Claude Code