ci(renovate): bump the molecule-controller pins like the ci ones
Renovate's pip-compile manager now reads requirements-molecule.lock, and its uv manager reads the controller Dockerfile's uv pin. The bot-PR guard holds the controller requirements and lock to the same rules as requirements-dev.txt and its lock, so the bot's pull requests for them are neither refused nor freer than the ci ones. The ansible tooling group spans both locks, so one pull request moves both ansible-core pins, which check_image_versions.py holds equal. Checked with renovate 44.161.0 --platform=local: it extracts requirements-molecule.txt with requirements-molecule.lock, and the uv pin of images/molecule-controller/Dockerfile. Refs #477 Assisted-by: Claude Code
This commit is contained in:
1 parent
fd448d7e9e
commit
0fb4fd70ee
3 files changed
+40
-13
No files matched your search
@@ -68,6 +68,27 @@ class LockRuleTest(unittest.TestCase):
|
||||
]
|
||||
self.assertIsNone(cbd.file_problem("requirements-dev.lock", removed, added))
|
||||
|
||||
def test_the_controller_lock_follows_the_lock_rule(self):
|
||||
removed = ["molecule==26.11.0 \\", f" --hash=sha256:{H1}"]
|
||||
added = ["molecule==26.12.0 \\", f" --hash=sha256:{H2}"]
|
||||
self.assertIsNone(
|
||||
cbd.file_problem("requirements-molecule.lock", removed, added)
|
||||
)
|
||||
self.assertIsNotNone(
|
||||
cbd.file_problem(
|
||||
"requirements-molecule.lock", [], ["--index-url https://evil/simple"]
|
||||
)
|
||||
)
|
||||
|
||||
def test_the_controller_requirements_follow_the_pin_rule(self):
|
||||
path = "requirements-molecule.txt"
|
||||
self.assertIsNone(
|
||||
cbd.file_problem(path, ["molecule==26.11.0"], ["molecule==26.12.0"])
|
||||
)
|
||||
self.assertIsNotNone(
|
||||
cbd.file_problem(path, ["molecule==26.11.0"], ["evil==1.0"])
|
||||
)
|
||||
|
||||
def test_the_header_command_may_not_change(self):
|
||||
old = "# pip-compile --generate-hashes --output-file=requirements-dev.lock requirements-dev.txt"
|
||||
new = old.replace("--generate-hashes", "--index-url=https://evil/simple")
|
||||
|
||||
Reference in new issue
Block a user