Skip to content

slim the tests to what each alone checks, and make the rest deterministic - #372

Merged
polyominal merged 14 commits into
mainfrom
slim-tests
Nov 23, 2026
Merged

polyominal merged 14 commits into
mainfrom
slim-tests

Conversation

@polyominal

@polyominal polyominal commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

The tests now check what only they check, and no outcome or snapshot depends on how loaded the
machine is. A test that verified a fake, pinned incidental output, or repeated another test or a
live suite is deleted. Each test that a busy machine could fail now waits on an event instead of
a span of real time. It is test code, nextest's configuration and docs/dev/testing.md alone:
no production code changes. One commit per crate, so that a reviewer can drop one.

40 tests are deleted and 1 is added, with 4 cases of other tests gone. The diff is
+773 −2,920 lines.

What goes, and what still covers it

Each commit message names, for each deleted test, the test or live suite that still covers its
behaviour.

Crate Tests deleted Lines (+/−)
runtime 16 of 114 +109 −1,104
pumpkin 12 of 160 (6 controller, 6 help SVGs) +116 −675
sandboxd 1 of 20, and 3 cases +123 −156
stdx 5 of 33 (1 added) +21 −92
docker 2 of 14 +5 −95
gateway 1 of 15 +138 −101
route 1 of 15 −23
library 1 of 17 +194 −315
xtask 1 of 39 +20 −80
lang, engine, tls, test-support, docs 0 +47 −277
  • runtime: deleted exits, ops, call_leases, spans_providers,
    model_requests, now_calls and late_ops, the happy paths that cargo xtask live docker
    runs (runs_on_docker, ops_on_docker, final_call_leases_on_docker) or
    that other simulated runs cover. Also deleted the duplicates reaped_past_one_undeletable,
    sweep_unrecorded, reported_past_the_deadline and reported_past_the_hard_end. The stand-in's
    model_upstream_refusals goes, as route's forward covers it. So do
    interrupted_publishing_sandboxd and interrupted_publishing_image, and
    missing_private_listener, a refusal that pumpkin run never lets a run reach.
    model_provider_recovers is folded into model_provider_down. Conformance runs one subject, the
    simulated provider. The simulated private and Listen meetings go with it. live ec2 and
    live modal run those meetings. lease_transfers sets its own umask, 077, and shows the modes
    it keeps.
  • pumpkin: deleted cut_upload_finishes_on_the_original_connection (256 MiB under the 5 s
    cap) and the duplicates ls_lists_other_formats_unread, ls_carries_on_after_a_cut and
    view_installs_its_serve_there. Also deleted view_cancels_on_the_controller,
    follow_prints_the_outcome, the shell-startup case of ls_refusals, and the help SVGs of
    controller job, controller boot, controller serve, and pumpkin-admin boot-all, idle
    and members, which only units run. lost_on_docker waits for agent_started, as
    signaled_on_docker does. Scratch::program unsets CLICOLOR_FORCE, NO_COLOR and
    PUMPKIN_WORKSPACE. The two remaining_seconds are masked, and the send tests show what they
    are about, not the lines every started job prints.
  • sandboxd: deleted model_answers, the Tcp and Listen runs of puts_runs_and_collects
    (over_tcp and listening cover the meetings), and listening's case of a peer that trickles
    its greeting. A Listen start dials only once /proc/net/tcp lists the address. end() waits
    under HUNG. sandboxd runs with a PATH that lacks nvidia-smi. as_root_with_user waits for
    the exact docker top listing its snapshot shows. Its snapshot drops CapBnd, and two collect
    snapshots drop modes that the umask decides.
  • gateway: deleted arrivals, which the runtime's simulated runs cover against the real
    gateway. deadlines, /stale, registrations, dials and untrusted end their deadlines on
    the fake sandbox's events, not on 50-900 ms of real time. Where an event ends a deadline, the
    session's test clock stands at its origin until the event and reads a fixed time from then on.
    Its look is 10 ms, so the gateway, which waits no longer than a look, reads the clock again.
  • stdx: deleted capped_stderr, hangs, exited_silently, unadvised and caught.
    unstarted's case of an unenterable directory is its own test, unenterable, which skips where
    the mode doesn't bind, as root.
  • docker: deleted ready and failed_start, which the provider suite's broken,
    unreachable_sandboxd and unreachable_image cover. freezes_what_it_left waits for the exact
    listing it shows.
  • route: deleted upstream_url_with_query.
  • library: deleted codex::efforts. The roles tests show no digests, and Codex's
    configuration by the lines that vary or that Pumpkin fills. bundled asserts its list without a
    copy. The layer tests show the first line of each version.
  • lang: the conformance snapshot drops its histogram of problem messages.
  • xtask: deleted figure_of_crates. ci already checks the real figure.
    release_concurrent waits for both launchers without a 2 s bound. diff masks Git's blob IDs.
  • engine: builds masks the daemon's words, which vary with Docker's version.
  • tls: carries_both_ways keeps the case that sends both ways at once. refused_peers gives
    1 ms.
  • nextest and test-support: in the live profile, the tests that reserve cores share a test
    group of one thread. The suite's and with_room's waits for room end at 4 minutes, under the
    profile's 300 s kill.
  • docs/dev/testing.md: the help SVG rule exempts commands that only units run. A stand-in
    may serve a documented network API that Pumpkin speaks as a client, as cargo's tests serve a
    registry
    over crates.io's protocol. A behaviour that a live suite verifies needs no test through a
    stand-in.

