Skip to content

Add regression coverage for test/install ordering guarantee - #84

Open
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:issue-111-install-order
Open

jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:issue-111-install-order

Conversation

@jnasbyupgrade

Copy link
Copy Markdown
Contributor

Related pgxntool PR: Postgres-Extensions/pgxntool#120

Adds coverage for pgxntool wrapping TEST_INSTALL_SQL_FILES in $(sort ...), so test/install/*.sql files run in guaranteed, locale-independent byte-value order instead of whatever $(wildcard)/glob() happens to return (Fixes pgxntool#111).

New test in test/standard/test-test-install.bats creates install files out of sorted order and asserts the generated schedule lists them correctly anyway, plus a direct check that base.mk actually wires TEST_INSTALL_SQL_FILES through $(sort ...) -- this container's libc glob() already returns sorted results by default, so the schedule-order assertion alone can't distinguish the fix from a revert here.

Add tests/updates for pgxntool commit 937bf35 (guarantee test/install/*.sql
schedule ordering):
- Wraps `TEST_INSTALL_SQL_FILES` in `$(sort ...)` so install files run in
  guaranteed, locale-independent byte-value order instead of whatever
  `$(wildcard)`/`glob()` happens to return
- Documents the ordering guarantee and the numeric-prefix convention for
  inter-file dependencies in `README.asc`

New test in test/standard/test-test-install.bats creates install files out
of sorted order and asserts the generated schedule lists them correctly,
plus a direct check that base.mk actually wires `TEST_INSTALL_SQL_FILES`
through `$(sort ...)` -- this container's libc `glob()` already returns
sorted results by default, so the schedule-order assertion alone can't
distinguish the fix from a revert here.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 15, 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: 8121c317-0cc0-4576-acd1-e7d5814a8f7e

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

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.

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