ci(molecule): check container removal by listing what is left
A removal that fails because another run's sweep was first is harmless, but checking that with `docker container inspect` also passed when the daemon could not be reached. Both removal steps now remove what they can and then list the containers they meant to remove; a failing list or a container still listed fails the step. The workflow rules name the test that holds the sweep's age bound to the job timeout. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
1 parent
3726b5c53f
commit
1885b3fe99
3 files changed
+20
-16
No files matched your search
@@ -398,11 +398,11 @@ class ScenarioPlatformsTest(unittest.TestCase):
|
||||
def test_the_workflow_finds_the_containers_by_the_run_label(self):
|
||||
# the sweep of earlier runs filters by the key, the cleanup of this run by key and value
|
||||
self.assertEqual(
|
||||
label_filters("Remove the containers earlier runs left"), [RUN_LABEL]
|
||||
set(label_filters("Remove the containers earlier runs left")), {RUN_LABEL}
|
||||
)
|
||||
self.assertEqual(
|
||||
label_filters("Remove this run's containers"),
|
||||
[f"{RUN_LABEL}=$KAMINO_RUN_ID"],
|
||||
set(label_filters("Remove this run's containers")),
|
||||
{f"{RUN_LABEL}=$KAMINO_RUN_ID"},
|
||||
)
|
||||
|
||||
def test_the_sweep_spares_containers_younger_than_the_job_timeout(self):
|
||||
|
||||
Reference in new issue
Block a user