-
Notifications
You must be signed in to change notification settings - Fork 8
[BUG] MUT-023: mutiny test exits 0 on PASS + SKIPPED #71
Copy link
Copy link
Labels
bugSomething isn't workingSomething isn't workingclimutiny CLI / scripts DXmutiny CLI / scripts DXgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededpriority:P2Meaningful independent improvementMeaningful independent improvementtestsUnit, integration, reliability testsUnit, integration, reliability tests
Description
Activity
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingclimutiny CLI / scripts DXmutiny CLI / scripts DXgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededpriority:P2Meaningful independent improvementMeaningful independent improvementtestsUnit, integration, reliability testsUnit, integration, reliability tests
Problem
Invalid JSON regression files are
SKIPPED.mutiny testexits 1 only if skipped and not passed.PASS + SKIPPED→ exit 0. Corrupt files can hide in CI if any other case passes. The SKIPPED path itself is weakly tested (MUT-027).#39 (merged) only formatted the summary line (
N passed, N failed, N skipped). It did not change this exit-code rule.test_cmd.pystill hasif skipped and not passed: return 1thenreturn 0.Why it matters
CI green with a broken regression artifact in the suite.
Evidence
packages/mutiny_cli/src/mutiny_cli/test_cmd.pyrun_testsL200–204;discover_regressionsSKIPPED on load error.Reproduction
Code path as written. Audit catalogued this as good first issue material. Not independently re-run in this filing pass.
Expected behavior
Load errors are FAIL, or exit 1 if any SKIPPED unless
--allow-skip.Suggested implementation direction
Treat corrupt JSON as FAIL (simplest) or add
--allow-skipand default to non-zero when skipped > 0. Add a unit test with a temp invalid JSON file plus one valid PASS.Acceptance criteria
--allow-skipis explicitly used).Scope
test_cmd.py+ tests. Out of scope: broader CLI test coverage (MUT-027).Related audit findings
MUT-023. Related: MUT-027, #39 (summary format — done).
Contributor notes
Generated from the Mutiny deep audit.
good first issue.help wanted.