ci: bound each terraform bats file and keep partial results on a cancelled compat job (#3720)

The arm64 compat-terraform job hangs about once in thirty runs and dies at the
workflow's 20-minute timeout-minutes with nothing to show for it: the runner kept
every per-file log and JUnit report in a temp dir inside the container until all
files had finished, so a cancel discarded them, and the floci log was only dumped
on failure, which a cancel is not. Three such timeouts in the last hundred runs,
all with the same blank log.

Each bats file now runs under timeout (BATS_FILE_TIMEOUT, default 12m, against a
healthy run of about 6.5 minutes), without --foreground so the terraform children
die with bats. A file that hits the limit exits 124 with a line naming it appended
to its log, each file's report is published as soon as that file ends, a progress
line per file reaches the console, and the floci log is dumped on cancel as well.
Both suites' runners stay identical.
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-09-16 07:07:30 -04:00
1 parent c2e17203f9
commit 32594a9dd5
4 files changed
+65 -15

No files matched your search

+3 -1
View File
@@ -441,5 +441,7 @@ jobs:
if-no-files-found: warn
- name: Dump floci logs
if: failure()
# A job cancelled at timeout-minutes is not a failure, but a hung suite is the case
# where the server log matters most.
if: failure() || cancelled()
run: docker logs floci