Repository navigation
Test upgrades from the previous release - #12
Merged
Merged
Conversation
A consumer who installed 0.0.2 upgrades by running the next artifact over it, and nothing so far checked that this works or that it leaves their own registrations alone. Releasing without that check is how the first broken upgrade reaches a database nobody can reinstall casually. The upgrade workflow installs the latest published release through each shipped channel, registers a consumer overload, upgrades to the build at hand -- psql over the old schema, or pg_tle's ALTER EXTENSION UPDATE through a registered update path -- and then runs the whole suite against the upgraded database, since an upgraded install has to be exactly as conformant as a fresh one. CI runs it on every pull request so a breaking change is caught where it is made, and the release workflow's publish job needs it, so no tag is cut without it. The upgrade is the idempotent installer alone. The delta-script convention for drops and signature changes stays unbuilt until a release needs one; this job is what will say so.
This was referenced Oct 30, 2026
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.
Implements upgrade coverage (rds-distribution decision 8): no tag can be cut unless upgrading from the previous release is tested.
What runs
A new reusable workflow,
.github/workflows/upgrade.yml, runs a matrix over both channels a release ships:plainpsql -1 -f cel4postgres--<prev>.sqlpsql -1 -f dist/cel4postgres--<head>.sqlpgtlepgtle.install_extension+CREATE EXTENSION cel4postgres VERSION '<prev>'pgtle.install_update_path+ALTER EXTENSION cel4postgres UPDATE TO '<head>'For each channel it does the following (
scripts/upgrade-check.sh):gh release download) and checks it against itsSHA256SUMS.cel.version()(andextversionfor pg_tle) report the new version, and that the consumer row survived and still evaluates.go test ./..., conformance included, against the upgraded database.Where it runs
upgradejob on every pull request, so a change that breaks the upgrade fails where it is made.publishnowneeds: [smoke, pgtle, upgrade].The ruleset's required check is still only
test. If the upgrade jobs should also block merges, addupgrade / upgrade (plain)andupgrade / upgrade (pgtle)to it.Other changes
scripts/pgtle-wrap.sh --update-from <old>emitspgtle.install_update_pathinstead ofinstall_extension.TestPinMatchesWorkflownow checks the cel-spec ref inupgrade.ymlas well as inci.yml.Not in this PR
Decision 6's per-release delta script, for drops and signature changes, does not exist yet; the upgrade is currently the idempotent installer alone. When a release first needs a delta, this job is where that will show up as a failure. Decision 7's
origincolumn is also still pending.Verified locally (0.0.2 → 0.0.3)
plain: upgrade passes, consumer row intact, thengo test ./...against the upgraded database: all pass.pgtle(pg_tle v1.5.3 on postgres 18.6): same result, all pass.shellcheck scripts/*.sh: clean. The workflow YAML parses; actionlint was not available to run.