Skip to content

fix(ansible-ci): run molecule when tests/ changes#119

Merged
openbao-service-broker[bot] merged 1 commit into
mainfrom
fix/molecule-filter-template-render
Jul 24, 2026
Merged

fix(ansible-ci): run molecule when tests/ changes#119
openbao-service-broker[bot] merged 1 commit into
mainfrom
fix/molecule-filter-template-render

Conversation

@openbao-service-broker

Copy link
Copy Markdown
Contributor

The blind spot

The shared molecule paths-filter covers roles/, molecule/, .config/molecule/ and requirements.yml — but consuming repos keep suites under tests/ that run as jobs of the molecule workflow (ansible-proxmox-apps has tests/template_render/ as Molecule / Template Rendering Tests, and tests/nautobot_seed/).

A change confined to one of those suites leaves the filter false, skips every molecule job, and the PR merges green without ever running the test it changed.

What that cost today

Two PRs fixing tests/template_render/verify_templates.yml merged green while leaving develop red — the render test was failing on develop HEAD throughout, and neither PR's CI could exercise its own fix. Local runs were the only evidence available at merge time. Two agents hit this independently and both flagged it.

Change

One entry, tests/**, with a comment explaining why it exists so nobody removes it as redundant. Deliberately tests/** rather than a specific path, so a consumer adding a new suite is covered by default: the failure mode here is a filter that is too narrow, and an unnecessary molecule run is far cheaper than a test that silently never runs.

YAML parses clean.

🤖 Generated with Claude Code

The molecule filter covered roles/, molecule/, .config/molecule/ and
requirements.yml, but consuming repos keep suites under tests/ that run as
molecule-workflow jobs. A change confined to one of those suites left the
filter false, skipped every molecule job, and merged green without ever
running the test it changed.

Assisted-by: Claude:claude-opus-5
Claude-Session: https://claude.ai/code/session_01Kqn6PLZhCzVdfLt7E7EFMg
@openbao-service-broker
openbao-service-broker Bot merged commit 313811e into main Jul 24, 2026
19 checks passed
@openbao-service-broker
openbao-service-broker Bot deleted the fix/molecule-filter-template-render branch July 24, 2026 21:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant