ci / test-guard (pull_request) Successful in 3s
ci / go (pull_request) Successful in 4m33s
ci / package (pull_request) Successful in 2m56s
ci / install-test (debian:12) (pull_request) Successful in 1m21s
ci / install-test (debian:13) (pull_request) Successful in 1m17s
ci / smb (pull_request) Successful in 1m11s
ci / e2e (pull_request) Successful in 2m59s
Development is largely automated; when a test fails, the shortest path to a green CI is changing the test. Three safeguards: - Test guard (CI job, every PR): changing or deleting existing test lines, deleting a test file or lowering .coverage-min / .mutation-min fails unless a commit message says "Test changed because: …". Adding tests is free. The script is taken from the target branch, so a PR can't disable it for itself. Checked against 7 cases (new test, changed expectation with/without reason, coverage minimum lowered/raised, deleted test file, code-only change). - Owner approval, optional: with the repo variable TEST_GUARD_APPROVER such a PR also needs that person's approving review of the latest commit (checked through the API: state, user, commit, not dismissed). - Weekly mutation check: gremlins on server, access mapping, path confinement and auth; efficacy may not fall below .mutation-min. gremlins' own --threshold-efficacy doesn't change its exit code (v0.5.0, verified), so the script compares the summary itself. AGENTS.md: what to do when a test fails (spec first, reproduce on the real system, fix the code — or say why the test was wrong). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 lines
357 B
Plaintext
8 lines
357 B
Plaintext
# Minimum mutation test efficacy in % (killed of covered mutants, gremlins),
|
|
# checked weekly by scripts/mutation-check.sh. Raise a number when it went up;
|
|
# lowering one needs "Test changed because:" in the commit message (test guard).
|
|
internal/server 75
|
|
internal/domain/share 85
|
|
internal/rootfs 83
|
|
internal/auth 88
|