GitHubivarvong
ply
main
1// The suite Stryker runs per mutant (stryker.conf.json): the fast, mutation-killing files. Same settings as
2// vitest.config.ts; quick sizes; push-outcome's quick space on the test's own thread (PUSH_SPACE_WORKERS=0), because
3// Stryker records per-test coverage and the active mutant in the test process's main thread, and code reached only in
4// a worker would count as uncovered. MUTATION=1 skips push-outcome's two tests that are not about src (the axis
5// renderer table and the git-observed cells), which the mutation command left out before (--test-name-pattern).
6import { fileURLToPath } from 'node:url';
7import { defineConfig, mergeConfig } from 'vitest/config';
8import base from './vitest.config.ts';
10// Every test process of the mutation run gets test/stryker-parent-guard.cjs: a mutant can grow a process past 23 GB
11// (src/pktline.js:22 without out.set: the memory was node:assert's diff of two 65,516-element arrays in a test, now
12// test/bytes-assert.js, #85) or orphan it; the guard SIGKILLs a test process past 3 GB resident or once its
13// parent is gone, and Stryker counts the dead process as a detected mutant (scripts/mutate.mjs DETECTED).
14const guard = `--require=${fileURLToPath(new URL('./test/stryker-parent-guard.cjs', import.meta.url))}`;
15if (!(process.env['NODE_OPTIONS'] ?? '').includes(guard)) process.env['NODE_OPTIONS'] = [process.env['NODE_OPTIONS'], guard].filter(Boolean).join(' ');
17// mergeConfig concatenates arrays, so `include` is set on the merged result: these files only, not base's glob too.
18const MUTATION_FILES = [
19 'test/format-facts.test.js',
20 'test/prefix-closure.test.js',
21 'test/props.test.js',
22 'test/mutant-kill.test.js',
23 'test/mutant-kill-tree.test.js',
24 'test/mutant-kill-packs.test.js',
25 'test/packstream.test.js',
26 'test/pack-resolve-linear.test.js',
27 'test/delta-bound.test.js',
28 'test/packwrite.test.js',
29 'test/push-commands.test.js',
30 'test/push-unpack-host.test.js',
31 'test/http-options.test.js',
32 'test/describe-pack.test.js',
33 'test/packindex.test.js',
34 'test/space/push-outcome.test.js',
35 'test/result.test.js',
36 'test/operation-callback-contract.test.js',
37 'test/option.test.js',
38 'test/version-refname.test.js',
39 'test/uprequest.test.js',
40 'test/parse-once.test.js',
41 'test/want-oracle.test.js',
42 'test/dotnames.test.js',
43 'test/parsetree.test.js',
44 'test/otel-ended.test.js',
45 'test/sha1.test.js',
46 'test/lsrefs-step.test.js',
47 'test/path-trees-unit.test.js',
48 'test/pullstream.test.js',
49 'test/inflate-codesets.test.js',
50 'test/inflate-pos.test.js',
51 'test/transfer.test.js',
52 'test/input-validation.test.js',
53];
54// A test that hangs under a mutant fails at its own timeout, not at Stryker's per-mutant one. vitest.config.ts turns both
55// timers off (0), so a hung await ran until Stryker's timeout: 2 × the covering tests' dry-run time + 8 s
56// (stryker.conf.json timeoutFactor, timeoutMS), and for a mutant every test reaches (a static one) that is about 2 × 48 s
57// + 8 s on a CI runner. 622 of the 29,604 mutants of a full run timed out (#307: shard 5 of 3502eef held 21 of them
58// and hit the 90-minute job limit at 692/698). 60 s is 5× the slowest mutation test (push-outcome `every cell`,
59// 11.8 s on an M-series Mac, 2026-11-12) and above Stryker's own bound for any single test (2 × 11.8 + 8 s), so no
60// test a mutant leaves correct but slower is cut sooner than Stryker would cut it; a cut test is a failed test, a
61// detected mutant, exactly as a Timeout is (scripts/mutate.mjs DETECTED).
62const MUTATION_TEST_TIMEOUT_MS = 60_000;
63const config = mergeConfig(base, defineConfig({
64 test: {
65 env: { PROP_N: '4', PUSH_SPACE: 'quick', PUSH_SPACE_WORKERS: '0', MUTATION: '1' },
66 testTimeout: MUTATION_TEST_TIMEOUT_MS,
67 hookTimeout: MUTATION_TEST_TIMEOUT_MS,
68 },
69}));
70config.test = { ...config.test, include: MUTATION_FILES };
71export default config;
Diagnostics5 git calls · 94 ms
CallStatusSizeTime094 ms
discover200191 B1 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=1 git.response.bytes=191 git.server.agent=git/github-9922ec520325-Linux git.server.object_format=sha1 git.server.caps=agent ls-refs fetch server-option object-format git.server.fetch=shallow wait-for-done filter git.protocol.version=2 git.pkt.frames=9 git.pkt.data=7 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=191 git.pkt.payload.max=36
ls-refs20012 KiB · hit2 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=2 git.response.bytes=11990 git.response.cache=HIT git.response.duration_ms=2 git.protocol.version=2 git.pkt.frames=152 git.pkt.data=151 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=11990 git.pkt.payload.max=122 git.ls_refs.count=151 git.ls_refs.head=refs/heads/main
fetchtree:0 · deepen 102004.2 KiB · hit2 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=4347 git.response.cache=HIT git.response.duration_ms=2 git.fetch.filter=tree:0 git.fetch.wants=19912563f540228593df0c489082e5e2508e21e4 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=7 git.pkt.data=5 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=4347 git.pkt.payload.max=4247 git.sideband.band1.bytes=4247 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=10 git.pack.bytes=4247 git.pack.ofs_delta=0 git.pack.ref_delta=0 git.pack.chain.max=0 git.pack.trailer=a6caf8e129bea82c9bae4cbc7c130c9205add400 git.pack.full=10Open pack map
fetchtree:0200919 B · hit1 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=1 git.response.bytes=919 git.response.cache=HIT git.response.duration_ms=1 git.fetch.filter=tree:0 git.fetch.wants=800d30ba8923860bfc460ca884b7f9ba22083588 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=919 git.pkt.payload.max=892 git.sideband.band1.bytes=892 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=1 git.pack.bytes=892 git.pack.trailer=5323b9266eea5ded637285d1c5320699f12be76eOpen pack map
fetch2001.7 KiB89 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=89 git.response.bytes=1784 git.response.cache=MISS git.response.duration_ms=89 git.fetch.wants=10c3df3a8c92a25952acad841cff4b280acb9338 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=4 git.pkt.data=3 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=1784 git.pkt.payload.max=1757 git.sideband.band1.bytes=1757 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://github.com/ivarvong/ply
- Ref
- refs/heads/main
- Commit
- 19912563f540228593df0c489082e5e2508e21e4
- cf-ray
- a5e0e96d9d1fa140
- Request
- 9329666a…
- Protocol
- v2 · sha1
- Agent
- git/github-9922ec520325-Linux
- Filter
- advertised
- Fetch
- shallow wait-for-done filter
- Capabilities
- agent ls-refs fetch server-option object-format