Repository navigation
feat(oracle-gaps): --diff-base refuses an unknown revision and judges only changed lines #290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
48f9c61
fix(oracle-gaps): refuse an unknown --diff-base revision, and mark an…
schiller-manuel c180283
feat(oracle-gaps): --diff-base judges only the mutants on changed lines
schiller-manuel 4349d20
fix(oracle-gaps): --diff-base keeps the authored mutants that do not …
KyleAMathews 7430baf
feat(oracle-gaps): --diff-base judges only the changed lines, with th…
KyleAMathews bb3f1ff
test(oracle-gaps): judge the cold --diff-base run's note before its b…
KyleAMathews b03df17
fix(oracle-gaps): judge the note order on every --diff-base run; fix …
KyleAMathews a33fafc
fix(oracle-gaps): --diff-base joins no hunks across unchanged lines; …
KyleAMathews a5f0bb2
Merge main (#314, the SQLite store) into the --diff-base branch
KyleAMathews File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| '@tanstack/oracles': minor | ||
| --- | ||
|
|
||
| `oracle-gaps --diff-base <rev>` now judges only the mutants on lines changed since `<rev>`, for fast feedback after a change. Operator and authored mutants both count, and a mutant is on a changed line when any line from its first to its last is changed. Every line of a source file that git does not track is changed. The baseline still runs every test file that the run without the option runs, and each judged mutant gets the outcome it gets in the full run. An authored mutant that does not apply is reported on every run with the option, as it is without it. The run says so on its stream before the baseline, `oracle-gaps: note --diff-base <rev>: <n> of <m> mutants are on changed lines; the others are not judged in this run`, and in the same sentence in `summary.md`; `<m>` counts the run without the option, with the same `--only` or `--sample`. Its `results.json` and `summary.md` inputs say `a partial run (--only, --sample, or --diff-base)`, as an `--only` or `--sample` run's do (their text used to read `(--only or --sample)`). Authored mutants are marked `inDiff` too. | ||
|
|
||
| `oracle-gaps --diff-base <rev>` refuses a revision that names no commit of the git repository that holds the package: a name git does not know, a range, a blob, an option such as `--cached`, an empty value, or a package in no repository. It exits 2 with `refused: --diff-base "<rev>" names no commit of the git repository that holds the package` and a `fix:` line, before any test runs. Before, the run went on and marked every mutant `inDiff: false`. `results.json` records the commit as `options.diffBase: { rev, commit }` (it was the revision as given), so the run identity follows the commit and not the name. | ||
|
|
||
| Before, `--diff-base` only added `inDiff` to each operator mutant in `results.json`, and every mutant still ran. Run a full check without `--diff-base` to judge the other lines. |
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.