Commit 8c2e03f
committed
ci: fail postgres test step on SQL errors and [FAIL] markers
The postgres-test job was reporting success even when test files
emitted SQL errors and [FAIL] lines, because psql exits 0 by default
and the script's :fail-based RAISE EXCEPTION can be bypassed when an
earlier error prevents the counter from being incremented.
Run psql with ON_ERROR_STOP=on, enable pipefail around the tee, and
grep the captured log for [FAIL] / psql ERROR lines as a final guard
so any one of the three signals fails the workflow step.1 parent c97f7da commit 8c2e03f
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
276 | 277 | | |
277 | 278 | | |
278 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
279 | 284 | | |
280 | 285 | | |
281 | 286 | | |
| |||
0 commit comments