Flag a Server whose disk is nearly full in status and server ls #3204
All Vouch review confidence checks passed
Residual risk 0.22 = Change Risk (0.52) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.52 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3204"
general
weight: 0.35
nick-potts
Fixes #3163
Summary
ployz statusandployz server lsnow flag a Server that is nearly out of disk space, before a deploy fails on it. Before, nothing flagged a full disk until a pull failed.InspectTelemetry::Full. That is the same requestployz server showalready makes. The read isClient::observe_docker_disksin crates/ployz/src/cluster.rs, which skips a Machine that errors or takes longer than 3 s.DISK_FULL_FREE_BYTES, the line at which it blames a failed pull on a full disk.statusadds adisk_fullrow under needs attention, after the other Server rows.--jsongives the Server inmachineand the free space infree_bytes. It doesn't mark the check partial or change the exit code.server lsprints the same message as a warning. Under--jsonit lands in the warnings.docs/user/troubleshooting/deployments.md, "My server's disk is full", says what flags it and what it doesn't check.Not in this PR
/var/lib/containerdon its own disk. Inspect's host telemetry measures only Docker's root. Measuring containerd's store needs a daemon change.statusasks Cloud, so it checks no disk.Stable promise
There is no wire, Store or daemon change. The PR adds a CLI call to an RPC that's already shipped. Additive output only: a new attention reason
disk_fullwith a new subject shape{machine, free_bytes}, and a new warning line.DESIGN.md bets
statusinto a partial one.Evidence
-
handlers::server::show::tests::a_server_whose_docker_disk_is_nearly_full_is_named. With 30 MB free on machine-1, exactly 1 GB on machine-2, and no reading for machine-3, only machine-1 is named.-
handlers::status_servers::tests::status_names_a_server_whose_docker_disk_is_nearly_fullpins thedisk_fullJSON row.- All 132
status,linkandserver::showtests inployzpass, andcargo clippy -p ployz --all-featuresis clean.fallocateuntil 287 MB was free.After the filler was removed, neither command flagged anything.
server lstook 0.28 s.Review
- BUG (Codex): "Deploys onto it fail" was false, since a cached image still deploys. Now it reads "Pulling an image onto it can fail".
- NIT (Opus): a hung Server cost about 6 s, because the disk read ran after the other reads. Now they run at the same time.
- GAP (both): the unit tests skip the RPC path. The 1 GB boundary is now in the test. The RPC path is proven on Incus above.
- GAP (both): the docs listed only one case the check skips. They now list all of them.
- Dismissed: 999.5 MB prints as "1000 MB" (cosmetic). Folding the read into
server ls's storage Inspect would put it behind the storage capability check.- Opus confirmed: Down and unarrived Servers are skipped, disks are still checked while a deploy rolls out, and nothing in
dashboard/reads these attention reasons.machines()errors still map toUnreachedas before, that both joins keep the read order, and that the docs match.Merge Danger
Door: two-way
Blast Radius: CLI
statusandserver lsoutputOne extra read-only Inspect per reachable Server, and a new advisory row or warning only when a Server has under 1 GB free.