Left with no test

These are deliberate:

  • outcome.json's usd and per-provider usage;
  • a SIGTERM during a publish;
  • the private and Listen meetings in ci (live ec2 and live modal run them);
  • the upload that goes on over the open connection;
  • a view's cancel on a controller, and wait --outcome of a controller's run;
  • sandboxd's exit on a gateway that breaks the protocol;
  • a peer that trickles its greeting to sandboxd, and the sandbox's deadline capping a greeting.
    The gateway's registrations and hellos still meet its own hello bound;
  • the route's 502 for an upstream URL with no room for the query;
  • catch(KILL)'s refusal;
  • a failed Docker start leaving nothing, and a sandboxd path that isn't UTF-8;
  • five of Codex's eight efforts one by one.

These stay tested: an unreachable model upstream and its recovery (model_provider_down), the
message for a refused key (enrolment_refused), quoting the controller's standard error when a
link fails (serve_refuses_member), the client's checks of a malformed reply
(view_answers_502_for_a_reply_it_cant_read), and the guard against answering an op on another
session (another_sessions_op).

One known race stays. sandboxd's unlistened() frees a port for sandboxd to bind, and another
process could take it in between. No test has been seen to fail on it, and the Listen meeting has
no other check in ci.

Dependencies

No pub item or crate is added.

  • runtime's tests drop the tls dev-dependency, which only the simulated TLS dial used.
  • runtime's tests enable rustix's fs feature, as sandboxd's do, for lease_transfers' umask.
  • library's tests drop the sha2 dev-dependency, which only the digests used.

Checks

  • cargo xtask ci passes on the head. Its tests take 5.6 s of wall time in nextest, 468 of them,
    against 8.9 s for 505 on the base. The slowest test is now controller::record_copy, at 1.8 s,
    where it was the runtime's conformance suite, at 5.6 s.
  • cargo xtask live docker passes, 36 tests in 90 s, with the core-reserving tests one at a
    time.
  • No paid run. The change is test code alone, and no provider's code changes.

AI-assisted: claude-opus-5.5

Base automatically changed from sim-start-waits to main November 23, 2026 13:55
The runtime's integration tests run whole runs against the simulated
provider and snapshot each run log. Many of them repeated a run that
another test, or a live suite against a real provider, already makes.
Each one costs a long snapshot to read on every change to the log.
rust-analyzer keeps few tests at its outermost boundary for the same
reason, since typed messages leave little to break there:
https://github.com/rust-lang/rust-analyzer/blob/55effabb762bbd0a21c5af530ea447bd6772881d/docs/book/src/contributing/architecture.md#L392-L398

Deleted from execute.rs, each with what still covers it:
- exits: an exit ending the work phase is in every test whose agent
  exits (deleted_by_the_sweep, unlistable, syncs, ...). The usd and
  per-provider usage in outcome.json are left without a test.
- ops: `cargo xtask live docker` (ops_on_docker). A payload over its
  limit is refused in refusal_held_by_a_slow_sync, and a call past its
  timeout, with polls, errors in job_calls.
- late_ops: ops_on_docker answers from the machine's clock.
  started_late and refusal_held_by_a_slow_sync show each remaining
  time exactly on the scripted clock.
- call_leases: final_call_leases_on_docker, whose target's lease ends
  with its call and leaves nothing listed, and
  lease_starts_by_its_holders_end for a job's target.
- now_calls: decision's tests refuse a now call whose argument doesn't
  read or whose body fails, and schema's tests give the argument's
  message. Each test that ends with a finalizing submit applies a now
  call in its step.
- spans_providers: sweeps_each_provider, watches_each_provider and
  reaped_past_a_failing_provider place roles on two providers. The
  private and Listen meetings are run by `cargo xtask live ec2` and
  `cargo xtask live modal`.
- model_requests: runs_on_docker routes an agent's and a final call's
  model requests. model_requests_kept_whole rebuilds requests byte for
  byte. final_call_model, call_and_agent_model and budgets_spent count
  tokens. route's `forward` covers a rate limit sent with a 200 and a
  hang-up.
- model_upstream_refusals: route's `forward` refuses a 403 and leaves
  the route open, and a 401 ends the route and bars the next request.
  call_key_refused and
  judge_sees_missing_inputs_and_each_agent_keeps_its_model_failure_and_usage
  report a refused key as the agent's route failure.
- reaped_past_one_undeletable: reaped_past_a_failing_provider, whose
  reap deletes one sandbox and fails the other.
- sweep_unrecorded: deleted_by_the_sweep fails the sweep's delete, and
  sync_fails fails the run on a record's failed sync.
- reported_past_the_deadline: taken_past_the_deadline accepts an op
  observed before the deadline and taken after it.
- reported_past_the_hard_end: abandoned, stopped_past_the_hard_end and
  torn_down_past_the_hard_end record a report past the hard end after
  the abandon.
- interrupted_publishing_sandboxd and interrupted_publishing_image
  pinned the simulated provider's list of what it published. A SIGTERM
  during a publish is left without a test. The other interrupted_*
  tests interrupt each later step.
- missing_private_listener: no caller reaches the runtime's refusal.
  `pumpkin run` binds a private listener whenever a provider meets
  privately, and refuses the run first when it can't.
- model_provider_recovers: folded into model_provider_down, whose
  upstream now fails, answers, then fails again. Its route failure
  counts from the first failure after the answer.

The conformance suite runs on the simulated provider alone. Its
listening subject ran the Listen meeting, which `live ec2` and
`live modal` run against real providers. Its freeing subject freed an
ended sandbox in the provider itself. `unstarted` still asserts that
a sandbox left out of the list once it ends gives the same run as one
listed as ended.

lease_transfers sets its own umask, 077, as the sandboxd and
controller tests do for the modes they show. Its snapshot now shows
the runner's listing of what was put. Each entry keeps its mode there,
so the test checks the lease's mode restore under a umask that would
narrow every mode.

The deletes leave these helpers dead, so they go too: the simulated
provider's private and Listen meetings (its TCP and TLS dials and the
registration grant), the run's private listener and
`Also::WithoutListener`, `check_polls`, the publish interruptions and
the "it published" line, `SimHost::failed_sync_of`, the stand-in's
silent, rate-limited and forbidden answers, and `calling_workflow`'s
failing now grant. The runtime drops its `tls` dev-dependency, which
only the TLS dial used, and enables rustix's `fs` feature for its
tests, which `umask` needs.

