docs(roles): name the test that fails a meta dependency

test_roles_call_each_other_by_full_name_only in
tests/scripts/test_select_molecule_scenarios.py already fails when a role's
meta/main.yml declares dependencies, and Lint runs it through the
script-tests hook. That test is the Lint check the rule waited for, so the
rule now names it as its control, and the workflow rules and the selector's
docstring no longer describe a meta dependency as allowed.

Refs: #246

Assisted-by: Claude Code
This commit is contained in:
Defame1297 committed 2026-12-06 19:15:36 +00:00
1 parent fac7ed47be
commit 6432eb52b0
3 files changed
+11 -6

No files matched your search

+3 -1
View File
@@ -114,7 +114,9 @@ names a check that does not exist yet and its backlog issue.
only on a supported entry point, an internal role on any entry point in its argument_specs.
*Why:* a task-level include keeps the order readable, where `meta` dependencies run hidden and
deduplicated. *Held:* the selector runs a dependent role's scenarios when a role it uses
changes; review for empty `dependencies` until Lint fails a non-empty one (#246).
changes; control: `test_roles_call_each_other_by_full_name_only` in
`tests/scripts/test_select_molecule_scenarios.py`, run by the Lint check, fails a non-empty
`dependencies`.
- **Internal roles.** A leading `_`; only roles of this Collection call it, by FQCN; it refuses
to run without a parent role (an `assert` on `ansible_parent_role_names`, as in
`_binary_update`); it has argument_specs and Molecule scenarios and follows the platform rules.