build(ci): drop molecule's Docker driver and community.docker from the ci image
Molecule runs in the molecule-controller image. In the ci image, only Lint's "Test the repository scripts" step uses molecule: test_check_scenarios_load_checkout.py runs check_scenarios_load_checkout.py, which imports molecule's config lookup, and test_run_molecule_scenarios.py expands platform names with molecule's interpolator. Both skip silently without molecule, so molecule stays, with a comment naming the step. Nothing in Lint or Build uses the Docker driver (molecule-plugins[docker]) or the docker SDK it pulls in: those tests use molecule's default driver and a stub docker module. No linted file calls a community.docker module, and a local clone, which never installs extensions/molecule/requirements.yml, passes ansible-lint. So the driver, docker, selinux and community.docker leave the ci image, and extensions/molecule/requirements.yml leaves its pin record: a community.docker bump no longer publishes a ci version. The lock is regenerated with scripts/lock-requirements.sh. Every script test passes, none skipped, in a venv installed from the new lock. Assisted-by: Claude Code
This commit is contained in:
1 parent
3414880d05
commit
39ec8e5b3c
9 files changed
+33
-58
No files matched your search
@@ -511,11 +511,12 @@ class PureTest(unittest.TestCase):
|
||||
)
|
||||
self.assertEqual(civ.dockerfile_labels('FROM c\nLABEL a="unbalanced\n'), {})
|
||||
|
||||
def test_the_molecule_collections_are_an_input_of_the_ci_image(self):
|
||||
def test_the_molecule_collections_are_not_an_input_of_the_ci_image(self):
|
||||
# Lint uses no collection of them, so their bump must not publish a ci version.
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
entry = civ.matrix_of((root / civ.MATRIX_FILE).read_text())["ci"]
|
||||
files = civ.inputs_of(entry, (root / entry["dockerfile"]).read_text())[1]
|
||||
self.assertIn("extensions/molecule/requirements.yml", files)
|
||||
self.assertNotIn("extensions/molecule/requirements.yml", files)
|
||||
|
||||
def test_the_controller_pins_are_inputs_of_the_controller_image(self):
|
||||
root = pathlib.Path(__file__).resolve().parents[2]
|
||||
|
||||
Reference in new issue
Block a user