Repository navigation
model, placement, start: a family's placement refusal is its error's source, so the start keeps its no-fit class - #1077
Conversation
…source, so the start keeps its no-fit class
There was a problem hiding this comment.
Verdict: CLEAN: All 12 placement-error wrappers expose the refusal to startup classification and preserve its display text.
Checked
Duplicates: 2 new test functions checked by Grep; they cover disjoint wrappers. Dryer returned 0 pairs; gpu-gates was checked manually.
Complexity: crapper flagged no functions. print_refusal adds one comparison for repeated text.
Silent failure: 1 output-suppression site followed; equal messages are skipped, while source traversal and failure status remain intact.
Tests: a_family_placement_refusal_is_its_errors_source protects crates/model/src/arch/glm5next/place.rs:428 and four other wrappers; restoring transparent fails its source assertion. a_family_placement_refusal_keeps_its_class protects crates/model/src/arch/hybrid.rs:480 and four other wrappers; the same mutant fails its NoFit assertion. These are static mutation checks.
Gates: no existing tests, bands, thresholds or pins moved. The PR supplies a FAIL-first classification test.
Adversarial: traced low host room through nested errors, pooled-memory refusals, non-capacity errors and repeated display text; no reachable regression found.
Performance: startup and error paths only; no decode, prefill or kernel work changed.
Escape catalog: no patterns matched.
Notes
Tests were not executed during this source review. The PR reports tests and a CLI run on GB10, but lacks the required nvidia-smi line and just gate-* output for GPU evidence.
Card check: needs-gpu. This pull request changes crates/gpu-gates/src/bin/shared/routed_legs.rs, crates/gpu-gates/src/lib.rs, crates/gpu-gates/src/start.rs and carries no gate run on a card (CONTRIBUTING's evidence list); a maintainer adds gpu-verified after one.
🔨 Shingler, bloomery's review bot: approves a clean pull request and requests changes on a must-fix (how it works)
|
The review is done and the contribution check passed, so I'm merging this. |
GLM을 포함한 모델 family의 배치 거절이 시작 단계에서 no-fit 종료 클래스를 잃던 문제를 고쳤습니다.
What and why
When a model family refuses placement,
bloomery-serveshould end with theno-fitclass and exit code 80. A GLM seat whose host room is under the NVMe expert tier floor ended as an unnamedrefusedwith exit code 1 instead.Fixes #1071.
start::classifyfinds the class by walkingsource()until a link downcasts toPlacementError. Every family wrapper ofPlacementErrorused#[error(transparent)], which forwardssource()to the inner error, so thePlacementErrorlink never appeared in the chain. The wrappers now use#[error("{0}")]with#[from](or#[source]), which keeps the display text and makesPlacementErrorthe source. That covers all 12 wrappers, not only GLM's, so the start needs no per-family branch.print_refusalskips acaused by:line equal to the line above it, so the refusal that is now visible as a source prints once.Release notes: Fixed: a model family's placement refusal, such as a host room under the NVMe expert tier floor, now ends
bloomery-servewith theno-fitclass and exit code 80.Code shape
The review reads these first. A box left unticked needs one line of why.
copying it (
AGENTS.md"Common code first",docs/rust-quality.mdR14). Where I found an existing copy, Inamed it below.
(tensor shapes, the attention kind, the quant). A common owner gained no per-model branch, flag or trait method.
tools/check-comments.sh).PIN(YYYY-MM-DD):and its reason.
cargo fmtandcargo clippyare clean on what I touched; the lint count did not go up.Duplication found or removed (
path:line), or "none": none.What I ran
On a DGX Spark (GB10), GLM fixture (
glm53-fixture-00001-of-00003.ggufand its two shards).Before:
a_family_placement_refusal_keeps_its_classboxesHostRoomFloorin each start-path family wrapper and checks the class. On main (28bc0af4) with only this test added:After, at the head
9912c997f(basef9131fee2):The real binary on the GLM fixture, with a host room under the NVMe tier floor:
The refusal prints once, with no repeated
caused by:line. Host rooms of 4G, 4500M, 5G, 5500M, 6G, 7G and 8G all refuse withno-fitand exit code 80. Rooms of 10G, 12G, 16G and 24G plan and exit 0.AI help
AI 코딩 에이전트가 코드를 작성한 후 설명을 썼고, 테스트를 마쳤습니다. diff 리뷰와 PR 초안 리뷰는 제가 직접 했습니다.