Add tests for pgtle exception handler and empty upgrade files - #5
Merged
jnasbyupgrade merged 3 commits intoFeb 12, 2026
Conversation
Added requirement for significant, user-visible pgxntool changes to update HISTORY.asc with entries in the STABLE section at the top of the file. Changes only in pgxntool-test. No related changes in pgxntool. Co-Authored-By: Claude <noreply@anthropic.com>
Add tests for pgxntool commit 0a6ae77: - Fix exception handler to use `no_data_found` (P0002) - Allow empty upgrade files as no-op upgrades - Add `ON_ERROR_STOP=1` to `run_pgtle_sql()` Test additions in `pgtle-install.bats`: - Test that `no_data_found` exception handler works correctly - Test that empty upgrade files install and upgrade successfully - Add physical extension file cleanup to prevent pg_tle registration conflicts when doc.bats runs `make install` Multi-version testing in `test-pgtle-versions.bats`: - Run full pgtle-install test suite against each available pg_tle version - Add proper cleanup between version tests Co-Authored-By: Claude <noreply@anthropic.com>
1 task
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.
Related pgxntool PR: Postgres-Extensions/pgxntool#15
Summary
Tests for pgxntool commit 0a6ae77:
no_data_found(P0002)ON_ERROR_STOP=1torun_pgtle_sql()Test Additions
pgtle-install.bats:no_data_foundexception handler catches P0002 correctlymake installwhich creates physical files that pg_tle refuses to register over)test-pgtle-versions.bats:🤖 Generated with Claude Code