Skip to content

Add test coverage for order-sensitive ON_ERROR_STOP check - #86

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

Copy link
Copy Markdown
Contributor

Summary

Paired with Postgres-Extensions/pgxntool#122, which fixes
check-test-install-error-stop.sh's ON_ERROR_STOP detection to be
order-sensitive instead of a bare substring grep (per maintainer review
feedback on #109:
Postgres-Extensions/pgxntool#109 (comment)).

Extends test/standard/check-test-install-error-stop-script.bats with the
two cases that distinguish the fix from the old behavior:

  • explicit on-then-off still passes
  • off-only (never explicitly turned on) fails

Test plan

  • bash .claude/skills/test/scripts/run-tests.sh test/standard/check-test-install-error-stop-script.bats — 8/8 pass (6 existing + 2 new).
  • Full suite run pending (blocked by a concurrent test run against the shared local Postgres cluster in another worktree — not related to this change).

🤖 Generated with Claude Code

Add tests/updates for pgxntool commit
Postgres-Extensions/pgxntool#122 (order-sensitive
ON_ERROR_STOP detection in check-test-install-error-stop.sh):
- Bare substring grep passed a file that only ever turned ON_ERROR_STOP
  off; the script now requires an explicit on-value seen in file order.

Extend the existing script-logic bats file with the two new cases that
distinguish this from the old bare-substring behavior:
- on-then-off still passes (a later off doesn't undo an earlier on)
- off-only (never explicitly on) fails

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: 097992d0-f0a4-4abb-86ef-3b431c7210ea

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