mirror of
https://github.com/floci-io/floci.git
synced 2026-11-29 08:31:53 -05:00
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:
1 parent
c2e17203f9
commit
32594a9dd5
4 files changed
+65
-15
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user