Skip to content

test: trim the suite - #100

Merged
HaoZeke merged 5 commits into
developfrom
test/trim-suite
Nov 26, 2026
Merged

HaoZeke merged 5 commits into
developfrom
test/trim-suite

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Commits:

  • test: drop four checks the suite already makes
  • test: fold near-copy cases into six tables
  • test: fake the host PATH. Fake the doc file. Stub connect.
  • test: shorten sleeps, samples, and tempdir spawns
  • test: make the signal and link checks deterministic

Block the child on a pipe before setsid, call stopGroup,
then release the pipe. One cancel before the group is made,
with no 1 s poll. lockExclusive gets one SIGUSR1 and must
return error.TimedOut at or after the deadline, with no
upper bound; the timed acquire drops that bound too.
groupAlive retries one injected EINTR and does not signal
the process. Argparse fuzz is pinned to Python 3.14.10 and
seed 1652137504, and compares the choice set rather than the
quotes. External doc links are a report and do not fail the
build.

Zig tests: 265, unchanged. zig build test run step:
4 s to 624 ms.

Remove the non-Linux `NSRNODATA` and `NSRCNAMELOOP` strerror
case, the `which` fixture that repeats the boundary test, and
the listed NFSv4 and General Parallel File System `EINVAL`
refusals. Those two models are already one pass of the models()
loop.

Zig tests: 285 to 281.
One scratch directory drives the named-pipe refusals of openRegular,
appendLine, copyTo and both moveAcross paths. Each group is one
table. The groups are the POSIX mask pairs, the unlisted `EINVAL`
models, the closed standard streams, the whichShutil path rows, and
the moveAcross directory syncs. Every previous case stays a row.

Zig tests: 281 to 265.
An unset PATH is resolved through `default_path`, pointed at a
temp directory that stores an executable `sh`. `describe` keeps
the errno strings and no longer reads `COMPAT.md` from the
process cwd. `send` uses an injected `connect` that returns
`ECONNREFUSED` instead of two connects to missing sockets.

Zig tests: 265, unchanged.
Pin the argparse fuzz seed and draw 300 vectors from the pool.
Hold and try the flock for `30 ms`. Fault gzip before the rename
on `4 KiB` instead of compressing `6 MiB`. Bound the proc
deadlines at `50 ms`, the kill grace at `20 ms`, and the lock
waits at `30 ms`. Drop the pause after the noisy helper's pid
file appears, and stop the descendant script after `0.05 s`.
Stream one byte past the cap. One tempdir process per test reads
every environment from stdin. The pre-group cancel is one
iteration.

Zig `zig build test` wall on this machine: `4 s` to `888 ms`.
Zig tests: 265, unchanged. Python methods: 48, unchanged.
Block the child on a pipe before `setsid`, call `stopGroup`,
then release the pipe. One cancel before the group is made,
with no `1 s` poll. `lockExclusive` gets one `SIGUSR1` and must
return `error.TimedOut` at or after the deadline, with no
upper bound; the timed acquire drops that bound too.
`groupAlive` retries one injected `EINTR` and does not signal
the process. Argparse fuzz is pinned to Python 3.14.10 and
seed 1652137504, and compares the choice set rather than the
quotes. External doc links are a report and do not fail the
build.

Zig tests: 265, unchanged. `zig build test` run step:
`4 s` to `624 ms`.
@HaoZeke
HaoZeke merged commit e0e309a into develop Nov 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant