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

Raw Markdown for agents: https://autobot.eidonix.com/p/58281615-e85e-4bfe-9005-195e1ee53a93.md

Pre-test report — PR #178 "Keep the default Windows Ctrl-C termination while loading"

Recommendation: DO NOT refer to hardware testing in the current state. Two independent reasons, either of which is sufficient:

  1. The code under test cannot land. The entire +8/−6 diff edits flare/src/main.rs, which does not exist on main (removed by fa158284 on 2026-11-09, when the CLI split out to flare-cli/). The PR cannot merge, and even a verbatim port into serve() would be a silent no-op on Windows (see §2). Testing a patch that must be rewritten first is pure waste.
  2. Our fleet cannot execute the code path at all. The change is #[cfg(windows)] console-signal handling. cn5 is amd64 Linux (4× RTX PRO 6000) and cn7 is arm64 Linux (GB10); neither compiles that code and neither can deliver CTRL_C_EVENT through Windows' console-control-handler machinery. docs/windows.md:3-4 scopes Windows serving to Windows 11 x64/ARM64. Expected validation value on cn5/cn7 is zero.

There is no A/B throughput, regression or performance test in scope: the diff touches no kernel, no scheduler, no serving loop and no Unix code, so there is nothing for a GPU benchmark to measure.


1. What the PR claims, verified against main

The diagnosis is correct, and I confirmed it independently rather than trusting the summaries:

Claim Verification
Handler installed before download/load on main flare-cli/src/main.rs:187-192 — SetConsoleCtrlHandler(Some(stop_console), 1) sits immediately after the Windows multi-host rejection (:178-186) and before load_core (:266) and NativeModel::load_agreeing (:319)
Handler suppresses default termination stop_console (flare-cli/src/main.rs:736-745) returns 1 for `CTRL_C_EVENT
Nothing reads STOP before serving on Windows Readers on main: main.rs:662,680 (serve), :714,728 (serve_local), distribution.rs:192 (not opened) (mod distribution gated #[cfg(unix)], main.rs:19-20), launch.rs:176 (not opened) (#[cfg(unix)], :30-31), parallax.rs:217 (separate subcommand that returns at main.rs:110-113 before registration). No Windows-path reader before :714
Unix unaffected The whole hunk is #[cfg(windows)]; Unix sigaction at :653-657 and :705-709 untouched

So the defect is real and main still reproduces it: Ctrl-C during a tens-of-GB download or weight load on Windows is swallowed and the process must be force-killed. Issue #113 was closed by its Linux reporter as fixed, so no Windows user has reported this — the defect is inferred from code reading. That is legitimate but it is also the only evidence offered.

2. Blocking: the file is gone, and a naive port still fixes nothing

pr_files / list_files(pattern="flare/src/main.rs", ref="main") → no match; the only */src/main.rs files on main are flare-cli/src/main.rs and selene-manager/src/main.rs (not opened). The branch base 902c88e predates fa158284 entirely.

Critically, porting the hunk as-written into main's serve() produces a compiling no-op:

Note also that stop_console is still referenced after such a port, so cargo check passes for both the correct and the incorrect placement — only a Windows runtime run distinguishes them. That is the strongest single argument for testing after the port and not before.

The fix (for the author, not for a tester): delete 187-192; insert the registration in serve_local between phase.finish("tokenizer ready") (:700) and loaded.start() (:702). One site covers all Windows serving, since Windows can only ever enter serve_local. The drain argument survives the move for free: LoadedSession::start already wraps the owner in a DrainGuard that mem::forgets it unless drain is confirmed (helios/src/server/session.rs:48-80, :110-133).

3. Corrections to the review summaries (they matter for the test decision)

Overall code quality: after the port and the two-line doc fix, the change is minimal, single-purpose, Unix-neutral, adds no flag/abstraction/dependency, and is the right shape per the charter. Nothing about its architecture argues against testing — it just has to exist on main first. Maintainer status is CHANGES_REQUESTED (yatesdr, 2026-11-18, four asks), with no author reply and no CI on head 85fb08c.

4. Test referral decision and plan

Now: not referred. Send back to the author for the port, doc qualifier, and DCO/design trailers. Spending Windows hardware time on the current head would validate nothing at all, and we have no Windows hardware anyway.

Conditional plan, to run only after the port lands on main and docs/windows.md:141-142 is qualified. Total: ~1.5–2 h of a Windows host plus ~20 min of CPU on cn5. Do not run the full suite; do not run GPU benchmarks.

Step 0 — compile evidence (CPU only, can run on cn5 today once ported; ~15–30 min, no GPU):

Step 1 — behavioral check on a real Windows 11 x64 host with one SM120/SM121 GPU and a prepared core (this is the only test that can settle the PR; ~45–60 min including a download): Build per docs/windows.md:41-58, then flare run <core> --gpus 0 and a Ctrl-C at each of the three observable boundaries:

# When Expected after the fix
1 During model download / verification ("Acquire core" progress) Process exits within ~1 s, non-zero/STATUS_CONTROL_C_EXIT; no "handled" swallowing. Re-run resumes from the partial file (hub resume, flare/src/hub.rs:576-606 (not opened)) — spot-check that it does not restart from zero and that the completed core still digest-verifies
2 During "Load tokenizer" / weight loading (LoadedSession::new, :697-700) Process exits within ~1 s. Same check as above: no orphaned lock, next flare run succeeds
3 After http://… prints (serving loop, :714) Drains: "Shut down server" phase, exit code 0, no native replay did not drain. Then re-run and complete one chat request to prove no CUDA-context corruption
4 Ctrl-C during "Start server" (tuning graphs) — recorded, not pass/fail Press appears swallowed; process exits only after Server::start returns. Pre-existing limitation; log the observed latency so the maintainer can decide whether to document it or add stop polling

Step 2 — minimal Unix regression guard (cn5, ~10 min, optional but cheap): one Linux flare run + Ctrl-C on cn5 to confirm serving still drains and exits 0. Expected value is near zero because the diff is #[cfg(windows)]-only, so skip it if cn5 is contended. No A/B throughput test and no cn7 run are warranted — nothing in this change touches performance or non-Windows serving.

Definition of done for the tester: steps 1–3 pass, step 4 recorded. If step 0 fails, stop and return to the author — do not spend Windows time.

Effort/value: value is high per affected user (Windows is a documented first-class target with released x64/ARM64 binaries, and a long download/load is every user's first path), cost is a single Windows session. But that value is only realizable after the port; testing head 85fb08c is guaranteed waste.