Skip to content

Test PGXNTOOL_ENABLE_TEST_INSTALL=yes erroring on empty test/install/ - #98

Merged
jnasbyupgrade merged 3 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:pre-2.4.0-test-install-empty
Oct 7, 2026
Merged

jnasbyupgrade merged 3 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:pre-2.4.0-test-install-empty

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Adds coverage for Postgres-Extensions/pgxntool#131: PGXNTOOL_ENABLE_TEST_INSTALL=yes must error when test/install/ has no SQL files.

The new test-test-install.bats test reuses the empty-test/install/ state that the previous test leaves behind. It checks that make test/install/schedule PGXNTOOL_ENABLE_TEST_INSTALL=yes fails with no .sql files found in test/install/ and writes no schedule.

Merge order: merge Postgres-Extensions/pgxntool#131 first. This PR's new test fails against pgxntool master until that change is there.

🤖 Generated with Claude Code

Add tests for pgxntool commit 29e2ae4 (error when
`PGXNTOOL_ENABLE_TEST_INSTALL=yes` but `test/install/` is empty):
- `test/install/schedule` recipe fails with `no .sql files found in
  test/install/` and writes no schedule

New `test-test-install.bats` test runs on the empty-`test/install/` state
the preceding test leaves behind: asserts the schedule target fails with
that message, and that `make -n dist` and `make clean` still succeed with
the variable set (no parse-time error).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: cb41e263-cacc-4c23-92c9-83cd813ee982

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

jnasbyupgrade added a commit to Postgres-Extensions/pgxntool that referenced this pull request Oct 7, 2026
#131)

Related pgxntool-test PR:
Postgres-Extensions/pgxntool-test#98

`PGXNTOOL_ENABLE_TEST_INSTALL=yes` now fails when `test/install/` has no
SQL files, and the failure happens at parse time, so any make target
errors until SQL files are present or the variable is unset.
@jnasbyupgrade
jnasbyupgrade merged commit 73f6d87 into Postgres-Extensions:master Oct 7, 2026
9 checks passed
@jnasbyupgrade
jnasbyupgrade deleted the pre-2.4.0-test-install-empty branch October 7, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant