diff options
| author | dev <dev@localhost> | 2026-11-20 18:04:59 +0000 |
|---|---|---|
| committer | dev <dev@localhost> | 2026-11-20 18:04:59 +0000 |
| commit | a97e5dc40069b0dc13c28fa9ab3202c8e5012038 (patch) | |
| tree | d218f1d5463bca338cdee2d41a41de0f3cbd9c72 /tests/architecture-budget.json | |
| parent | 466f6f7e223f56670feabb0737cf97f708aa45f2 (diff) | |
| download | aur-build-a97e5dc40069b0dc13c28fa9ab3202c8e5012038.tar.gz aur-build-a97e5dc40069b0dc13c28fa9ab3202c8e5012038.zip | |
sandbox, pipeline: close what only your own module was ever meant to name
Sandbox exported 35 items and 8 of them were named by nobody at all — not by a
caller, not by a test. `Frame`, `read_frame`, `write_frame`, `hex_bytes`,
`unhex` and `MAX_FRAME_BYTES` are the wire protocol, and the protocol is
sandbox's: the agent, the remote client and the loopback all speak it from
inside. Exporting it advertised a second way in that nothing used and everything
would have had to keep compatible. `LoopbackSandbox` and `RemoteSandbox` are
the same story — handles handed out by a constructor nobody calls by name.
Pipeline exported its step machine. `run_step`, `log_line`, `sweep_render_dirs`,
`from_candidate`, `from_release` and the four types they pass around
(`Collect`, `CollectedPkg`, `SourceIdentity`, `StepResult`) were all internal
plumbing reachable from `main`, which only ever wanted `run`, `Outcome`,
`enqueue_for_candidate`, `enqueue_manual_rebuild`, `publish::reconcile` and
`dispatch::Pool::spawn`.
sandbox.pub 35->27, pipeline.pub 30->21, and both modules now have zero items
named by nobody: what is left public is public because a test names it, which
is the allowlist the budget records rather than a hole in it.
Clippy caught what the tests did not: `Ctx::src` was a `pub` field of the newly
private `SourceIdentity`, a public face on a private type. The field narrowed
with the type. Re-widening `SourceIdentity` to silence it would have undone the
point.
The diff is visibility keywords only — no step id literal, no frame variant, no
wire byte changed. 277 passed / 0 failed across 36 binaries, including
remote_agent, failure_modes and the kata tier; clippy -D warnings clean.
Diffstat (limited to 'tests/architecture-budget.json')
| -rw-r--r-- | tests/architecture-budget.json | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index 5559831..0b4d82a 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -188,14 +188,14 @@ "test": 3 }, "pipeline": { - "dead": 15, - "deadonly": 9, + "dead": 6, + "deadonly": 0, "glob": 0, "largest": 481, "largest_file": "src/pipeline/steps.rs", "lines": 1339, "priv": 2, - "pub": 30, + "pub": 21, "test": 6 }, "pkginfo": { @@ -243,14 +243,14 @@ "test": 5 }, "sandbox": { - "dead": 23, - "deadonly": 8, + "dead": 15, + "deadonly": 0, "glob": 0, "largest": 347, "largest_file": "src/sandbox/kata.rs", "lines": 1175, "priv": 3, - "pub": 35, + "pub": 27, "test": 15 }, "shims": { |
