Skip to content

Commit be46705

Browse files
committed
ci: collect consumer failures instead of stopping at the first
A `run:` step is `bash -e`, so a bare `java` in the loop aborts the whole step at the first red main and never reaches the rest -- verified locally: a three-member loop with the middle member failing exits 1 without running the third. The gate is still correct that way, but one broken consumer would MASK the other three, and each CI round would reveal exactly one of them. `AllTests` itself does not work like that: it runs every suite and exits 1 at the end. The loop now matches it -- `|| failed="$failed $main"` collects, and the step exits 1 with every failing main named in a `::error::` line. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXUahz73MZxtxWcfpHp9dG
1 parent bf9a71a commit be46705

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎.github/workflows/lint.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,30 @@ jobs:
290290
# parity suite — and running only one of them would be the
291291
# no-gate-with-extra-steps outcome: compiling a consumer proves it builds,
292292
# never that its assertions hold.
293+
#
294+
# NOT fail-fast, deliberately. A `run:` step is `bash -e`, and a bare
295+
# `java` in this loop would abort the whole step at the first red main —
296+
# verified, the loop does not reach its remaining members — so one broken
297+
# consumer would mask the other three and each CI round would reveal
298+
# exactly one of them. `|| failed=...` collects instead, and the step still
299+
# exits non-zero. This mirrors `AllTests`, which runs every suite before
300+
# exiting 1 rather than stopping at the first failure.
293301
- name: Run the consumer suites
294302
working-directory: lance-graph-java
295303
run: |
304+
failed=""
296305
for main in com.adaworldapi.bricks.BricksAuthTest \
297306
com.adaworldapi.graph.GraphHopTest \
298307
com.adaworldapi.trades.TradesAllocationTest \
299308
com.adaworldapi.trades.TradesParityTest ; do
300309
echo "::group::$main"
301310
java --enable-preview --enable-native-access=ALL-UNNAMED \
302311
-Dlgj.library="$GITHUB_WORKSPACE/lance-graph-java/native/lgj-abi/target/release/liblgj_abi.so" \
303-
-cp "java/out:consumers/out" "$main"
312+
-cp "java/out:consumers/out" "$main" || failed="$failed $main"
304313
echo "::endgroup::"
305314
done
315+
if [ -n "$failed" ]; then
316+
echo "::error::consumer suites FAILED:$failed"
317+
exit 1
318+
fi
319+
echo "all four consumer suites passed"

0 commit comments

Comments
 (0)