summaryrefslogtreecommitdiffstats
path: root/tools/test-surface-reasons.json
blob: 3ac958573cccd63ba2435c00caa22ec327b8d7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
 "config.TestHooks": "the `hooks` field is already gated; the type and its impl are not, so they compile into a release build that can never read them.",
 "config.shared_workspace": "`Config::validate` calls it at config.rs:226; tests/kata.rs and tests/remote_agent.rs call it too and both need a fixture.",
 "config.store_dir": "the content-addressed store layout is used at config.rs:313 and :355; tests/invariants.rs pins it and needs a fixture.",
 "db.MIGRATIONS": "`db::migrate` iterates it at db/mod.rs:135; tests/db.rs asserts the list is ordered and complete.",
 "db.ReleaseState": "a row type named by twenty sites inside db; tests/pipeline.rs names it while driving a real pipeline.",
 "db.cas_accepted_release": "the compare-and-set on the accepted-release pointer; nothing in production performs that CAS today, but it is the primitive `accepted_release_for` is paired with.",
 "db.claim": "production leases with `claim_batch`; `claim` is called only by tests, so the release build need not compile it.",
 "db.set_setting": "a settings writer with no production caller; `setting`/`setting_i64` readers are used, the setter is not.",
 "db.shutdown": "`Writer::shutdown` is never called by the server; tests use it to quiesce the writer thread.",
 "db.snapshot_by_commit": "a snapshot lookup nothing in production performs.",
 "db.touch": "census false positive: `touch` appears in tests/shims.rs only inside a string literal. Narrow on its merits, not for the test tier.",
 "db.tx_for_tests": "already gated behind test-support \u2014 the pattern the rest of this table asks for.",
 "db.unapproved_index_entries": "an invariant query nothing runs; it needs `pub(crate)` diff internals to be useful, so it is gated rather than relocated.",
 "db.world_members": "a world-snapshot reader nothing calls; `put_world_snapshot` is the half production uses.",
 "http.Attention": "census false positive: named in crash.rs only inside a string.",
 "http.LogTail": "the SSE tail type; the live test that names it drives a real server.",
 "http.Page": "the render model, named by twenty sites in http; tests/mod.rs asserts on it directly.",
 "http.Panel": "a diff panel in the render model; tests/versions.rs asserts on its body.",
 "http.cookie": "the auth cookie helper; the tests that use it build no fixture, so they move into the module and it narrows.",
 "http.html": "census false positive: named in http.rs only inside a string.",
 "http.login": "the login route handler; same \u2014 its tests are harness-free and move with it.",
 "http.logout": "census false positive: named in http.rs only inside a string.",
 "http.redirect": "census false positive: named in http.rs only inside a string.",
 "http.route": "census false positive: named in http.rs only inside a string.",
 "ops.STAGING_GRACE_SECS": "the grace period the staging sweep applies at ops.rs:286; tests/ops.rs pins the value it must be.",
 "ops.build_success_rate": "computed inside the maintenance report at ops.rs:87; tests/ops.rs checks the arithmetic.",
 "ops.sweep_staging": "called by the maintenance pass at ops.rs:286; tests/ops.rs exercises it directly.",
 "pipeline.admissible": "the dispatch filter, called at dispatch.rs:86; tests/dispatch.rs pins which builds it admits.",
 "pipeline.dispatch_once": "one tick of the dispatcher, called by the scheduler loop at dispatch.rs:60; tests/dispatch.rs drives single ticks.",
 "pipeline.free_disk_mb": "the disk probe the dispatcher consults at dispatch.rs:106.",
 "pipeline.index_world": "the world-index step, used by the pipeline at mod.rs:255 and steps.rs:92; tests/kata.rs checks what landed in the index.",
 "pipeline.run_with": "the run entry point with an injected sandbox; production uses `run`, tests inject a fake.",
 "review.BulkRefusal": "the bulk-refusal payload, built and matched across approve.rs; tests/approve.rs asserts on it.",
 "review.LOW": "the risk floor, compared at risk.rs:94,189,195; tests/notices.rs pins where the floor bites.",
 "review.render_and_store": "intake renders through `review::intake::record`; this wrapper has zero callers in src and 17 in tests. Gated, not relocated: it needs the module-private diff renderer.",
 "sandbox.Exit": "the sandbox exit record, named across the backends; tests/failure_modes.rs asserts on it.",
 "sandbox.K8sSandboxProvisioner": "the kata provisioner impl; tests/kata.rs drives it directly.",
 "sandbox.KataBackend": "the kata backend; tests/kata.rs constructs it rather than going through `for_config`'s caller.",
 "sandbox.LocalAgentProvisioner": "the local agent provisioner impl; tests/kata.rs drives it.",
 "sandbox.LoopbackBackend": "the default backend; tests/failure_modes.rs constructs it to inject a fault.",
 "sandbox.ProvisionRequest": "kata provisioning internals; the test that names them needs no fixture.",
 "sandbox.Provisioner": "kata provisioning internals; same test.",
 "sandbox.RemoteBackend": "the remote backend; tests/remote_agent.rs constructs it against a real agent.",
 "sandbox.SandboxInfo": "the sandbox descriptor returned by the trait; tests/failure_modes.rs reads its fields.",
 "sandbox.for_config": "kata backend constructor; same test.",
 "sandbox.local_addr": "the agent's local address, read by the backend selection at mod.rs:120; tests/remote_agent.rs asserts on it.",
 "sandbox.provision_request": "kata request builder; same test.",
 "sandbox.reclaim": "kata reclaim path; the TTL test that names it needs no fixture.",
 "sandbox.sandbox_cr": "kata container-record shape; same test.",
 "sandbox.shared_for": "kata workspace helper; same test.",
 "shims.called_with": "reads the shim's invocation log, which only tests inspect.",
 "shims.invocations": "reads the shim invocation log; the shim writes it in production (mod.rs:112) but nothing in src reads it back.",
 "shims.manifest": "the shim manifest, read by `run` at mod.rs:161; seven test files read it to assert what a build did.",
 "shims.valid_db_arg": "the shim's `--db` argument validator; production calls it at mod.rs:510, tests check its verdicts.",
 "time.unpin": "the clock escape hatch; `pin`/`unpin` exist so a test can freeze time. Its only in-module mention is a unit test.",
 "time.virtual_sleep": "already gated behind test-support.",
 "time.virtualize": "already gated behind test-support.",
 "watch.StageBSlot": "the stage-B cache slot shape; tests/vcs.rs asserts on it while driving a real mirror.",
 "watch.needs_stage_b": "the stage-B predicate, consulted by detect.rs:101.",
 "watch.probe": "the upstream probe, called by detect.rs:95; tests/ops.rs and tests/vcs.rs both need a fixture.",
 "watch.sync_mirror": "the mirror sync, called by detect.rs:40; tests/detect.rs drives a real sync."
}