Skip to content

Commit 8e4cec5

Browse files
committed
Include output of failing TAP tests into regression diff section
1 parent 712cf0a commit 8e4cec5

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/linux-32bit-build-and-test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ jobs:
230230
run: |
231231
find . -name regression.diffs -exec cat {} + > regression.log
232232
233+
# TAP tests do not produce regression.diffs; their output goes to the
234+
# prove logs. Append the log of each TAP test prove reported as failed.
235+
for t in $(grep -hoE 't/[^ ]+\.pl \(Wstat' installcheck.log 2>/dev/null | sed -E 's#t/(.+)\.pl.*#\1#'); do
236+
find . -name "regress_log_$t" -exec cat {} + >> regression.log
237+
done
238+
233239
if [[ -s regression.log ]]; then echo "regression_diff=true" >>$GITHUB_OUTPUT; fi
234240
grep -e 'FAILED' -e 'failed (ignored)' -e 'not ok' installcheck.log || true
235241
cat regression.log

.github/workflows/linux-build-and-test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ jobs:
267267
run: |
268268
find . -name regression.diffs -exec cat {} + > regression.log
269269
270+
# TAP tests do not produce regression.diffs; their output goes to the
271+
# prove logs. Append the log of each TAP test prove reported as failed.
272+
for t in $(grep -hoE 't/[^ ]+\.pl \(Wstat' installcheck.log 2>/dev/null | sed -E 's#t/(.+)\.pl.*#\1#'); do
273+
find . -name "regress_log_$t" -exec cat {} + >> regression.log
274+
done
275+
270276
if [[ "${{ runner.os }}" == "Linux" ]] ; then
271277
# wait in case there are in-progress coredumps
272278
sleep 10

.github/workflows/sanitizer-build-and-test.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,11 @@ jobs:
174174
id: collectlogs
175175
run: |
176176
find . -name regression.diffs -exec cat {} + > regression.log
177+
# TAP tests do not produce regression.diffs; their output goes to the
178+
# prove logs. Append the log of each TAP test prove reported as failed.
179+
for t in $(grep -hoE 't/[^ ]+\.pl \(Wstat' installcheck.log 2>/dev/null | sed -E 's#t/(.+)\.pl.*#\1#'); do
180+
find . -name "regress_log_$t" -exec cat {} + >> regression.log
181+
done
177182
if [[ "${{ runner.os }}" == "Linux" ]] ; then
178183
# wait in case there are in-progress coredumps
179184
sleep 10

0 commit comments

Comments
 (0)