Add coverage for pgtle.sh 'stable' pseudo-version support (issue #57) - #30
Merged
jnasbyupgrade merged 2 commits intoJul 26, 2026
Conversation
Related pgxntool PR fixes extract_version_from_filename() rejecting non-numeric version segments. Adds one test that exercises the full pgtle.sh CLI path with a base numeric version file, a base 'stable' version file, and a numeric-to-stable upgrade path, verifying the generated SQL registers both versions and the upgrade path correctly.
|
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:
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
2 tasks
…-57-pgtle-version-regex
jnasbyupgrade
marked this pull request as ready for review
July 26, 2026 21:43
jnasbyupgrade
added a commit
to Postgres-Extensions/pgxntool
that referenced
this pull request
Jul 26, 2026
#63) It was being over-restrictive by mandating semantic versioning. Related changes in pgxntool-test: - Add coverage for the 'stable' pseudo-version alias in pgtle.sh (Postgres-Extensions/pgxntool-test#30, commit c25033e)
jnasbyupgrade
added a commit
to jnasbyupgrade/pgxntool-test
that referenced
this pull request
Jul 26, 2026
…site merges /commit's two-phase cross-reference process only covers composing a PR branch's own commits before merge -- it can't help once merging happens via the GitHub website, outside AI control, which is how PRs actually land here now. There was no process for catching a paired commit that merged without its cross-reference until this was caught manually on issue #57's fix (pgxntool commit a3e4062 landed without referencing its pgxntool-test coverage in PR Postgres-Extensions#30). Adds a new crossref-audit skill: find the last release tag in each repo, list commits since it, identify genuinely paired commits (a real code+test relationship, not just similar-sounding independent fixes), and check each side references the other. Single missing tip-of-master commit newer than the last release can be fixed directly (amend + force-push, verified content-identical first); more than one missing, or anything at/before the last release, always stops and asks rather than acting. Also documents in CLAUDE.md that PR merges happen outside AI control in this workflow, and points to the new skill at session startup and before any master-rebase. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
jnasbyupgrade
added a commit
to jnasbyupgrade/pgxntool-test
that referenced
this pull request
Jul 26, 2026
…site merges /commit's two-phase cross-reference process only covers composing a PR branch's own commits before merge -- it can't help once merging happens via the GitHub website, outside AI control, which is how PRs actually land here now. There was no process for catching a paired commit that merged without its cross-reference until this was caught manually on issue #57's fix (pgxntool commit a3e4062 landed without referencing its pgxntool-test coverage in PR Postgres-Extensions#30). Adds a new crossref-audit skill: find the last release tag in each repo, list commits since it, identify genuinely paired commits (a real code+test relationship, not just similar-sounding independent fixes), and check each side references the other. Single missing tip-of-master commit newer than the last release can be fixed directly (amend + force-push, verified content-identical first); more than one missing, or anything at/before the last release, always stops and asks rather than acting. Also documents in CLAUDE.md that PR merges happen outside AI control in this workflow, and points to the new skill at session startup and before any master-rebase. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
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.
Summary
Paired with pgxntool PR Postgres-Extensions/pgxntool#63, which fixes
pgtle.sh'sextract_version_from_filename()rejecting non-numeric version aliases likestable(issue #57).pgtle: stable pseudo-version alias is not rejected (issue #57), right after the existing whitespace-parsing regression test intest/sequential/04-pgtle.bats.stable_test--1.0.0.sql), a basestableversion file (stable_test--stable.sql), and a numeric-to-stable upgrade path (stable_test--1.0.0--stable.sql), then runspgtle.sh --extension stable_test --pgtle-version 1.5.0+and checks the generated SQL registers both versions, the upgrade path, andset_default_version.@test(multiple related assertions) rather than splitting into several, per this repo's guidance on BATS per-test overhead.Test plan
tletestPG cluster,PGCLUSTER=17/tletest PGPORT=5418, so pg_tle coverage was fully exercised).ok 54 pgtle: stable pseudo-version alias is not rejected (issue #57)), driven through the fullpgtle.shCLI path.