ci: gate new code on mutation score, and run weekly - #177
Open
Taure wants to merge 1 commit into
Open
Conversation
Enables diff-scoped mutation testing and a weekly CI run, matching Taure/gakudan#71. **Mutation, diff-scoped.** Only the lines a PR changes are mutated, so this gates new code without demanding a retroactive sweep of every existing test, and the job stays fast. Floor 75. Why it is worth having: on gakudan three tests were green and completely inert - each passed against a deliberately broken implementation - while every other check stayed green. Enabling this there immediately found an untested try/catch at 0/3 mutants killed. Also pins rebar3_mutate at ~> 0.5. The ~> 0.4.x line reports phantom survivors for a module with no matching _tests module instead of reporting that nothing ran, which is the same 'green means nothing' failure the plugin exists to prevent. **Weekly schedule.** paths-ignore means a docs-only stretch produces no CI run at all, so a dependency moving underneath a pin is invisible. gakudan went ~2.5 months that way and its Postgres suite rotted unnoticed (Taure/gakudan#67). compile, checks, audit, ct and sbom all run on a schedule trigger; mutate and elp-lint stay PR-only. Note: eunit mutation only reaches modules with a matching <module>_tests module, since that is how eunit discovers tests.
🟢 Code Coverage — 92.4%2612 of 2826 lines covered. 🔴 Mutation Testing — 0%0 mutants tested. 0 killed. 🟡 ELP Lint — 29 warnings34 diagnostics found. See job logs for details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enables diff-scoped mutation testing and a weekly CI run, matching Taure/gakudan#71.
Mutation, diff-scoped. Only the lines a PR changes are mutated, so this gates new code without demanding a retroactive sweep of every existing test, and the job stays fast. Floor 75.
Why it is worth having: on gakudan three tests were green and completely inert - each passed against a deliberately broken implementation - while every other check stayed green. Enabling this there immediately found an untested try/catch at 0/3 mutants killed.
Also pins rebar3_mutate at ~> 0.5. The ~> 0.4.x line reports phantom survivors for a module with no matching _tests module instead of reporting that nothing ran, which is the same 'green means nothing' failure the plugin exists to prevent.
Weekly schedule. paths-ignore means a docs-only stretch produces no CI run at all, so a dependency moving underneath a pin is invisible. gakudan went ~2.5 months that way and its Postgres suite rotted unnoticed (Taure/gakudan#67). compile, checks, audit, ct and sbom all run on a schedule trigger; mutate and elp-lint stay PR-only.
Note: eunit mutation only reaches modules with a matching _tests module, since that is how eunit discovers tests.