From 18475ea0a50a1a8cd3d1e1d7106f061e97a4a800 Mon Sep 17 00:00:00 2001 From: Dragonish Date: Fri, 27 Nov 2026 08:47:25 +0000 Subject: [PATCH] fix(ci): give the molecule job a 90 minute timeout 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 --- .gitea/workflows/molecule.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/molecule.yml b/.gitea/workflows/molecule.yml index 252742b..6358ab5 100644 --- a/.gitea/workflows/molecule.yml +++ b/.gitea/workflows/molecule.yml @@ -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