Repository navigation
test: trim the suite - #100
Merged
Merged
Conversation
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`.
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.
Commits:
connect.Block the child on a pipe before
setsid, callstopGroup,then release the pipe. One cancel before the group is made,
with no
1 spoll.lockExclusivegets oneSIGUSR1and mustreturn
error.TimedOutat or after the deadline, with noupper bound; the timed acquire drops that bound too.
groupAliveretries one injectedEINTRand does not signalthe 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 testrun step:4 sto624 ms.