Set ON_ERROR_STOP in test/install/load.sql - #54
jnasbyupgrade wants to merge 2 commits into
Conversation
Errors in this file were never detected: pg_regress resolves its expected and result paths to the same file, so it can never diff. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Claude finished @jnasbyupgrade's task in 16s —— View job Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance.
|
|
Claude finished @jnasbyupgrade's task in 15s —— View job Code reviewNo issues found in PR #54. I checked the diff for bugs and CLAUDE.md compliance.
I did not run the tests. |
|
Claude here. Decisions needed from the maintainer before this merges:
|
test/install/load.sqlnow sets\set ON_ERROR_STOP on, so psql aborts (exit 3) at the first error in it and pg_regress reportsnot ok 1 - ../install/load(e.g. "1 of 3 tests failed") instead of the error passing silently. This makes errors visible; it does not add a gate.No CI step fails on that
not ok:pg-build-test, ci.yml:166) ends inmake installcheck || status=$?; exit $status, andpgxntool/base.mk:314has.IGNORE: installcheck, so it exits 0 even on a real diff. This step gates no pg_regress failure at all, in any test file.make test-update(ci.yml:196) and existing mode (bin/test_existing,make test) go throughpgxntool/base.mk:376, which fails only ifregression.diffsexists. pg_regress can never diffload.sql(its expected and result paths coincide; seetest/install/.gitignore), so an error there does not fail them either.Also notes at the first
\ifthat it needs psql 10+.Checked on PG17:
make testand existing-moderun-suitepass; with a bogusSELECTappended to the end of the file, the install step reportsnot okandmake teststill exits 0.🤖 Generated with Claude Code