Skip to content

Commit 74cb5fd

Browse files
committed
diag: Temporarily force joern_test/dicer_test to fail to surface the nested bazel console
1 parent 7a4902b commit 74cb5fd

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

test/community_build/downstream_test_driver.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,15 @@ done
244244
#
245245
# shellcheck disable=SC2086 # intentional word-splitting: extra_bazel_flags
246246
# and targets are each meant to expand to multiple words/patterns.
247+
nested_test_status=0
247248
nested_bazel_run test --test_output=errors --cache_test_results=no \
248249
--repo_env=SCALA_VERSION="${scala_version}" \
249-
${extra_bazel_flags} -- "${targets[@]}"
250+
${extra_bazel_flags} -- "${targets[@]}" || nested_test_status="$?"
251+
252+
# TEMPORARY diagnostic for the nested-remote-cache experiment: force this
253+
# sh_test to fail unconditionally so the outer `--test_output=errors` prints
254+
# everything above, including the nested `bazel test`'s own summary line
255+
# ("N remote cache hit") that a passing run would otherwise swallow. Revert
256+
# once the cache-hit question is answered.
257+
echo "DIAGNOSTIC: nested test exit status was ${nested_test_status}; forcing failure to surface the nested bazel console above." >&2
258+
exit 1

0 commit comments

Comments
 (0)