AI-assisted: claude-opus-5.5
Delete the controller tests that duplicate another test, or that a
loaded machine fails:
- cut_upload_finishes_on_the_original_connection moves 256 MiB, which
  the upload's thresholds force, and hashes it twice, which a busy host
  can push past nextest's 5 s cap. A cap of 15 s or more would put it past the 15 s at
  which `run` prints its progress. The upload that goes on over the open
  connection loses its test.
- ls_lists_other_formats_unread: ls's lists_other_builds_unread shows
  the same row of a record of another build, and `serve` lists with the
  same code.
- ls_carries_on_after_a_cut: the link's retry after a cut is shown by
  follow_carries_on, send_carries_on, reap_after_a_cut and record_copy.
- view_installs_its_serve_there: ls_installs_its_serve_there installs
  the same serve through the same link.
- view_cancels_on_the_controller and follow_prints_the_outcome: a cancel
  from the view on a controller, and `wait --outcome` of a controller's
  run, lose their tests. The view's cancel and `wait --outcome` of a
  local run keep theirs.
- ls_refusals' hello that a shell's startup file writes, and the fake
  `ssh`'s `answer` that wrote it: view_answers_502_for_a_reply_it_cant_read
  shows the same refusal of a frame that `serve` doesn't send.

Delete the help snapshots of the commands that only a unit runs, which
no person reads: `controller job`, `controller boot`, `controller serve`,
and `pumpkin-admin`'s `boot-all`, `idle` and `members`.

Keep one test each of the message for a refused key (enrolment_refused),
of quoting what the link wrote to its standard error
(serve_refuses_member), and of the checks of a reply the client can't
read (view_answers_502_for_a_reply_it_cant_read).

Make the rest steady:
- Each command that a test runs has `CLICOLOR_FORCE`, `NO_COLOR` and
  `PUMPKIN_WORKSPACE` unset, beside `COLUMNS`, so that the machine's
  environment changes no colour and no workspace. The help tests no
  longer unset them on their own.
- lost_on_docker kills the driver once the run log records the agent's
  start, as signaled_on_docker does. A kill before it left the summary
  without the agent's line.
- with_room waits four minutes for room on the machine's cores, below
  the 300 s at which the `live` profile kills a test, so that a crowded
  machine fails with the reservation's refusal.
- writes_only_in_its_workspace and final_call_leases_on_docker mask the
  `remaining_seconds` of the agent's call, which the run's start moves,
  as they read the agent's standard output, so that the agent's exit
  stays `sandboxctl`'s.

Narrow the snapshots to what each test is about. A test of how a task
is sent shows its status and what `run` says of the sending, not the
lines that every started job prints, which keys_on_standard_input shows
whole. ls_installs_its_serve_there shows what `ls` says of the install,
not its listing. serves_the_page shows how each kind of file is served,
once, and asserts that each module is preloaded, so that a file added to
the page changes no snapshot. cargo's tests elide the lines a test isn't
about, and assert only the success of a step that sets up another:
https://github.com/rust-lang/cargo/blob/111443f3dc4d82a65e2306a93028f122406401c1/tests/testsuite/build.rs#L900-L910
https://github.com/rust-lang/cargo/blob/111443f3dc4d82a65e2306a93028f122406401c1/tests/testsuite/build.rs#L1046-L1057
https://github.com/assert-rs/snapbox/blob/62b0cda401c0d8a49bedb4f1f727eb762775f354/crates/snapbox/src/assert/mod.rs#L48-L52

AI-assisted: claude-opus-5.5
The roles tests of the five harnesses showed each file's sha256 beside
its text. A digest pins the same bytes as the text it sits by, or
hides a case's text behind a number that a failing diff can't
explain. Codex's first case also showed its whole `config.toml`,
nearly all of it text that `codex.star` holds as it is. The tests now
show each file by its mode and path, and Codex's configuration by its
lines that name a model, the lines in which its cases differ, with the
first case's lines that the harness fills from Pumpkin's values: the
model endpoint's URL and the count of agents that share its requests. `bundled` asserted that `library::FILES` lists every
file below `library/`, sorted, and then showed the same list again as
a snapshot: the assertion stays, and the copy goes, with the `sha2`
dev-dependency.

