Skip to content

Commit 3d24b68

Browse files
committed
temp: add logs to the mix
1 parent 446fdfe commit 3d24b68

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/flaky.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,11 @@ jobs:
5151
matrix:
5252
crdb: ${{ fromJSON(needs.prepare-matrix.outputs.crdb) }}
5353
ruby: ${{ fromJSON(needs.prepare-matrix.outputs.ruby) }}
54-
seed: ${{ fromJSON(needs.prepare-matrix.outputs.seeds) }}
54+
# Test (crdb=v25.2 ruby=3.4 seed=24193)
55+
# Process completed with exit code 1.
56+
# Test (crdb=v25.2 ruby=3.4 seed=34006)
57+
# Process completed with exit code 1.
58+
seed: [3752, 24193, 34006] # ${{ fromJSON(needs.prepare-matrix.outputs.seeds) }}
5559
name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }} seed=${{ matrix.seed }})
5660
env:
5761
SEED: ${{ matrix.seed }}
@@ -67,7 +71,21 @@ jobs:
6771
TESTOPTS: --fail-fast
6872
- name: Bisect failing test
6973
if: ${{ failure() && steps.test.conclusion == 'failure' }}
70-
run: bin/minitest_bisect ${{ matrix.seed }}
74+
run: |
75+
TTL=1200
76+
timeout $TTL bundle exec bin/minitest_bisect ${{ matrix.seed }} --verbose 2>&1 | tee bisect.log & BIS_PID=$!
77+
sleep 10
78+
echo "=== Listening sockets ==="
79+
ss -ltnp || netstat -ltnp || lsof -iTCP -sTCP:LISTEN -P || true
80+
echo "=== ps aux (ruby-related) ==="
81+
while kill -0 $BIS_PID; do
82+
ps -o pid,ppid,cmd -u $USER | egrep -i 'minitest|ruby|drb' || true
83+
sleep 5
84+
done
85+
86+
echo "=== final bisect.log ==="
87+
sed -n '1,200p' bisect.log || true
88+
7189
env:
7290
MTB_VERBOSE: 2
7391
MTB_DEBUG: 1

0 commit comments

Comments
 (0)