Fix/mole timeout #417

Merged
Defame1297 merged 3 commits from fix/mole-timeout into main 2026-11-27 09:54:22 +00:00
Owner

What and why

Closes #

Verified

The commands you ran and links to the CI runs.

Not verified

What was not tested, said plainly, or "Nothing".


  • I confirm third-party material is recorded in NOTICE and REUSE.toml, or there is none.
## What and why Closes # ## Verified The commands you ran and links to the CI runs. ## Not verified What was not tested, said plainly, or "Nothing". --- - [ ] I confirm third-party material is recorded in `NOTICE` and `REUSE.toml`, or there is none.
Defame1297 added 2 commits 2026-11-27 08:16:25 +00:00
remove molecule.yml timeout
Build / build (pull_request) Successful in 1m13s
Lint / lint (pull_request) Failing after 6m27s
Molecule / molecule (pull_request) Canceled after 26m38s
e2df672be7
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-11-27 08:16:53 +00:00
Dragonish added 1 commit 2026-11-27 08:50:31 +00:00
fix(ci): give the molecule job a 90 minute timeout
Lint / lint (pull_request) Failing after 5m36s
Build / build (pull_request) Successful in 26s
Molecule / molecule (pull_request) Successful in 49m28s
18475ea0a5
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
Collaborator

Lint failed on this PR with one error: test_the_sweep_spares_containers_younger_than_the_job_timeout reads jobs.molecule.timeout-minutes, and removing the key raises KeyError: 'timeout-minutes' (Lint run 5965).

That test holds the sweep step's date -d '45 minutes ago' equal to the job timeout, because a shorter sweep bound would remove the containers of a run still going. With no timeout the job can outlive the 45-minute bound, so the sweep needed a new anchor.

I pushed one commit on top of your head (18475ea, fast-forward, nothing rewritten) that restores timeout-minutes: 90 on the molecule job and moves the sweep to 90 minutes ago. The test passes locally (module run: 16 tests OK) and the commit hooks passed. CI on the new head is not verified yet. Your removal of the image.yml timeout is untouched.

Why 90 rather than removing it: a full run under load takes about 45 minutes (PR #405's Molecule run took 44m53s), so 45 left no margin, and without any timeout a hung run holds the single-slot runner for as long as Gitea or the runner allows (I did not check that default). The tradeoff is that leftovers of a cancelled or crashed run now live up to 90 minutes before the next sweep removes them.

If you removed the timeout on purpose, tell me and I will revert my commit (as a new commit) and instead update the test and the sweep bound to whatever you want the anchor to be.

Assisted-by: Claude Code

Lint failed on this PR with one error: `test_the_sweep_spares_containers_younger_than_the_job_timeout` reads `jobs.molecule.timeout-minutes`, and removing the key raises `KeyError: 'timeout-minutes'` (Lint run 5965). That test holds the sweep step's `date -d '45 minutes ago'` equal to the job timeout, because a shorter sweep bound would remove the containers of a run still going. With no timeout the job can outlive the 45-minute bound, so the sweep needed a new anchor. I pushed one commit on top of your head (18475ea, fast-forward, nothing rewritten) that restores `timeout-minutes: 90` on the molecule job and moves the sweep to `90 minutes ago`. The test passes locally (module run: 16 tests OK) and the commit hooks passed. CI on the new head is not verified yet. Your removal of the `image.yml` timeout is untouched. Why 90 rather than removing it: a full run under load takes about 45 minutes (PR #405's Molecule run took 44m53s), so 45 left no margin, and without any timeout a hung run holds the single-slot runner for as long as Gitea or the runner allows (I did not check that default). The tradeoff is that leftovers of a cancelled or crashed run now live up to 90 minutes before the next sweep removes them. If you removed the timeout on purpose, tell me and I will revert my commit (as a new commit) and instead update the test and the sweep bound to whatever you want the anchor to be. Assisted-by: Claude Code
Defame1297 merged commit 1372c257c2 into main 2026-11-27 09:54:22 +00:00
Defame1297 deleted branch fix/mole-timeout 2026-11-27 09:54:22 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#417