Say a Service is pulling its image while a Deploy downloads it (#2879) #3188
All Vouch review confidence checks passed
Residual risk 0.33 = Change Risk (0.75) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.75 · 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
Sensitive Paths
sensitive_paths
0.075
Real PR Conversation Timeline
1 comments
"Review active on #3188"
general
weight: 0.35
nick-potts
Fixes #2879
Summary
While a deploy downloads its images,
ployz deploynow says so and names the image. Before, a multi-GB pull read onlywaiting 0/3andstill waiting: big (waiting 0/3)for minutes.waitingis also the word for a Service blocked on a dependency or on another Deployment, so a long pull looked like a stuck deploy.The CLI works this out from what the Config Store already records, with no new wire or Store state. The executor (
deploy/exec,pull_images) pulls every image on every Server, then runs the plan'sPrepareVolumesprelude, before any Server starts work on a Service. The Store records neither step (RowTrackerskips rows with no Service name). So a Deployment that isRunning, has its preview, has no build pending or building, and has no row pastPending(untargeted removal rows included) is pulling, or preparing Volumes when its plan has any.frame(crates/ployz/src/handlers/deploy/progress.rs) then gives each waiting Service row the detailpulling <image>, with the image taken from the preview's operations. When the plan prepares Volumes, the detail readspulling <image> or preparing Volumes. A Service under pull policyNeverpulls nothing and gets no detail.still waiting:line (crates/ployz/src/ui/progress.rs) now carries a row's detail after its word, such as(waiting 0/2, pulling …). A row with no detail reads as before.waiting, which is true again.docs/user/troubleshooting/deployments.md, "Following a deploy in the CLI", says a deploy first downloads every image and how that reads.Not in this PR
ensure_imageis a unary RPC to the daemon, so progress would need a streaming pull RPC. That's a wire change, which doesn't fit the soak or the stable promise.waiting. This change covers only the CLI.pulling <image>while other images download. Its own pull step is only a brief presence check, but the CLI can't tell it apart.Stable promise
No wire, Store, or daemon change. The derivation only reads rows the Store already records. Only CLI progress text changes: a detail on waiting rows during the pull, and the detail in
still waiting:lines.DESIGN.md bets
None changed. The CLI reads the same Store evidence. It names the stage the executor is in, which the evidence already implies.
Evidence
-
handlers::deploy::progress::a_service_whose_servers_pull_its_image_says_so. ARunningDeployment with arun_containerforpytorch/pytorch:2.5.1and its only row pending has the detailpulling pytorch/pytorch:2.5.1. Before:None.-
a_service_that_never_pulls_does_not_say_it_is_pulling. UnderNever, there's no detail.-
once_a_server_starts_work_no_service_is_pulling. With web running, neither web nor the still-pending api has a detail.-
a_removal_that_started_ends_the_pull. An untargeted removal that's running ends it.-
a_deploy_that_prepares_volumes_does_not_claim_only_a_pull. The detail ispulling … or preparing Volumes.-
ui::progress::tests::heartbeat_names_what_a_waiting_row_is_doing:still waiting: web on alpha (pending, pulling pytorch/pytorch:2.5.1).- All 71
progresstests inployzpass, andcargo clippy -p ployz --all-targets --all-featuresis clean.service add big --image pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime,set big.replicas=2 'big.startCommand=sleep infinity', thendeploy, with plain output timestamped:The pull detail held for the whole ~125 s download and cleared as soon as the Servers started work. This ran on the first commit. The review fixes only narrow the rule (no Volumes, and a
Missingpull policy, here), so this run's output is unchanged.Review
- BUG (Codex): the
PrepareVolumesprelude runs after the pulls, and the Store doesn't record it, so volume prep readpulling. Fixed: the detail saysor preparing Volumeswhen the plan has any.- BUG (Codex): a
NeverService readpullingwhile another downloaded. Fixed: no detail underNever. CachedMissingimages are left as a gap, noted above.- BUG (Opus, plausible): untargeted removal rows didn't end the stage. Fixed.
- GAP (Codex): the negative test didn't prove the stage clears globally. Replaced with a two-Service test.
- NIT (Opus): a doc comment had been split from
runtime_row. Restored.- Opus confirmed that the CLI-local runner records the all-Pending first snapshot, that built-image pushes happen before
Prepared, and that queued and cancelling states are excluded. Thestill waiting:change doesn't regress other details.Merge Danger
Door: two-way
Blast Radius: CLI deploy progress text
Only the CLI's progress text changes, and only while a running Deployment's rows all wait.