`codex::efforts` went through each of the eight reasoning efforts to
see each reach `model_reasoning_effort`. `codex::roles` covers three of
them and `codex::refusals` the list of the efforts taken, so five
efforts are no longer evaluated one by one.

The layer tests, which `cargo xtask live docker` runs, showed all that
`bfs --version` prints, its compiler flags among them, and Pi's
thousands of files by the count of each mode. They now show the first line
of each version, as `qwen_code_layer` shows ripgrep's, and the count
of Pi's files that aren't root's or are writable, as
`qwen_code_layer` counts the package's.

AI-assisted: claude-opus-5.5
`ready` pinned the engine's report keys and the host's offers with
every value masked, so it checked only that serde writes the struct's
fields. `failed_start` started sandboxes from a missing, an unexecutable
and an unpulled `sandboxd` or image, and the shared provider suite
already runs each of those three against the Docker provider in `suite`
(`Locals::broken`, `unreachable_sandboxd`, `unreachable_image`). Its
fourth case, a `sandboxd` path that isn't UTF-8, and its check that a
failed start leaves no container go untested. The four roles and the
`redact` helper that only it used go with it.

`freezes_what_it_left` waited until `docker top` listed two `sleep 600`,
which can hold while the subshell that forks one is still listed, and
the snapshot would then show an extra entry. It now waits for the
exact listing that the snapshot shows.

Both tests need a Docker engine, and `cargo xtask live docker` runs
them.

AI-assisted: claude-opus-5.5
`builds` showed the Docker daemon's "invalid reference format" message
for an uppercase repository, whose words vary with Docker's version.
It now shows the refusal up to `failed with`, and what to do after it,
as `report` already shows `docker context inspect`'s refusals.

AI-assisted: claude-opus-5.5
The conformance test showed, beside each suite's count of outcomes and
the list of wrong results, how many runs ended with each problem
message, about 220 lines that change with any rewording of a refusal.
A refusal's text has its own tests in `lang`, and what the suites pin
is that no program means something other than the suite says. The
histogram and the helper that keyed it go.

AI-assisted: claude-opus-5.5
`release_concurrent` gave its two launchers 2 s to reach the cold
cache's lock and then asserted that both had. On a loaded machine the
second could be late and the test failed. It now waits until the
probe has seen both, or until a launcher has ended, which neither can
while the test holds the gate unless it fails first.

`diff` showed Git's blob IDs of the files it wrote. They are
incidental to what the test pins, the diff's files and hunks, and they
stand masked as `[HASH]`, as cargo's tests mask hashes:
https://github.com/rust-lang/cargo/blob/111443f3dc4d82a65e2306a93028f122406401c1/crates/cargo-test-support/src/compare.rs#L220-L238

`figure_of_crates` drew a made-up workspace and pinned its SVG.
`cargo xtask ci` already checks that `docs/figures/crates.svg` is what
`cargo xtask figures` draws from the real workspace, and a change to
the drawing shows in that file's diff, which a reviewer reads as a
picture.

AI-assisted: claude-opus-5.5
The Docker provider reserves whole cores in a ledger that every
process on the machine shares. The provider suite waited up to 10
minutes for room, and the `live` profile kills a test at 300 s, so on a
machine with few cores, beside other live tests holding cores, a test
failed as a timeout that named no reason.

The tests that reserve cores, the Docker provider's and `pumpkin`'s
`driver` and `run` tests on Docker, now share a nextest test group of
one thread in the `live` profile, so that they never wait on each
other. The suite's wait for room, which another process can still
take, ends at 4 minutes, under the kill, so that a test that never gets
room fails with the provider's refusal. `pumpkin`'s `with_room` takes
the same bound. The bound is on each reservation, so a test that
reserves more than once can still meet the kill, but only while
another process holds the cores it needs.

