fix(ci): give the molecule job a 90 minute timeout
Lint / lint (pull_request) Failing after 5m36s
Molecule / molecule (pull_request) In progress
Build / build (pull_request) Successful in 26s

Removing timeout-minutes left the sweep step's 45 minute bound without
the job timeout it must equal, and the script test that holds the two
equal failed with a KeyError. Restore the key at 90 minutes, which also
leaves a full run under load (PR #405 took 44m53s) real margin, and move
the sweep bound to match so a live run's containers are never removed.

Assisted-by: Claude Code
This commit is contained in:
Dragonish committed 2026-11-27 08:47:25 +00:00
1 parent e2df672be7
commit 18475ea0a5
1 file changed
+4 -1
+4 -1
View File
@@ -47,6 +47,9 @@ jobs:
(github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository)
runs-on: [kamino-molecule]
# A full run under load takes about 45 minutes (PR #405: 44m53s), so 45 left no margin. Also the
# age past which the sweep step removes a run's containers; a script test holds the two equal.
timeout-minutes: 90
env:
# The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >-
@@ -94,7 +97,7 @@ jobs:
ids="$(docker ps -aq --filter 'label=net.rkdr.mortis.molecule-run')"
# The job's timeout-minutes (a script test holds them equal): a shorter bound would remove a
# live run's containers.
cutoff="$(date -d '45 minutes ago' +%s)"
cutoff="$(date -d '90 minutes ago' +%s)"
old=""
for id in $ids; do
# a container removed since the listing, by its run or another run's sweep, is skipped