Skip to content

Make check-test-install-error-stop.sh order-sensitive for ON_ERROR_STOP - #122

Open
jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-error-stop-order-check
Open

jnasbyupgrade wants to merge 1 commit into
Postgres-Extensions:masterfrom
jnasbyupgrade:fix-error-stop-order-check

Conversation

@jnasbyupgrade

@jnasbyupgrade jnasbyupgrade commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #109's review: check-test-install-error-stop.sh did a bare
grep -q 'ON_ERROR_STOP' substring match, which passes any file that
mentions the variable at all — including one that only ever turns it
off. Per maintainer feedback
(#109 (comment)),
the check now reads each file's \set ON_ERROR_STOP statements (and
\i/\ir ... psql.sql inclusion) in file order and requires an explicit
on-value to have been seen somewhere in the file. A later explicit
turn-off no longer masks the absence of an earlier turn-on.

Paired with Postgres-Extensions/pgxntool-test#86, which adds the test
coverage for this.

Test plan

🤖 Generated with Claude Code

The bare substring grep for ON_ERROR_STOP passed any file mentioning the
variable at all, including one that only ever turns it off. Read
\set ON_ERROR_STOP statements (and psql.sql inclusion) in file order and
require an explicit on-value to have been seen; a later explicit off no
longer masks the absence of an on.

Addresses maintainer review feedback on Postgres-Extensions#109:
Postgres-Extensions#109 (comment)

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

coderabbitai Bot commented Sep 16, 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: 7d554e54-7170-4564-8abd-4e20f7862794

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