AI-assisted: claude-opus-5.5
Two rules of `docs/dev/testing.md` change.

The help of every command had an SVG snapshot, those that only a
systemd unit or sshd's forced command runs included. Nobody reads
that help, and its snapshot only slowed changes down. The rule now
asks for the help of each command a person runs.

"NEVER add a stand-in that answers for another program" forbade the
model route's stand-in, which serves the model providers' wire formats
to the runtime's and the route's tests. Those formats are documented
interfaces that Pumpkin speaks as a client, and a stand-in that serves
one is what cargo's tests do for crates.io's registry protocol:
https://github.com/rust-lang/cargo/blob/111443f3dc4d82a65e2306a93028f122406401c1/crates/cargo-test-support/src/registry.rs#L790-L834
The rule now makes that the one exception. A new rule states what the
other one implied: a behaviour that `cargo xtask live` verifies needs
no test through a stand-in.

AI-assisted: claude-opus-5.5
Several gateway tests showed which of two timeouts a request met, and
that outcome hung on how much real time passed under 100 ms or 50 ms
bounds. A loaded machine could flip it.

- The sessions to the fake sandbox now run on a test clock, `Still`,
  which reads its origin until the fake sandbox writes a `stalled`
  marker in its case's directory, and a fixed time, `EVENT`, from then
  on. `deadlines` and the `/stale` case of `sandbox_model_requests` give
  `EVENT` as the deadline of each request that the sandbox's stall must
  end, and every other request keeps a `hung()` deadline, which the
  clock never reaches. A wait on `Still` blocks 10 ms at most before it
  reads the clock again, and learns of the marker only then. The fake
  writes the marker once it has read the request, so a stalled freeze
  can only miss its answer. A stalled put or response gets a new
  `stall_in_frame`: the fake reads one byte of a frame of a full 1 MiB
  body, which is more than the connection buffers, then stalls. So the
  gateway is still writing that frame as the deadline passes, and the
  outcome is always "didn't take what was sent". A tree that never ends
  sets the marker after four frames, past the three parts of a tree
  that the gateway holds. With full bodies, the reader is then left
  waiting on the request's queue.
- In `registrations`, every hello goes to a listener with the
  production `HELLO_TIMEOUT`. The peer that stays silent gets a
  listener of its own at the 50 ms bound, the only outcome it can have.
  `unchecked` now pauses 30 ms instead of the hello bound plus that.
  The pause just makes it likely that the hellos are read before the
  checks come, and no outcome rests on which comes first.
- `dials`' "nothing listening" takes a `Still` whose event is its
  second read, which comes once the first dial has failed, as
  `stopped_accept` counts its looks, in place of 300 ms that had to
  outlast one dial and end before the 1 s redial. `untrusted`'s TLS
  refusal can't be retried and fails at once, so it gets `hung()`, not
  900 ms.

`arrivals` is deleted. The order in which ops, exits and model requests
arrive is also covered by the runtime's tests, whose simulated sandboxd
speaks the protocol to the real gateway, and by `cargo xtask live
docker`. The stalling sandbox in its third case is still covered by the
stalled cases of `deadlines`.

`another_sessions_op` stays, and so does its `answer_elsewhere`. It is
the one check that an op answered on another session is refused.

AI-assisted: claude-opus-5.5
- A sandbox that listens is dialed only once `/proc/net/tcp` shows its
  address in the LISTEN state, under `hung()`, as the Docker provider's
  tests read that table. A dial that came first cost the 1 s redial,
  or 3 s for two.
- `end()` waits for the session's processes to leave under `HUNG`, as
  its other waits do, not under 2 s.
- sandboxd runs with a `PATH` of its own: links to the few programs
  that it and the tests' commands run, as the launcher tests' `lacking`
  fixture builds one. `nvidia-smi` isn't among them. On a GPU host the
  hello would otherwise name the GPUs, changing the hello snapshots,
  and each start would probe them for up to 10 s.
