Skip to content

Error when PGXNTOOL_ENABLE_TEST_INSTALL=yes but test/install/ is empty - #131

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

jnasbyupgrade merged 4 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

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.

The check is an ifeq inside the ifdef PGXNTOOL_ENABLE_TEST_INSTALL block of base.mk, so make raises no .sql files found in $(TESTDIR)/install/ (PGXNTOOL_ENABLE_TEST_INSTALL=yes) while reading the Makefile.

Merge order: merge this PR first, then the pgxntool-test PR. This PR adds behavior and the pgxntool-test PR adds coverage for it, so the coverage would fail against pgxntool master if it landed first.

🤖 Generated with Claude Code

Setting `PGXNTOOL_ENABLE_TEST_INSTALL=yes` is documented to error when
`test/install/` has no SQL files, the same way
`PGXNTOOL_ENABLE_TEST_BUILD=yes` does for `test/build/`. Instead the
schedule was generated with no entries and `make test` silently ran no
install files.

The `test/install/schedule` recipe now fails with `ERROR: no .sql files
found in test/install/` before writing the schedule. The check lives in
the recipe rather than at parse time, so targets that never run the
tests (`clean`, `dist`, ...) keep working with the variable set.

Related changes in pgxntool-test:
- Test that `make test/install/schedule PGXNTOOL_ENABLE_TEST_INSTALL=yes`
  fails on an empty `test/install/` and writes no schedule, while
  `make -n dist` and `make clean` still succeed

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: be085d5c-14a0-494d-9646-28b03501497c

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.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

jnasbyupgrade and others added 3 commits October 7, 2026 16:51
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…t/install SQL files

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Comment thread base.mk
@jnasbyupgrade
jnasbyupgrade merged commit 88b3c11 into Postgres-Extensions:master Oct 7, 2026
6 checks passed
@jnasbyupgrade
jnasbyupgrade deleted the pre-2.4.0-test-install-empty branch October 7, 2026 22:55
jnasbyupgrade added a commit to Postgres-Extensions/pgxntool-test that referenced this pull request Oct 7, 2026
…#98)

Adds coverage for Postgres-Extensions/pgxntool#131:
`PGXNTOOL_ENABLE_TEST_INSTALL=yes` must error when `test/install/` has
no SQL files.
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