From b7808bc306dc18e9db1437d51dd2f95d8201d7c2 Mon Sep 17 00:00:00 2001 From: emil Date: Tue, 23 Jun 2026 20:28:43 +0200 Subject: [PATCH 1/2] fix: set fresh MOLECULE_HOME per pair to avoid stale config cache CI runners with persistent caches cause "Instances missing from the 'platform' section of molecule.yml" errors when molecule.yml has been modified between runs. Setting MOLECULE_HOME to a fresh temp directory for each pair ensures molecule starts with a clean config cache. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- src/devx/molecule/molecule_ci_guard.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/devx/molecule/molecule_ci_guard.py b/src/devx/molecule/molecule_ci_guard.py index 4ca4fea..5585e75 100644 --- a/src/devx/molecule/molecule_ci_guard.py +++ b/src/devx/molecule/molecule_ci_guard.py @@ -134,6 +134,12 @@ def build_env_for_pair(pair: str, base_env: dict[str, str]) -> dict[str, str]: elif "MOLECULE_PLATFORM_COMMAND" in env: del env["MOLECULE_PLATFORM_COMMAND"] env["ANSIBLE_ALLOW_BROKEN_CONDITIONALS"] = "true" + # Use a fresh MOLECULE_HOME per pair to avoid stale config cache + # from previous CI runs (causes "Instances missing" errors). + if "MOLECULE_HOME" not in env: + import tempfile + + env["MOLECULE_HOME"] = tempfile.mkdtemp(prefix="molecule-ci-") return env -- 2.54.0 From a75eda3052f7f4230df3ba10b99e701ea2b8c226 Mon Sep 17 00:00:00 2001 From: emil Date: Tue, 23 Jun 2026 20:42:04 +0200 Subject: [PATCH 2/2] chore: trigger CI rerun with updated PR title -- 2.54.0