- `unlistened()` keeps freeing a port for sandboxd to bind. Another
  process may take that port first, a race the tests accept.
- The collect snapshots of `reading_while_collecting` and
  `collects_one_file` show a file's path and size, not its mode, which
  the umask decides and `modes_and_stdin` shows. The helper that set
  mode 0664 goes.
- `as_root_with_user` waits for the exact `docker top` listing that its
  snapshot shows. Before, it waited for two `sleep 600`, which can hold
  while the subshell that forks one is still listed. Its status lines
  drop `CapBnd`, the Docker default bounding set, which sandboxd leaves
  alone: what sandboxd drops shows as the zero effective, permitted,
  inheritable and ambient sets.

Deleted:
- the case of `listening` whose peer trickles its greeting. It had
  1-2 s of real time before the sandbox's deadline, in which sandboxd
  had to start, bind and greet the peer. With a deadline far off, only
  sandboxd's 15 s bound on a greeting turns the peer away, which is too
  long for a test that ci runs. A peer that trickles its greeting goes
  untested in ci, and so does the sandbox's deadline capping a greeting.
  The gateway's `registrations` and `hellos` still meet its own hello
  bound, and `cargo xtask live ec2` and `cargo xtask live modal` run
  the Listen meeting;
- the Tcp and Listen runs of `puts_runs_and_collects`. The put, run and
  collect is the same over every meeting, and `over_tcp` and
  `listening` cover the meetings;
- `model_answers`, a fake gateway answering a model request that
  sandboxd never sent. The gateway's end never sends one, and
  sandboxd's exit on a gateway that breaks the protocol goes untested.

`as_root_with_user` needs a Docker engine, and `cargo xtask live docker`
runs it.

AI-assisted: claude-opus-5.5
`carries_both_ways` sent 8 MiB up, then 8 MiB down, then 8 MiB each way
at once, which in a debug build comes near nextest's 5 s cap.
Only the last case can deadlock a relay that serves one direction at a
time, and it carries both directions anyway, so it alone stays. It is
followed by the shutdown that the server's end reads as the end.

`refused_peers` gave a silent peer 200 ms, which can only expire. It now
gives 1 ms, the floor for a deadline that a test chooses.

AI-assisted: claude-opus-5.5
`upstream_url_with_query` built a 64 KiB upstream URL so that adding the
request's query passed the HTTP client's URI limit, then pinned the 502
that the route gives. The limit is the client's (`ureq`), not the
route's, and no configured upstream URL comes near it. The 502 for an
upstream URL that can't take the query goes untested.

AI-assisted: claude-opus-5.5
…y alone

Deleted, each a case that another test already covers:
- `hangs`, which `leaves` covers: a run killed at its bound, with the
  process it started killed too;
- `capped_stderr`, the standard-error twin of `capped`, through the
  same capture;
- `exited_silently`, the case of exiting with nothing on standard
  error, which `fed_unread` and `signalled` show;
- `unadvised`, which showed each failure's message without its advice.
  `exited`, `fed_unread`, `discarded`, `unended`, `late` and `unstarted`
  pin the whole messages, and the engine's and the CLI's job tests show
  the unadvised ones that their users print;
- `caught`, a SIGTERM that the process sends itself, which the
  runtime's `interrupt` tests catch through `stdx::signal`.
  `catch(KILL)`'s refusal goes untested.

`unstarted` failed when run as root: root may enter a directory of mode
0600, so the run it expected to fail started. That case is now a test
of its own, `unenterable`. Where the mode doesn't bind, as for root, it
returns without a check, as git's test suite does under its SANITY
prerequisite:
https://github.com/git/git/blob/fb255012acbcbe81189cb8014da0280b09c66ecc/t/test-lib.sh#L1876-L1905

AI-assisted: claude-opus-5.5
@polyominal
polyominal marked this pull request as ready for review November 23, 2026 13:56
@polyominal
polyominal merged commit 2d868f1 into main Nov 23, 2026
@polyominal
polyominal deleted the slim-tests branch November 23, 2026 14:01
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