Repository navigation
Adapt to pgxntool 2.4.0 and fix tests for current PostgreSQL - #3
Open
jnasbyupgrade wants to merge 11 commits into
Open
jnasbyupgrade wants to merge 11 commits into
jnasbyupgrade wants to merge 11 commits into
Conversation
The old pgxntool passed `--load-language=plpgsql` to pg_regress, which PG17 rejects, and ignored installcheck errors, so `make test` exited 0 without running anything. pgxntool 2.4.0 runs the suite and fails on regressions, which surfaced: - Makefile: drop the local asciidoc rules; `base.mk` now builds and installs docs itself, and keeping both made `make install` fail with "will not overwrite just-created". - test/expected: remove the `base_94*`, `base_95*` and `base_961` variant files, which have no matching `test/sql` file and fail pgxntool's stale-expected check. Regenerated the rest with `make results`: the installed trunklet now emits a `function__arg_types_text()` deprecation warning on load, and pgTap numbers the `threw` checks in `base` in a different order. - sql/trunklet-format--0.2.0.sql: pgxntool now tracks the current version's generated install script instead of ignoring it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
jnasbyupgrade
added this pull request to stack #5
October 25, 2026 19:13
trunklet's deprecation warning is printed with a `LOCATION:` line naming a `pl_exec.c` line number, which differs between PostgreSQL majors, so the expected output only matched one of them. `test/deps.sql` now sets terse verbosity; expected output regenerated with `make results`. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Order each multi-row test input explicitly (by WITH ORDINALITY / position column, not by value) so pgTAP test numbers don't depend on the join order the planner picks. Each throws_ok/is query reads an ordered subquery or view as its only FROM item so ordering holds on 9.5. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Setting it in test/deps.sql applied it suite-wide. Only the statements that create extensions emit the deprecation warning whose LOCATION line varies by PostgreSQL version, so wrap just those. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
jnasbyupgrade
removed this pull request from stack #5
October 25, 2026 19:47
jnasbyupgrade
added this pull request to stack #7
October 25, 2026 19:47
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jnasbyupgrade
removed this pull request from stack #7
October 25, 2026 20:10
jnasbyupgrade
added this pull request to stack #9
October 25, 2026 20:10
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.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.
Adapts trunklet-format to the vendored pgxntool 2.4.0 (merged in #6) so
make testactually runs and passes on current PostgreSQL. The old base.mk passed--load-language=plpgsqlto pg_regress, which PostgreSQL 13 and later reject, and ignored installcheck errors, somake testexited 0 without running any test. pgxntool 2.4.0 runs the suite and exits non-zero on regressions.Changes needed in trunklet-format:
Makefile: removed the local asciidoc rules; base.mk now builds and installs docs itself, and keeping both mademake installfail with "will not overwrite just-created".test/expected/base_94*.out,base_95*.out,base_961.out: removed; they have no matchingtest/sqlfile and fail pgxntool's stale-expected check.test/sql/base.sql: every multi-row test input is now read through anORDER BYon explicit positions, so pgTAP test numbers don't depend on the join order the planner picks. (PostgreSQL 17 joined thethrewchecks' inputs in the other order.)test/load.sql,test/deps.sql,test/sql/{build,reload,search_path}.sql: terse verbosity is set only around the statements that create the extension. extension_drop's install script callsfunction__arg_types_text()from cat_tools 0.3.0 (which extension_drop pulls in), and that prints a deprecation warning; with verbose output the warning gets aLOCATION:line whosepl_exec.cline number differs between PostgreSQL majors.test/expected/*.out: regenerated withmake results(the warning is pinned without itsLOCATION:line). Output contains nonot ok.make testpasses locally on PostgreSQL 12 and 17. The stacked PR #4 adds CI and raises the supported floor to PostgreSQL 12; its run on top of this branch passes on PostgreSQL 12 through 18, for both a fresh install and the update from 0.2.0 (run 40230691469).🤖 Generated with Claude Code