Phase 3: TEST_LOAD_SOURCE (fresh/update/existing) in test/install - #29
Open
jnasbyupgrade wants to merge 1 commit into
Open
Phase 3: TEST_LOAD_SOURCE (fresh/update/existing) in test/install#29jnasbyupgrade wants to merge 1 commit into
jnasbyupgrade wants to merge 1 commit into
Conversation
test/install/load.sql now selects fresh/update/existing via the
count_nulls.test_load_mode GUC (TEST_LOAD_SOURCE make var), matching
pgxntool/README.asc's documented U&U pattern:
- fresh: CREATE EXTENSION count_nulls (unchanged from phase 1/2).
- update: CREATE EXTENSION VERSION '0.9.6', then ALTER EXTENSION UPDATE -
committed, since test/install runs outside any per-test rolled-back
transaction.
- existing: asserts count_nulls is already installed and current,
touches nothing - for a real pg_upgrade run external to this
invocation (a later phase adds the CI job that drives this).
Added the extension-update-test CI job: just `make verify-results
TEST_LOAD_SOURCE=update`, no external script needed - unlike a real
pg_upgrade, an in-place update is pure SQL, so test/install handles the
whole fresh-vs-updated comparison within one pg_regress invocation.
Verified locally against PG17: fresh, update, and existing modes all pass
via make verify-results, including update x TEST_SCHEMA=Quoted crossed
together - zero expected-output changes needed for any combination,
confirming phase 2's schema-invariant design holds across load modes too
(load-bearing for a later phase that crosses U&U with schema in CI).
existing mode verified manually against a real out-of-band CREATE
EXTENSION + --use-existing run.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Stacked on #28 (phase 2: schema switching). Adds the update+upgrade (U&U) load-mode axis test/install was always meant to carry, per pgxntool/README.asc's documented pattern.
What changed
Deliberately does NOT add a dependency guard yet (the "prove a non-CASCADE drop is blocked" mechanism) - that only earns its keep protecting against an EXTERNAL step corrupting state test/install can't see into (a real `pg_upgrade`), which doesn't exist until the next phase. Adding it here would also immediately conflict with the main suite's own `test__shutdown__drop_all`. Also not crossing this new job with `TEST_SCHEMA` yet - that's its own phase, once the real pg_upgrade job exists too so both can cross schema together.
Verification
Locally against PG17: fresh, update, and existing modes all pass via `make verify-results` - zero expected-output changes needed for any combination, including `update` × `TEST_SCHEMA=Quoted` crossed together, confirming phase 2's schema-invariant design holds across load modes too (load-bearing for the later phase that crosses U&U with schema in CI). `existing` mode verified manually against a real out-of-band `CREATE EXTENSION` + `--use-existing` run.