Author SHA1 Message Date
Defame1297 8133e8453e ci: run two jobs on the runner and give molecule 45 minutes
Build / build (pull_request) Successful in 29s
Lint / lint (pull_request) Successful in 2m23s
Molecule / molecule (pull_request) Successful in 17m21s
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
2026-11-25 10:58:36 +00:00
2 changed files with 5 additions and 3 deletions

No files matched your search

+2 -1
View File
@@ -63,7 +63,8 @@ jobs:
github.ref == 'refs/heads/main' github.ref == 'refs/heads/main'
runs-on: kamino-docker runs-on: kamino-docker
timeout-minutes: 45 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. # repository root is the build context.
# #
# base: MAJOR.MINOR of the image's semver tags, independent of the Collection's releases; # base: MAJOR.MINOR of the image's semver tags, independent of the Collection's releases;
+3 -2
View File
@@ -47,9 +47,10 @@ jobs:
(github.event_name != 'pull_request' || (github.event_name != 'pull_request' ||
github.event.pull_request.head.repo.full_name == github.repository) github.event.pull_request.head.repo.full_name == github.repository)
runs-on: [kamino-molecule] 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 # Also the age past which the sweep step removes a run's containers; a script test holds the
# two equal. # two equal.
timeout-minutes: 30 timeout-minutes: 45
env: env:
# The tools and collections molecule runs with: the image Lint and Build use. # The tools and collections molecule runs with: the image Lint and Build use.
CI_IMAGE: >- CI_IMAGE: >-
@@ -97,7 +98,7 @@ jobs:
ids="$(docker ps -aq --filter 'label=net.rkdr.mortis.molecule-run')" 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 # The job's timeout-minutes (a script test holds them equal): a shorter bound would remove a
# live run's containers. # live run's containers.
cutoff="$(date -d '30 minutes ago' +%s)" cutoff="$(date -d '45 minutes ago' +%s)"
old="" old=""
for id in $ids; do for id in $ids; do
# a container removed since the listing, by its run or another run's sweep, is skipped # a container removed since the listing, by its run or another run's sweep, is skipped