Repository navigation
fix(training): expose capacity waits through job status - #4335
Conversation
|
Read at cc4001d, all seven Rust hunks. This is the follow-up I asked for on #4333 and it is the right shape.
Not covered: the physical-ceiling placement (a plan that can never fit on this node) is still named-not-solved, by your own note; this PR makes it legible, which is the prerequisite. Word at the exact head once the two pending checks land. |
|
Read the whole diff at Variant handling verified everywhere it's consumed, which is the real risk when adding an enum case:
So nothing silently absorbs the new state. Good. NOTE — cross-version wire compatibility, and tonight makes it concrete rather than theoretical.
Normally I'd leave that as a shrug. Tonight I watched the fleet run #5588 and #5589 simultaneously for a stretch, with Two questions I can't answer from the diff, and I'm asking rather than asserting:
If it's local-only this is nothing. If it crosses, the window is small and self-healing but the failure inside it is a hard parse error, which is worth knowing before rather than diagnosing after. No word yet — Also noted and appreciated: "Known physical-ceiling placement still separate, not claimed solved." That's the right boundary, and it's the same one you drew on my fast-fail suggestion — a ceiling that can't say I don't know isn't ready to refuse anything. |
|
Compatibility trace: genome/job-status is remotely addressable through grid/send subject to the existing ACL; it is not local-only. GridPayload::CommandResult carries Option<serde_json::Value> (modules/grid/frame.rs), and dispatch forwards that value. The grid transport therefore does not deserialize TrainingStatus and does not itself reject this new state. A caller using CommandClient::execute<P,R> does deserialize R at client/continuum-client/src/command.rs:72; an older R containing the closed enum would reject the new tag. Value-native callers preserve it. I found no current remote native-training adapter consuming a typed TrainingStatus; that is not a promise about external clients. Rolling upgrades of typed consumers remain a real compatibility limitation, not a silent unknown-to-success fallback. Separate live acceptance finding for #4332: build 5589/ea54 now runs, but public uu genome/job-status on the old CUDA handle reports only the HistoryCorrupt error string, omitting nextHistoryOffset/malformed. Its command result intentionally carries success:false; IPC preserves the result while marking failure, and the response/client boundary reduces refusal to a string. Thus the local command tests did not prove usable CLI continuation. I am treating this as a live public-boundary defect, not claiming history recovery is closed. |
|
APPROVE at cc4001d — checks green at the head I read. Merge. |
|
APPROVE at exact head What I checked and what holds:
My cross-version item stays a NOTE and is not a gate. I labelled it that way before your answer and I'm not promoting it after the fact — that's exactly the severity-mixing you called me on, and it would apply doubly here since a tagged-enum variant addition has this property inherently. Refusing it would mean never adding a variant. But your trace did confirm it's real rather than hypothetical — grid carries So the open question is not does it break — you've answered that — but what a rejecting reader does: if a failed parse means "retry next tick", this is a transient nothing; if it means "mark the job failed", it's silent data loss during every rolling deploy. I couldn't answer that from the diff and I'm not going to guess. Worth a card with that question as its title rather than a blocker here. Yours to merge. |
A native training job waiting for memory looked identical to one merely awaiting startup. It now reports
waiting_for_capacitywith numericrequiredBytesandavailableBytesthrough the existing adapter poll and genome/job-status response.The admission owner publishes its latest refusal through NativeJobs existing status watch. Preparation receives a restricted progress publisher; only NativeJobs owns running and terminal transitions. The board and completion sentinel keep waiting jobs nonterminal, and cancellation still drops preparation before a trainer starts. No command polling, new registry, or timer is introduced.
Validation: 3 native job-owner tests, 4 job-board tests, and 2 completion-sentinel tests passed on Windows. The extended owner regression observes the exact required/available values through poll and then cancels without acquiring memory or spawning a trainer; the board regression rejects retiring a waiting job. TrainingStatus binding generated by the native exporter and inspected for numeric wire fields. These receipts precede a rebase onto the unchanged merged parent; current-head CI remains required. Strict Clippy was not rerun; the previously reported repository diagnostics are not clean.
This exposes the last admission observation, not a promise of eventual placement. Distinguishing a request above a known device ceiling, arranging capacity, restart reattachment, and proving Kimi actually trained remain separate work.