From 8133e8453e2490f626699b9136c09c521e560011 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Wed, 25 Nov 2026 10:58:36 +0000 Subject: [PATCH] ci: run two jobs on the runner and give molecule 45 minutes The runner now takes two jobs at a time, so a Lint and a Build of one pull request start together. The image.yml comment no longer says builds run on a single-capacity runner: max-parallel keeps the builds to one at a time, and a build may share the runner with one other job. Two full molecule runs sharing the runner (a nightly run and a dispatch) take longer than 30 minutes; both were cut off at the timeout with every finished scenario green. The timeout goes to 45 minutes, and the sweep age with it (a script test holds the two equal). Refs #243 Assisted-by: Claude Code:claude-opus-5-5 --- .gitea/workflows/image.yml | 3 ++- .gitea/workflows/molecule.yml | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/image.yml b/.gitea/workflows/image.yml index e7eb749..07ab4a3 100644 --- a/.gitea/workflows/image.yml +++ b/.gitea/workflows/image.yml @@ -63,7 +63,8 @@ jobs: github.ref == 'refs/heads/main' runs-on: kamino-docker timeout-minutes: 45 - # One job at a time on the single-capacity runner. An empty subpath means the + # max-parallel: 1 keeps the builds to one at a time. The runner takes two jobs, so a build + # may share it with one other job (Lint, Build or Molecule). An empty subpath means the # repository root is the build context. # # base: MAJOR.MINOR of the image's semver tags, independent of the Collection's releases; diff --git a/.gitea/workflows/molecule.yml b/.gitea/workflows/molecule.yml index d1bd890..99759c1 100644 --- a/.gitea/workflows/molecule.yml +++ b/.gitea/workflows/molecule.yml @@ -47,9 +47,10 @@ jobs: (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) runs-on: [kamino-molecule] + # Two full runs sharing the runner (a nightly run and a dispatch) take more than 30 minutes. # Also the age past which the sweep step removes a run's containers; a script test holds the # two equal. - timeout-minutes: 30 + timeout-minutes: 45 env: # The tools and collections molecule runs with: the image Lint and Build use. CI_IMAGE: >- @@ -97,7 +98,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 '30 minutes ago' +%s)" + cutoff="$(date -d '45 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 -- 2.43.0