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 -2
View File
@@ -28,8 +28,9 @@ Only a pull request is narrowed, and only when <base-ref> is given and EVENT_NAM
A role uses another when any file under its directory names it as `mortis.kamino.<other>`
(an include_role, a scenario's prepare play, a comment). The relation is transitive: when
`a` names `b` and `b` names `c`, a change to `c` selects all three. The roles call each other
by that full name only (a test checks includes, imports, play `roles:` entries and meta
dependencies for a bare or templated role name), so the text search finds every use. It reads the
by that full name only (a test checks includes, imports and play `roles:` entries for a bare
or templated role name, and that no role declares meta dependencies), so the text search finds
every use. It reads the
tree under test, not the base: a pull request that drops a use also changes the using role,
which then selects itself, and a role the pull request deletes or renames still counts as used
by the roles that name it. A shared file outside roles/<role>/ (a plugin) already selects