Skip to content

Commit da9ce71

Browse files
committed
wip: debugging multinode- tests
1 parent a467893 commit da9ce71

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

scripts/multinode-runner.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/bash
22
set -euo pipefail
33

4+
# Debug: Show bash version and options in CI
5+
if [[ -n "${CI:-}" ]]; then
6+
echo "[DEBUG] Bash version: $BASH_VERSION" >&2
7+
echo "[DEBUG] Bash options: $-" >&2
8+
fi
9+
410
# Troupe Multi-Node Test Runner - Refactored Version
511
# Orchestrates multi-node tests with proper cleanup and output synchronization
612
#
@@ -146,6 +152,7 @@ cleanup() {
146152
# CRITICAL: Capture the original exit code immediately
147153
# This must be the FIRST command in cleanup to preserve test results
148154
local exit_code=$?
155+
echo "[DEBUG] Cleanup called with exit code: $exit_code" >&2
149156
log "Cleaning up test processes (exit code: $exit_code)..."
150157

151158
local cleaned_count=0
@@ -310,6 +317,7 @@ cleanup() {
310317
# CRITICAL: Exit with the original exit code from the test, not from cleanup
311318
# Without this, the script would exit with the status of the last cleanup command
312319
# This is why tests were "failing" in CI even though they succeeded
320+
echo "[DEBUG] Exiting cleanup with code: $exit_code" >&2
313321
exit $exit_code
314322
}
315323

0 commit comments

Comments
 (0)