ci(molecule): say what a scenario time limit leaves running
A reader of the time limit needs to know its limits: on expiry only molecule is signalled, so its ansible-playbook and workers run until the run container ends, and the run-label cleanup step removes anything they recreate. The default's reasoning holds at the default 2 lanes, and the variable is for local runs and tests only. The timeout test now runs on one lane, so beta running proves the stalled lane was freed. The workflows rule gives the limit its reason and names the two tests that hold it. Refs #474 Assisted-by: Claude Code
This commit is contained in:
1 parent
41820fd9a7
commit
258cbaf516
3 files changed
+22
-14
No files matched your search
@@ -334,9 +334,11 @@ class RunMoleculeScenariosTest(unittest.TestCase):
|
||||
|
||||
@unittest.skipUnless(HAS_MOLECULE, NEEDS_MOLECULE)
|
||||
def test_a_scenario_past_its_time_limit_fails_alone(self):
|
||||
# one lane, and alpha first (both unlisted, so the selection order holds): beta runs only
|
||||
# if the stalled lane is freed
|
||||
proc = self.run_script(
|
||||
["roles/alpha/molecule/default", "roles/beta/molecule/default"],
|
||||
MOLECULE_SCENARIO_TIMEOUT="2", STUB_alpha_default="stall",
|
||||
MOLECULE_LANES="1", MOLECULE_SCENARIO_TIMEOUT="2", STUB_alpha_default="stall",
|
||||
) # fmt: skip
|
||||
self.assertEqual(proc.returncode, 1)
|
||||
self.assertIn("::error::Failed: alpha/default\n", proc.stdout)
|
||||
|
||||
Reference in new issue
Block a user