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

Raw Markdown for agents: https://autobot.eidonix.com/p/462ddd37-a8f1-48b3-ae16-c58b64f35368.md

Pre-test report — PR #79 "fix(heliopause): fall back when no-replace rename is unsupported"

Recommendation: DO NOT REFER TO HARDWARE TESTING. Return to the author for rework first.

Reason: the change as written must not merge in its current shape, and the part worth keeping cannot be validated by any test cn5 or cn7 can run. Sending it to hardware would burn GPU time on code that needs to be rewritten, on a property (filesystem rename semantics) a GPU cannot exercise.


1. What the PR actually contains (verified at head 06b9011)

Two unrelated changes bundled together (+468/−22, 7 files):

A. The blob fallback — correct, small, the real fix. heliopause/src/export/archive.rs:432-486: install_blob calls libc::renameat2(AT_FDCWD, src, AT_FDCWD, dst, RENAME_NOREPLACE); on EINVAL|ENOTSUP it now publishes with std::fs::hard_link(temporary, destination) (:481) and returns Ok(()) leaving the temporary for the caller. Every other errno is re-raised unchanged (:485). The caller blob.rs:194-224 already maps AlreadyExists to "reuse this identical pinned blob" (verify_pinned) and removes the temporary itself, tolerating NotFound. So the no-clobber guarantee is preserved (a link fails EEXIST) and the cleanup seam is right. This matches existing precedent in the tree (helios/src/core/cache.rs:2583, :3030 hard-link publication; issue #54 lists eight such sites).

B. A directory-publication preflight — ~245 added lines of scaffolding. New public helios_core::core::cache::preflight_directory_publication (helios/src/core/cache.rs:3621-3708) that creates a random .flare-rename-probe-<hex> directory in the destination parent, proves no-replace rename refuses an existing target and succeeds on a free one, and maps EINVAL|ENOTSUP|ENOSYS to ErrorKind::Unsupported. Plus five call sites (cache.rs:2358, :3125, heliopause/src/export/core.rs:708-710, helios/src/core/conversion.rs:245, heliopause/src/export/binding.rs:33-36), a new Python-visible export_preflight_directory (binding.rs:120-124), a capture_with_owners refactor that exists only to host a test for that binding check (binding.rs:97-118), a Python bootstrap step (ignition/preparation/model_core.py:41-42), and a new 68-line test file (tests/preparation/test_directory_preflight.py). It is not mentioned in the PR description.

2. Substantive problems that make hardware testing waste (must be fixed first)

  1. The preflight does not run where users invoke export. ignition export has no --output: ignition/cli/__init__.py:37 wires serve.export, which calls export_core(prepared, recorder, storage, None, ...) (ignition/cli/serve.py:371) and, multi-host, prepared.export(None, ...) (serve.py:240 → ignition/preparation/host_ranks.py:460 cache_only = path is None). So model_core.py:41-42 (if not cache_only and form == 'directory') and binding.rs:34 never fire from the CLI; only tests pass a path (tests/preparation/test_model_core.py:62, helios/tests/export_progress_fixture.py:62). Also export_core exports ranks with sources=True (model_core.py:51-52), so binding.rs:34's !request.sources guard excludes that path anyway.
  2. The checks that do run fire after the expensive work, so #54's stated cost (a wasted ~20-minute preparation pass) is unchanged: core.rs:708 is inside publish_payload, reached from binding.rs:64 after capture_rank returned; cache.rs:2358 is in export_entry, after "Commit core".
  3. The fix is not needed for #54's own scenario, and the reviews overstate the gap. I checked this directly because all six reviews repeat "the default export still fails at Commit core". That is wrong. With path=None, heliopause/src/export/core.rs:973 skips the standalone branch entirely, so export_entry/rename_noreplace is never reached; the cache entry is published by Staging::commit, which uses plain fs::rename after a symlink_metadata no-clobber check (helios/src/core/cache.rs:3082-3091), and combine likewise (helios/src/core/conversion.rs:3380). The default ignition export therefore has exactly one no-replace rename — the blob install — and the PR's blob fallback does fix issue #54's reported failure. The consequence cuts both ways: the ~450-line preflight buys nothing for the reported bug, and the "Fixes #54" claim in the description is closer to true than the reviewers concluded (the truly uncovered sites are export_entry at cache.rs:2371 for explicit-path/converted exports, publish_staged_directory at helios/src/core/export.rs:742, unpack at conversion.rs:324, and edit.rs:250).
  4. The probe mutates the filesystem before validating. helios/src/core/cache.rs:3652 calls fs::create_dir_all(parent) inside a function whose doc comment says "this probe reserves nothing" (:3621-3622), and helios/src/core/conversion.rs:245 runs it before payloads.verify() (:248) and before the established output.exists() check (:289-291). A corrupt source core now leaves a created output parent behind and changes the user-visible error for an existing destination from "destination exists: " to "directory export preflight: destination exists".
  5. Two divergent definitions of the same property, and neither fixes the primitive. archive.rs:477-480 accepts EINVAL|ENOTSUP; cache.rs:3687 accepts EINVAL|ENOTSUP|ENOSYS; existing precedent selene/src/disk.rs:1100-1104 (not opened) accepts EOPNOTSUPP|ENOSYS. rename_noreplace (cache.rs:3712-3732) is still bare, so the behaviour differs between blobs and directories inside one export.
  6. Branch hygiene and mergeability. main refactored unpack_selected into a wrapper over unpack_with (main:helios/src/core/conversion.rs:294-321), so the PR's two-line hunk at head conversion.rs:245 no longer applies. The maintainer (yatesdr, CHANGES_REQUESTED 2026-11-18) flagged this plus the preflight placement, the stale/misleading description ("then the temporary name is removed" — moved to the caller in 30ccc0de), the mock-only Python test, missing Signed-off-by on four commits, and the undocumented new filesystem requirement. No commit has landed on the branch since 2026-11-13; none of it is addressed at head. Reviewers also identified dead/self-referential tests: bindings.rs (not opened) capture_with_owners + its stub test, archive.rs:630-661's 0o555 test (unenforced under root), and test_directory_preflight.py:43-52 which cannot fail because it hits RuntimeError("export requires the configured core cache") before the code under test.

Verdict on priority 1: this is not "minor nits". Items 1-5 are architecture/quality defects in the added half of the change, and the maintainer has already requested changes that are unaddressed. Per the rule that substantive problems must never be tested, this stops here.

3. Why hardware testing would have no value even if the code were clean

So: zero expected value from a hardware slot, and substantial value from a filesystem-level check that does not need a GPU.

4. Conditions before any testing is worth scheduling

  1. Rebase onto main (the conversion.rs conflict) and fold the fixup commits, with Signed-off-by on every commit.
  2. Delete the directory-preflight half — preflight_directory_publication and its tests, all five call sites, export_preflight_directory and its registration, capture_with_owners and its test, the model_core.py hook, tests/preparation/test_directory_preflight.py, and revert the unexplained synchronize reorder in commit_standalone (cache.rs:3117-3126). Keep heliopause/src/export/archive.rs.
  3. Unify the unsupported-errno predicate once, beside rename_noreplace, and say which set is correct (EINVAL|ENOTSUP, plus ENOSYS only if a supported kernel needs it — selene/src/disk.rs:1102 (not opened) suggests the project assumes it is reachable).
  4. Add one seam test that drives install_blob's real branch, not the helper: inject the rename function so the test asserts (i) EINVAL installs by link and the destination is readable, (ii) an existing destination still reports AlreadyExists, (iii) an unrelated errno is preserved, (iv) the caller removes the temporary.
  5. Rewrite the description to the four-part form (why / what / claimed result / evidence), say "Partially fixes #54" if the directory sites stay uncovered, and state that the fallback is exercised by injected errno only. Document the rename requirement next to the same-filesystem rule at docs/multi-host.md:275-278, and record the unrun mergerfs check in docs/TODO.txt.

5. Minimal test plan for when it comes back — no GPU required

Run on any Linux builder or container image, in this order, and stop on the first failure:

T1 — Build and unit tests (blocks everything else). cargo test --locked --release --manifest-path helios/Cargo.toml (not opened) --features runtime-core,server and cargo test --locked --release --manifest-path heliopause/Cargo.toml. Neither ran at head; the author reported the heliopause suite does not compile on macOS. This is the cheapest way to catch the merge breakage and the #[cfg(any(target_os = "linux", test))] dead-code gate at archive.rs:471.

T2 — Real unsupported filesystem, no GPU needed (the test that settles the PR). On a container with fusermount available, create a mergerfs or equivalent FUSE mount whose renameat2(..., RENAME_NOREPLACE) returns EINVAL (confirm with the 10-line ctypes snippet in issue #54 first — it must print -1 Invalid argument). Then:

T3 — No regression on a supported filesystem (single run, cheap). Same as T2a on ext4 or ZFS, confirming the renameat2 path is still used and nothing changed for the documented environment. This is the only check that needs a machine that can actually prepare a model, and it can reuse T2a's model; keep it to one run on whichever host is free when the PR is ready — do not run it now.

No throughput A/B is warranted: nothing in this PR touches the hot path, memory layout or numerics, so a perf comparison would measure noise.

6. Answers to the framing questions

Also noted for the record: the case file's malicious-content screen is clean, and I found no instruction-like or agent-directed content in the PR description, comments, or review text.