supercov 4.29.18 → 4.29.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/mutation.md
CHANGED
|
@@ -668,7 +668,16 @@ Limits: tests built for wasm run against mutants in Node, under WASI and in
|
|
|
668
668
|
Chrome; tests run in Firefox, Safari or Edge have their mutants recorded
|
|
669
669
|
`error`. Value probes do not cover `&&`, `||`, struct fields and returns that
|
|
670
670
|
are not numbers or booleans: those mutants stay `unknown` where they ran, and
|
|
671
|
-
the strong pass decides them.
|
|
671
|
+
the strong pass decides them. Equivalent mutants are not detected for Rust:
|
|
672
|
+
an equivalent mutant survives, as under cargo-mutants, and is accepted in
|
|
673
|
+
`supercov.accepted.json` (Critical code and accepted mutants).
|
|
674
|
+
|
|
675
|
+
A merged run's mutants run under its parts' test command; parts that differ
|
|
676
|
+
only in the test names after `--` (`cargo test -- --exact a b`) give it
|
|
677
|
+
without those names, since the pass names each test it runs. A test the
|
|
678
|
+
measured run skipped (`#[ignore]`, unless the command asked for
|
|
679
|
+
`--ignored` or `--include-ignored`) is recorded `skipped`, not failed, and
|
|
680
|
+
is never a candidate.
|
|
672
681
|
|
|
673
682
|
### Go (preview)
|
|
674
683
|
|
|
@@ -798,9 +807,9 @@ and baseline, or its own measured run.
|
|
|
798
807
|
| unicode-width 0.2.1 | generated tables | 383 | 383 | 0 | 0 | 576 / 1,598 s | 218 / 410 s |
|
|
799
808
|
| bitflags 2.9.1 | macro-generated code | 107 | 107 | 0 | 0 | 267 / 577 s | 134 / 309 s |
|
|
800
809
|
| anyhow 1.0.98 | build script, `deny(dead_code)` | 201 | 192 | 0 | 9 lint | 218 / 796 s | 74 / 238 s |
|
|
801
|
-
| fastrand 2.3.0 | under cargo-nextest |
|
|
810
|
+
| fastrand 2.3.0 | under cargo-nextest | 211 | 203 | 0 | 8 lint | 501 / 1,555 s | 828 / 616 s |
|
|
802
811
|
| regex-syntax 0.8.5 | workspace member, parser | 1,301 | 1,301 | 0 | 0 | 13,679 / 50,595 s (39 jobs) | 3,611 / 8,964 s |
|
|
803
|
-
| base64 0.22.1 | randomized round trips |
|
|
812
|
+
| base64 0.22.1 | randomized round trips | 305 of 619 | 305 | 0 | 0 | 15,249 / 50,394 s (48 jobs) | 5,684 / 17,390 s (16 jobs) |
|
|
804
813
|
|
|
805
814
|
No mutant one tool detects is one the other lets live. The other
|
|
806
815
|
disagreements, each applied by hand:
|
|
@@ -812,21 +821,26 @@ disagreements, each applied by hand:
|
|
|
812
821
|
it, or none reaches it.
|
|
813
822
|
- **`vec!` in a `no_std` crate** (fastrand, 2): a body replaced by `vec![]`
|
|
814
823
|
where no `vec!` is in scope does not compile, an error rustc gives no code.
|
|
815
|
-
|
|
816
|
-
|
|
824
|
+
4.29.18 reads that error as the mutant's own and calls them `unviable`, as
|
|
825
|
+
cargo-mutants does: in the fastrand row, measured with it, they agree.
|
|
817
826
|
- **Time limits**: a test's limit is cargo-mutants' rule applied to that test,
|
|
818
827
|
5 × its baseline and at least 20 s, where cargo-mutants applies it to the
|
|
819
828
|
whole suite. A mutant of fastrand that makes rejection sampling loop far
|
|
820
829
|
longer ended its one test past 20 s in one run, within 5 × the suite: a
|
|
821
830
|
`timeout` here, missed there; in another run it ended in time, as there.
|
|
822
831
|
|
|
823
|
-
Mutants the table does not join were left by a job's time
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
832
|
+
Mutants the table does not join were left by a job's time limit (6
|
|
833
|
+
minutes of mutants per job, to keep each job under ten): base64's tests
|
|
834
|
+
are slow under mutation, so cargo-mutants' 48 jobs decided 509 of its 619
|
|
835
|
+
mutants and Supercov's 16 left 204 of those without a verdict; under
|
|
836
|
+
fastrand, which runs each test through nextest, Supercov left 21. Every
|
|
837
|
+
mutant both tools decided is in the table, and none of them is a soundness
|
|
838
|
+
violation; joining the rest needs about twice the jobs. Supercov's wall time
|
|
839
|
+
is the larger on fastrand: nextest starts a process per test, against
|
|
840
|
+
cargo-mutants' one per mutant; its CPU time is two fifths. cargo-mutants
|
|
841
|
+
runs under a 10 GiB address-space cap: one of base64's mutants made a test
|
|
842
|
+
allocate without end, which took the runner, and every outcome of its job,
|
|
843
|
+
down twice. Each earlier gap the benchmark found is fixed and held by a test (`CHANGELOG.md`,
|
|
830
844
|
4.29.18): a probe that failed `u128` tests, `const fn` mutants read as never
|
|
831
845
|
run, operator mutants that regroup their expression, unviable mutants no
|
|
832
846
|
test reaches.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "supercov",
|
|
3
|
-
"version": "4.29.
|
|
3
|
+
"version": "4.29.19",
|
|
4
4
|
"description": "Coverage, security and code quality for coding agents",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"coverage",
|
|
@@ -126,14 +126,14 @@
|
|
|
126
126
|
"test:windows-tls": "node scripts/windows-tls-test.mjs"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
|
-
"@supercov/cli-darwin-arm64": "4.29.
|
|
130
|
-
"@supercov/cli-darwin-x64": "4.29.
|
|
131
|
-
"@supercov/cli-linux-arm64-gnu": "4.29.
|
|
132
|
-
"@supercov/cli-linux-arm64-musl": "4.29.
|
|
133
|
-
"@supercov/cli-linux-x64-gnu": "4.29.
|
|
134
|
-
"@supercov/cli-linux-x64-musl": "4.29.
|
|
135
|
-
"@supercov/cli-win32-arm64": "4.29.
|
|
136
|
-
"@supercov/cli-win32-x64": "4.29.
|
|
129
|
+
"@supercov/cli-darwin-arm64": "4.29.19",
|
|
130
|
+
"@supercov/cli-darwin-x64": "4.29.19",
|
|
131
|
+
"@supercov/cli-linux-arm64-gnu": "4.29.19",
|
|
132
|
+
"@supercov/cli-linux-arm64-musl": "4.29.19",
|
|
133
|
+
"@supercov/cli-linux-x64-gnu": "4.29.19",
|
|
134
|
+
"@supercov/cli-linux-x64-musl": "4.29.19",
|
|
135
|
+
"@supercov/cli-win32-arm64": "4.29.19",
|
|
136
|
+
"@supercov/cli-win32-x64": "4.29.19"
|
|
137
137
|
},
|
|
138
138
|
"peerDependencies": {
|
|
139
139
|
"@playwright/test": ">=1.55.0",
|
|
@@ -243,8 +243,12 @@ export async function load(url, context, nextLoad) {
|
|
|
243
243
|
}
|
|
244
244
|
export function loadSync(url, context, nextLoad) {
|
|
245
245
|
// Every module this process loads, required or imported: a server's
|
|
246
|
-
// runtime rescans the module cache for new ones only when this moved.
|
|
247
|
-
|
|
246
|
+
// runtime rescans the module cache for new ones only when this moved. A
|
|
247
|
+
// built-in (`node:path`) is never an entry of that cache, so it does not
|
|
248
|
+
// move it: a Next server requires `path` on nearly every request, and
|
|
249
|
+
// every request rescanned hundreds of keys for nothing.
|
|
250
|
+
if (!url.startsWith("node:"))
|
|
251
|
+
globalThis.__SUPERCOV_MODULE_LOADS__ = (globalThis.__SUPERCOV_MODULE_LOADS__ ?? 0) + 1;
|
|
248
252
|
if (context.conditions?.includes("require"))
|
|
249
253
|
return nextLoad(url, context);
|
|
250
254
|
return loaded(url, nextLoad(url, context));
|
|
@@ -386,7 +386,7 @@ function stop(child) {
|
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
export async function drive({ command, plan, resultsPath, root = process.cwd(), workers = parallelism(), environment = process.env, graceMs = 10_000, baselineGraceMs = 60_000 }) {
|
|
389
|
+
export async function drive({ command, plan, resultsPath, root = process.cwd(), workers = parallelism(), environment = process.env, graceMs = 10_000, baselineGraceMs = 60_000, aloneGraceMs = graceMs }) {
|
|
390
390
|
const started = Date.now();
|
|
391
391
|
// Once the pass is told to stop (`stopped-at` beside the results), its
|
|
392
392
|
// jobs are stopped under their tests: one that ends then says nothing of
|
|
@@ -704,7 +704,7 @@ export async function drive({ command, plan, resultsPath, root = process.cwd(),
|
|
|
704
704
|
profile.alone += 1;
|
|
705
705
|
const now = await job({ mutant: null, file: group.file, tests: chosen, bail: false, limitMs: baselineLimit(group.file, chosen), alone: true });
|
|
706
706
|
const slowest = Math.max(baseline.durationMs, now.durationMs);
|
|
707
|
-
result = await job({ mutant, file: group.file, tests: chosen, bail, limitMs: 3 * slowest +
|
|
707
|
+
result = await job({ mutant, file: group.file, tests: chosen, bail, limitMs: 3 * slowest + aloneGraceMs, alone: true });
|
|
708
708
|
}
|
|
709
709
|
const ran = [...result.statuses].filter(([id, status]) => status !== "skipped" && (chosen === null || chosen.has(id)));
|
|
710
710
|
const killer = killerIn(result);
|