test: run role refusal tests once, in verify.yml, not in every converge pass #420
Open
opened 2026-11-27 13:34:14 +00:00 by Claude
·
0 comments
No Branch/Tag Specified
main
test/refusals-in-verify
ci/molecule-pipelining
feat/traefik-release-url
ci/molecule-shared-config
feat/apt-cache-valid-time
feat/cloudflared-lookup-delay
test/tailscale-reuse-debs
renovate/git.rkdr.net-mortis-molecule-ubuntu2404-0.x
feat/400-skip-upgrade-during-vzdump
v3.1.0
v3.0.0
v2.2.0
v2.1.0
v2.0.1
v2.0.0
v1.11.0
v1.10.2
v1.10.1
v1.10.0
v1.9.0
v1.8.0
v1.7.0
v1.6.0
v1.5.0
v1.4.0
v1.3.0
v1.2.0
v1.1.0
v1.0.0
Labels
Clear labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Breaking change that won't be backward compatible
Something is not working
Documentation changes
Improve existing functionality
New functionality
This is security issue
Issue or pull request related to testing
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Status
Needs Triage
Maintainer needs to evaluate this issue
Status
Ready for Agent
Fully specified, ready for an AFK agent
Status
Ready for Human
Requires human implementation
Wayfinder
Grilling
Decision ticket resolved in conversation with the maintainer
Wayfinder
Map
Wayfinder map: index of a planning effort and its decision tickets
Wayfinder
Prototype
Decision ticket resolved by reacting to a rough concrete artifact
Wayfinder
Research
Decision ticket resolved by reading outside sources
Wayfinder
Task
Manual work that must happen before a decision can be made
Milestone
No items
No Milestone
CI velocity (emergency)
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Mortis/Kamino#420
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Part of #419
Problem
The
system_baseline,docker,sshdandsystemd_hardeningscenarios keep validation-only plays (the role refuses a bad input; block/rescue/assert on the message) inconverge.yml. The test sequence runs check, converge, check and idempotence, so these plays replay 4 times per platform on both platforms: 8 times per scenario. Insystem_baseline, 428 of the 489 tasks of one converge pass are such refusal tests.roles/AGENTS.md"Negative tests" already asks for them inverify.yml(or a file it includes). Related: #137 (validation order and negative-test tightening across roles).Out of scope: changing what any role validates.
Proposal
Move the refusal plays to the top of each scenario's
verify.ymlas plays withhosts: localhost,connection: localandcheck_mode: true, so they run once, need no container and cannot change a host.converge.ymlkeeps only the plays that converge the host.Acceptance criteria
converge.ymlofsystem_baseline,docker,sshdandsystemd_hardeningholds only convergence plays (review of the diff;grep -n rescue roles/*/molecule/*/converge.ymlfinds no refusal test in those four).fail_msgmatch).python3 -m unittest discover -s tests/scriptspasses.Assisted-by: Claude Code