Skip to content

Commit fc11c64

Browse files
committed
ci: Use unique base ports per iteration to avoid TIME_WAIT collisions
Ports from previous iterations may still be in TIME_WAIT when the next iteration starts. Offset the base port by both iteration and process index to ensure no overlap. AI tools were used in preparing this commit.
1 parent baaa6ff commit fc11c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
for i in $(seq 1 5); do
129129
echo "=== Iteration $i (shard ${{ matrix.shard }}) ==="
130130
for j in 1 2 3; do
131-
LDK_NODE_TEST_BASE_PORT=$((20000 + (j - 1) * 1000)) RUSTFLAGS="--cfg no_download --cfg cycle_tests" cargo test --test integration_tests_rust -- --nocapture > /tmp/stress-${j}.log 2>&1 &
131+
LDK_NODE_TEST_BASE_PORT=$((20000 + (i - 1) * 3000 + (j - 1) * 1000)) RUSTFLAGS="--cfg no_download --cfg cycle_tests" cargo test --test integration_tests_rust -- --nocapture > /tmp/stress-${j}.log 2>&1 &
132132
pids[${j}]=$!
133133
done
134134
for j in 1 2 3; do

0 commit comments

Comments
 (0)