Repository navigation
test(cli): use mutation runs to merge or delete 26 test files - #6436
Merged
Merged
Conversation
…ment The record of each campaign is the proof of one run at one commit, so it goes into a comment of the pull request and into no committed file. A census test of a record or of pyproject.toml asserts a value of a document or of a config file, which the owner rule of 2026-11-16 forbids. Run 2 now selects only the other test files that run the functions of the row, as per-test coverage gives them.
…tree Commit 513bb31 moved each test that the selection leaves out into its package folder, so the old paths left the modules in, and they failed against the generated code of mutmut. Each entry now names the module that holds its test, and the entry of a test that no file holds goes. The copy list adds openspec and design, which selected tests read.
tests/core/test_openspec_command.py reads the skill trees of the checkout, so the mutants tree needs .agents and .claude/skills. The proposal and the design now name the record of the pull request comment in place of the census file and the testing guide.
…nt of their own The 36 mutants that tests/core/test_consolidation_binaries.py kills all die again when the other test files that run the same statements run without it.
… mutant of their own tests/core/test_cleanup_fuzzing.py kills 42 mutants, and the other test files that run the same statements kill all 42 again. The four XML cases of tests/ai/test_pydantic_ai_format_prompt.py kill no mutant: they test the function of pydantic-ai that the module only exports again. The export case stays, because no mutant can change an import.
dan-petty
force-pushed
the
test/2176-mutation-decides-test-files
branch
from
November 19, 2026 17:32
194d829 to
61391ef
Compare
Owner
Author
Mutation record of #2176mutmut 3.8.1 ran on the tree of 633021e, the commit of the per-test coverage run ( A run whose stats run stopped inside a git checkout ran again outside every checkout: in a checkout, the telemetry tracer of a test reads the
Own mutants of the kept rowstests/ai/client/test_ai_client_credentials.py: 2 own mutants
tests/docs/test_exceptions.py: 5 own mutants
tests/config/test_headless_auth.py: 1 own mutants
tests/ai/toolsets/test_function_toolset.py, tests/ai/toolsets/test_toolset_authoring.py, tests/ai/toolsets/test_toolset_combinators.py: 28 own mutants
tests/commands/test_dependency_audit.py: 13 own mutants
Check of the selection (task 1.1)
Open rowsThe campaigns of the rows with the decision |
dan-petty
marked this pull request as ready for review
November 19, 2026 20:26
This was referenced Nov 19, 2026
3 tasks
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.
The mutation test selection of pyproject.toml named test modules at their old paths, so mutmut ran tests that fail in its mutants tree. This change points each entry at the module that holds the test now, removes the entry whose test is gone, and copies the folders that the selected tests read. Then mutation runs decide each of the 26 test files of the 2026-10-24 coverage audit: a file that kills no mutant of its own adds no check, so it goes, or its distinct case moves into the file that covers the same lines. The mutation record of each file is in a comment of this pull request.
Closes #2176
Change:
openspec/changes/archive/2026-11-19-2176-use-mutation-to-merge-or-delete/