Skip to content

Add make-variable inventory test; follow internal test-gate renames - #97

Merged
jnasbyupgrade merged 5 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:rename-check-test-install-error-stop-script
Oct 7, 2026
Merged

jnasbyupgrade merged 5 commits into
Postgres-Extensions:masterfrom
jnasbyupgrade:rename-check-test-install-error-stop-script

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Related pgxntool PR: Postgres-Extensions/pgxntool#130

Add test/standard/make-variables.bats, which lists every make variable pgxntool's *.mk files define (from make's own -p database, so no regex over base.mk) and checks it against test/lib/pgxntool-variables.txt.

  • Each listed variable is classified api (PGXNTOOL_*), internal (_PGXNTOOL_*), legacy (frozen pre-convention names) or external (PGXS/make-owned names pgxntool assigns).
  • The test fails on an unclassified variable, a stale entry, or a name that doesn't fit its class, so every new variable gets a deliberate naming decision.
  • It needs pg_config but no foundation environment and no running Postgres.
  • It reads both plain and override assignment origins from make -p, so a variable set via override (e.g. PGXNTOOL_VERIFY_RESULTS_MODE) stays in the inventory.
  • Variables generated into meta.mk/control.mk are out of scope for now.

Also:

  • follows pgxntool's renames to _PGXNTOOL_CHECK_TEST_INSTALL_ERROR_STOP_SCRIPT, _check-stale-expected and _check-test-install-error-stop in make-test.bats and CLAUDE.md
  • adds bin/version to CLAUDE.md's list of user-invoked scripts

Merge order: this follows a rename of names this repo's existing tests reference, so no single merge order is safe. Land it back-to-back with pgxntool#130, ideally before the next release.

Full suite against the paired branch: 307/307 passed, 0 skipped.

🤖 Generated with Claude Code

jnasbyupgrade and others added 2 commits October 7, 2026 15:39
Paired with pgxntool commit f005e16, which renames the stub seam
_CHECK_TEST_INSTALL_ERROR_STOP_SCRIPT to follow the _PGXNTOOL_ prefix
convention for internal plumbing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paired with pgxntool commit 9b5a39a, which renames check-stale-expected
and check-test-install-error-stop to _check-stale-expected and
_check-test-install-error-stop.

make-variables.bats enumerates every variable pgxntool's *.mk files define
(from make's own -p database) and fails on any that
test/lib/pgxntool-variables.txt doesn't classify as api, internal, legacy
or external. It also fails on stale entries and on names that don't match
their class's prefix rule. It needs pg_config, but no foundation env and no
running Postgres.

CLAUDE.md: add bin/version to the user-invoked scripts in the API surface.

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: 54ed44c6-784a-4626-9b1b-d4969cc6d638

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 and others added 3 commits October 7, 2026 17:45
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
make -p labels an 'override' assignment's origin differently from a plain
one, so PGXNTOOL_VERIFY_RESULTS_MODE dropped out of the inventory once it
started being set via override. Classify the new _pgxntool_validate_choice
helper as internal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jnasbyupgrade added a commit to Postgres-Extensions/pgxntool that referenced this pull request Oct 7, 2026
…ets (#130)

Rename the internal pieces of the test/install and stale-expected gates
so their names mark them as internal, matching the `_PGXNTOOL_`
convention

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@jnasbyupgrade
jnasbyupgrade merged commit 2298f40 into Postgres-Extensions:master Oct 7, 2026
9 checks passed
@jnasbyupgrade
jnasbyupgrade deleted the rename-check-test-install-error-stop-script branch October 7, 2026 23:15
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