Document mutation-testing workflow contract tests - #33
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
Summary
WalkthroughChangesMutation-testing workflow documentation
Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 20✅ Passed checks (20 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/developers-guide.md`:
- Around line 95-96: Update the module-prefix-strip documentation sentence to
remove the comma before the essential “because” clause, preserving the existing
wording and en-GB-oxendict style.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 508c8a02-39cc-4a03-8d70-1c35b78a6b88
📒 Files selected for processing (2)
docs/contents.mddocs/developers-guide.md
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
leynos/simulacat(auto-detected) → reviewed against open PR#51docs/mutation-contract-testsinstead of the default branch
Add a developers' guide section describing the mutation-testing caller workflow and its contract test, tests/test_workflow_contract.py, which pins the caller's uses: reference, permissions, concurrency, triggers, and with: block so drift fails the pull request rather than surfacing only in a scheduled run. Cross-link the new subsection from the documentation contents index.
Commit the deterministic spelling configuration produced by the repository validation gate so subsequent clean-tree checks remain fixed-point.
Describe the live shape-only SHA assertion so Dependabot pin updates remain independent of a hand-maintained test constant.
59f1d18 to
9dbe3c9
Compare
Summary
Documents the mutation-testing caller workflow and its contract test in
docs/developers-guide.md, with a cross-link fromdocs/contents.md.The caller passes the flat-layout inputs
paths(create_labels/) andmodule-prefix-strip(empty string). The contract test self-skips in mutmut'ssandbox, which omits
.github/.The current contract is shape-only:
USES_REverifies the expected reusableworkflow path and a full 40-character commit SHA, but deliberately does not
pin its value. Dependabot owns pin updates, so a bump does not require a
matching hand-edited test constant.
Run the contract test locally with:
Validation
make check-fmtmake lintmake typecheckmake test— 33 passedmake markdownlintmake nixieReferences