Pre test report report · NVIDIA/hyperflare-inference #178

Raw Markdown for agents: https://autobot.eidonix.com/p/6482b7e8-37d9-4975-9ee2-0fc61f201b66.md

Pre-test plan — PR #178 "Keep the default Windows Ctrl-C termination while loading" (head 20d2c655)

Bottom line

Don't spend GPU time yet — no test on cn5 or cn7 can validate a single changed line. Do spend ~20 CPU-minutes on cn5 for one de-risking step, and hold the real test as a §3 checklist for the first Windows 11 GPU host that joins the fleet.

This supersedes my 2026-11-28 report (written against 43c6ea78). Both non-code items from that report are now closed: the PR body describes the shipped design, carries Discord: myong_acct, and reports cargo xwin check --target x86_64-pc-windows-msvc exit 0 plus Linux cargo test 227 passed / 0 failed / 3 ignored.

Why our hardware cannot do it. The entire executable change is #[cfg(windows)]: the SetConsoleCtrlHandler(Some(stop_console), 1) registration moves out of run() and into serve_local() at flare-cli/src/main.rs:704-710, after loaded.start() (:696) and beside the #[cfg(unix)] libc::signal block (:699-703). cn5 (amd64 Linux, 4× RTX PRO 6000 Blackwell) and cn7 (arm64 Linux, GB10) compile that block out and cannot deliver a Windows CTRL_C_EVENT. Expected direct validation value on both: zero. There is also no A/B or throughput test in scope — no kernel, scheduler, transport, serving-loop, or Unix line changes, and stop_console (:737-746) is untouched.

One real gap remains and only Windows hardware closes it: runtime behavior. cargo xwin check proves the block compiles; it cannot prove the process now actually dies on Ctrl-C during load, nor that the post-start registration still drains. That is Step 2 of §3.


1. What to run on cn5 (amd64 Linux) — and what not to bother with

Run: Stage a candidate core (CPU + network only, 0 GPU, ~15–20 min). Our fleet cannot exercise the diff, but cn5's GPUs are SM120 (RTX PRO 6000 Blackwell → gb202 revision), the same architecture family a Windows SM120 host serves (docs/windows.md:3-6). The only failure mode that would later burn the Windows session is picking a core that does not load or serve. Verify the artifact on cn5 first:

# 1. Is anything already cached? All fleet inventories report 0 GiB, so assume nothing is.
flare models list --offline

# 2. Pick the SMALLEST SM120/gb202, single-GPU (tp1), tp1-retry-capable core.
#    Check the scratch budget: the cn5 job has only 16 GiB of scratch and
#    $HOME/model caches may not live there.
df -h "$FLARE_CACHE_DIR" 2>/dev/null || flare models list --json --offline | head -50

# 3. Acquire, then prove it serves without ever touching the problem path.
flare download <ORG>/<CORE> --gpus 0
flare run <ORG>/<CORE> --gpus 0 --no-mtp --max-concurrency 1

Pass = the http://<addr> line prints (flare-cli/src/main.rs:698) and one POST /v1/chat/completions returns. Record the repository, revision, and byte size in the handoff note so the Windows engineer reproduces exactly that artifact. If acquisition is too large for 16 GiB of scratch, stop and note it — that is a fleet constraint, not a PR defect.

Do not run on cn5: a Linux flare run Ctrl-C regression check. The diff is #[cfg(windows)]-only, so a Linux pass proves nothing the existing CI native-serving.yml:45,73 and the author's 227 passed run do not already prove.

Do not run on cn7 at all. arm64 Linux GB10 compiles the block out, and native-serving.yml has no Linux-arm64 leg — so a cn7 result is neither a regression signal nor an evidence artifact. Your 2026-11-28 report already recorded this; nothing about head 20d2c655 changes it.


2. Two non-hardware items the tester must not be asked to absorb

Both are cheap and belong to the author/maintainer, not a GPU session:

  1. Windows link evidence. cargo xwin build still fails at lld-link (exit 101) on pre-existing libflare_selene (MD_DynamicRelease) vs libesaxx_rs (MT_StaticRelease) CRT mismatch, or undefined __cpu_model under +crt-static (author's Validation section). Leave the windows-2022 job (.github/workflows/native-serving.yml:6 (not opened),19-21,45,73) as the route once maintainer-approved, and keep the link explicitly listed as unrun. Per #177 that job is red on main for unrelated reasons (I/O-ring DLL needs build 22000+, 8 CLI test failures), so do not gate the Windows session on it.
  2. Post-merge bookkeeping. docs/TODO.txt should carry the one unrun check (live Windows Ctrl-C across loading and "Start server") with its removal criterion. Optional nit only: flare-cli/src/main.rs:705 unsafe lacks a // SAFETY: line, though its sibling at :700 does too, so this is not a fleet-blocking inconsistency.

3. The test plan to run once a Windows 11 GPU host exists

One session, ~60–75 min including the download. One core, one GPU, no full suite, no benchmarks.

Host requirement: Windows 11 x64 or ARM64 with an SM120/SM121 GPU (docs/windows.md:3-6) — an RTX PRO 6000-class card, or a GB10-class integrated part on ARM64. flare on Windows talks to the driver through nvcuda.dll; no WSL, Python, or CUDA toolkit (docs/windows.md:15-16).

Step 0 — build (stop here if it fails; do not spend the session).

powershell.exe -NoProfile -ExecutionPolicy Bypass -File scripts/setup_windows.ps1
& ./scripts/dev_windows.ps1 -Action Build
# binary: $env:LOCALAPPDATA\FlareDev\target\release\flare.exe   (docs/windows.md:80)
# optional, GPU-free sanity:  & ./scripts/dev_windows.ps1 -Action Test

A red selene suite is expected on Windows and must be reported separately (docs/windows.md:96-100) — it does not touch this change.

Step 1 — prepare the interruption surface before pressing anything. Use an interactive console (physical or RDP); a service or detached session receives no console control event at all, which would look exactly like the bug. Redirect stderr to a file so startup::is_terminal() is false (helios/src/startup.rs:159) and you get a greppable plain-text transcript of the phase labels instead of a cursor-driven animation. The dashboard starts unconditionally at flare-cli/src/main.rs:712; ignore it.

& flare run <ORG>/<CORE> --gpus 0 2>&1 | Tee-Object -FilePath .\run.log

Step 2 — three pass/fail Ctrl-C presses plus two recorded observations. Press Ctrl-C once per attempt and wait for the process to exit before re-running.

# When to press Expected result after the fix If it fails
2.1 During core download / verification, before Load tokenizer Exits within ~1 s. Exit code 0xC000013A (STATUS_CONTROL_C_EXIT; PowerShell $LASTEXITCODE = -1073741510). Pass = it died at all — that press was swallowed before this PR. Re-run and confirm it resumes from the .part file instead of restarting from zero (flare/src/hub.rs:407, 4177-4220, 5675-5731). Bug not fixed, or download restarts from zero
2.2 During Load tokenizer (tokenizer + weight load, flare-cli/src/main.rs:691-694) Same: exits within ~1 s, 0xC000013A. Re-run succeeds and the core still verifies (flare inspect <CORE> or the next flare run; interrupted downloads resume, nothing durable was written). Swallowed again
2.3 After the http://<addr> line prints (:698, loop at :715) Drains, not kills. Shut down server phase prints (:718), exit code 0, no native replay did not drain (:720-724) and no native server stopped unexpectedly (:729-731). Then re-run and complete one chat request to prove the CUDA context was not corrupted. Drain error, nonzero exit, or hang ≥ 60 s
2.4 (record only, not pass/fail) During Start server (:695-698, tuning graphs under per-graph 120 s deadlines) Still shown as "handled" until Server::start returns — the handler is deliberately installed after it. Log the observed latency to exit once. Pre-existing limitation, not a regression; this change strictly shrinks that window (load and download are no longer swallowed). —
2.5 (record only, not pass/fail) A second Ctrl-C during the session.close() drain in 2.3 Ignored, because stop_console (:737-746) keeps returning 1. Identical to Unix's stop (:52-55). Note it so the maintainer can decide whether to document or escalate. —

Step 3 — Unix-neutral spot check on cn5 (optional, ~10 min, 1 GPU). Only if cn5 is free: one flare run + Ctrl-C on Linux, expecting exit 0 and no native replay did not drain. Expected value is near zero (the diff is #[cfg(windows)]-only), so skip it under contention.

Definition of done: 2.1–2.3 pass, 2.4–2.5 recorded, run.log attached to PR #178, and the core repository/revision recorded. If Step 0 fails, stop and return to the author — do not spend Windows GPU time.

Effort/value: one Windows host for ~1–1.5 h settles the only outstanding evidence for a real, user-facing Windows defect (Ctrl-C swallowed through a tens-of-GB download leaves force-kill as the only exit) on a documented first-class platform. Value per affected user is high; cost is a single session. On cn5/cn7 the value is exactly zero, which is why this is a conditional checklist rather than a referral.


4. Corrections worth carrying forward