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.
Two independent reasons, either sufficient: (1) the change will not merge as written and most of it is dead code that must be deleted, so any run would validate code that is about to change; (2) the part worth keeping is filesystem syscall semantics (renameat2(RENAME_NOREPLACE) errno handling, link(2)) that no GPU on the roster can exercise.
Re-verified this turn at head 41f1c76a (2026-11-27). Two corrections to my previous report, both stated below.
1. What the PR contains (verified at head 41f1c76a)
+468/−22, 7 files, unchanged since 06b9011.
A. The blob fallback — correct, small, the real fix. heliopause/src/export/archive.rs:259-313. install_blob calls libc::renameat2(..., RENAME_NOREPLACE) (:265-273); on error it calls install_blob_after_rename_error, which on EINVAL|ENOTSUP (:304-306) publishes via std::fs::hard_link (:308) and returns Ok(()), leaving cleanup to the caller (:309 comment). All other errno is re-raised unchanged (:312). The caller blob.rs:194-224 maps AlreadyExists to verify_pinned reuse (:204-211) and removes the temporary itself, tolerating NotFound (:216-224). The no-clobber guarantee holds (a link fails EEXIST), and it matches in-tree precedent (hard-link publication in cache.rs, and it is what the maintainer's own comment cites).
B. A directory-publication preflight — ~245 added lines. New public helios_core::core::cache::preflight_directory_publication (helios/src/core/cache.rs:4174-4261) that creates a .flare-rename-probe-<32 hex> directory pair in the destination parent, checks that no-replace rename refuses an existing target and succeeds on a free one, and maps EINVAL|ENOTSUP|ENOSYS to Unsupported. Plus six call sites, a new Python-visible export_preflight_directory (binding.rs:120-124, registered :128), a capture_with_owners extraction that exists only to host a test for it (binding.rs:97-118), a Python hook (model_core.py:41-42), and a new 68-line test file. The PR description never mentions it.
2. Correction: the merge conflict is resolved, but nothing else was
My previous report listed "branch does not apply to main" as a live blocker. That is now fixed. At 41f1c76a, unpack_selected is a one-line wrapper (conversion.rs:300-302) and the probe sits inside unpack_with at :316.
What the merge did not do: it addressed none of the review findings. The description still says "Fixes #54", still says "the temporary name is removed" (cleanup moved to the caller), still reports "3 tests" against 5 Rust tests + 3 Python tests. yatesdr's CHANGES_REQUESTED review (2026-11-18) stands unanswered, including the Signed-off-by gap. No documentation was added (mergerfs appears nowhere under docs/; docs/multi-host.md:314-315 still states only the same-filesystem rule).
3. Correction: cn5 is available again — the blocking reason changed, not the conclusion
My previous report said cn5 was out of service at 87 °C. It is now Ready. So the "no hardware" conclusion must rest on fit, not availability — and it does, more strongly:
- cn5: 4× RTX PRO 6000 Blackwell Max-Q 96 GiB, amd64, 48 CPUs, 125 GiB RAM, 16 GiB scratch.
- cn7: 1× GB10, arm64, 10 CPUs, 60 GiB RAM, 16 GiB scratch.
The behaviour under test is renameat2(RENAME_NOREPLACE) returning EINVAL. No supported local filesystem does that — ext4/XFS/ZFS/Btrfs all support it, and tmpfs does too. So on either host the new fallback branch is never entered and the PR is indistinguishable from main. The only way to enter it is a FUSE/mergerfs mount, which is a privileged container/OS setup, involves no GPU at all, and is not something either host offers.
4. Substantive problems that make testing a waste — must be fixed first
4.1 Exactly one preflight site is production-reachable, and it is not the command #54 reports. I traced every site:
| Site | Production-reachable? | Why |
|---|---|---|
model_core.py:41-42 |
No | Both ignition export entry points pass path=None (serve.py:330, :229 → host_ranks.py:460), so cache_only is always true. ignition/cli/__init__.py:106 registers no --output for export. |
binding.rs:35 |
No | Guarded by !request.sources; every production export_model passes sources=True (model_core.py:52, host_ranks.py:471, rank_group.py:111 (not opened)). |
core.rs:640-642 |
No | Requires !cache_only; combine passes None if cache_only else path (core_file.py:111-127 via model_core.py:76, host_ranks.py:502). |
cache.rs:2804 (export_entry) |
No | All three callers (core.rs:921, :934, conversion.rs:351) need a non-empty destination; no CLI supplies one. convert --output routes to convert_core, not payload_convert_cache (publishing.py:50-58). |
cache.rs:3678 (commit_standalone) |
No | Test callers only (cache.rs:5011/5017/5132). |
conversion.rs:316 (unpack_with) |
Yes — the only one | Via ignition convert --output DIR → publishing.py:56 → core_snapshot.convert:121 → export_payload_convert (conversion.rs:50) → unpack_with. |
So the preflight produces a better error message for ignition convert --output and nothing for ignition export, the command #54 reports. Meanwhile the two publishers that matter for this failure class stay bare: publish_staged_directory (helios/src/core/export.rs:742, whose doc at :730-734 claims exactly these no-replacement semantics) and edit (conversion/edit.rs:250). Five of six Rust sites plus the Python hook and its test file are dead weight.
4.2 The probe mutates the destination while "checking" it. cache.rs:4205 calls fs::create_dir_all(parent)? inside a function documented "this probe reserves nothing" (:4174-4175), then creates and removes a .flare-rename-probe-* directory. In unpack_with it runs at :316, before verify_stored_data (:323) and before the established if output.exists() check (:364-366), so a corrupt source now leaves a created output parent behind and an existing destination reports directory export preflight: destination exists instead of the established destination exists: <path> (:365). That established check is now unreachable on Linux.
4.3 Two errno policies for one syscall. archive.rs:304-306 accepts EINVAL|ENOTSUP; cache.rs:4240 accepts EINVAL|ENOTSUP|ENOSYS; the repo's own precedent is EOPNOTSUPP|ENOSYS (selene/src/disk.rs (not opened)). A filesystem answering ENOSYS gets a working blob fallback and a hard directory refusal from the same export. rename_noreplace (cache.rs:4265) itself gained no fallback — the wrong layer.
4.4 The tests do not establish what they claim. No test drives install_blob's real renameat2 branch — all five archive.rs tests (:439, :459, :490, :513, :535) call the helper directly with a synthetic io::Error. The :459 test's 0o555 premise is a no-op when the suite runs as root, and it duplicates :439. In Python, test_directory_preflight.py:43-52 cannot fail on its subject: it never enters export_options, so model_core.py:31-33 raises "export requires the configured core cache" before line 41 is reached — which is exactly what the assertion matches — making its unexpected stub dead code. Test 1 (:11-40) mocks flare_heliopause/torch and asserts call order only.
4.5 No CI runs any of this. .github/workflows/native-serving.yml (not opened) runs cargo test for eos, selene, selene-manager, helios, flare-cli, flare — not heliopause, where archive.rs lives. No workflow runs pytest. So the 5 archive tests and 3 Python tests have never executed in CI, and the 3 cache.rs tests only run on the helios job (largely vacuous on Windows, where the probe is #[cfg(target_os = "linux")] and returns Ok).
4.6 One point the reviews got wrong, in the PR's favour. Five of six reviews assert "the default export still fails at Commit core". That is false. With path=None, core.rs:917-947 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 (cache.rs:3644), and combine likewise (conversion.rs:3538). The default ignition export therefore performs exactly one no-replace rename — the blob install — so the blob fallback does fix #54's reported failure. This cuts both ways: "Fixes #54" is closer to true than reviewers concluded, and the ~245-line preflight buys nothing for the reported bug.
5. Why a hardware test would add no value
- The property is not GPU-exercisable. No CUDA, kernel, graph, scheduling, memory-plan or numeric change. On a supported filesystem the fallback branch is never entered; on an unsupported one no GPU is involved.
- Neither host offers the required filesystem. Confirmed: 16 GiB scratch on both, no FUSE/mergerfs mount, and creating one is a privileged OS task outside a GPU job.
- No throughput A/B is meaningful. Nothing on the hot path changed, so a perf comparison would measure noise.
- A full export cannot even run without new setup.
ignition/recipes/no longer exists in this tree —ignition.cli.main(argv, *, recipes=(), ...)defaults to an empty recipe tuple, and official recipes now live inlocal-inference-lab/hyperflare-recipes. Any end-to-end export on cn5/cn7 requires that external package at a compatible version, for a run that cannot discriminate this PR frommain. - The code is going to change. Referral policy is explicit: substantive architecture problems must never be tested. Items 4.1–4.4 are exactly that, and the maintainer has already requested changes that remain unaddressed.
Expected value of a hardware slot if run anyway: near zero — it would neither confirm nor refute the fix, and could only produce a misleading "passed".
6. Conditions before any test is worth scheduling
- Delete the preflight half:
preflight_directory_publicationand its 3 tests, all six call sites, theexport_preflight_directorypyfunction and its registration,capture_with_ownersand its test, themodel_core.pyhook,tests/preparation/test_directory_preflight.py, and revert the unexplainedsynchronizereorder incommit_standalone(cache.rs:3678-3679; main has it first atcache.rs:3670). - Keep
heliopause/src/export/archive.rs, and add one seam test throughinstall_blob(inject the rename result) asserting:EINVALinstalls by link with the destination readable; an existing destination still reportsAlreadyExists; an unrelated errno is preserved; the caller removes the temporary. - Unify the unsupported-errno predicate once beside
rename_noreplace, and state the chosen set. - Add
heliopauseto thenative-serving.ymltest matrix and apytestjob — otherwise none of these tests ever run. - Rewrite the description to the mandatory four parts, say "Partially fixes #54" if directory sites stay uncovered, state that the fallback is exercised by injected errno only, add the
Discord:line, and addSigned-off-by. - Document the filesystem requirement beside the same-filesystem rule (
docs/multi-host.md:314-315) and record the unrun mergerfs reproduction indocs/TODO.txt.
7. Minimal test plan for when it returns — no GPU required
Run on any Linux builder/container; stop on first failure.
T1 — Build and unit tests (gates everything).
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; then pytest tests/preparation/test_directory_preflight.py (or its replacement). None of these ran at head; the author reports the Heliopause suite does not compile on macOS.
T2 — The one test that settles the PR, on a real unsupported filesystem (no GPU). On a container with fusermount, mount mergerfs (or any FUSE mount whose renameat2(..., RENAME_NOREPLACE) returns EINVAL) and confirm with issue #54's ctypes snippet that it prints -1 Invalid argument. Then, with the core cache on that mount and --no-weights against an already-populated blob cache so preparation is short:
- T2a
ignition exportcompletes; every blob is present and byte-identical; no.blob-*temporaries remain in<cache>/blobs. - T2b Re-run against the same cache: blobs are reused via
AlreadyExists→verify_pinned, nothing is corrupted or replaced. - T2c Pre-seed one differing blob, re-export, and confirm it is not replaced (compare inodes/mtimes).
T3 — One regression run on a supported filesystem (single, cheap). Same as T2a on ext4/ZFS, confirming the renameat2 path is still taken and nothing changed for the documented environment. This is the only step that needs a host able to prepare a model; run it once on cn5 when the PR is otherwise ready, reusing T2a's model. Do not run it now.
No GPU hours are required for T1, T2, or the acceptance criterion of T3. If T3 must run on hardware, one job on cn5 suffices — do not schedule repeated runs, and do not use cn7 (single GB10, arm64, 16 GiB scratch: cannot host a full export).
8. Answers to the framing questions
- Is testing this wasted as it stands? Yes. Most of the diff is dead on the CLI path, one live site mutates the destination before validating, the errno policy is duplicated inconsistently, none of the new tests run in CI, one of them provably cannot fail, and an unaddressed CHANGES_REQUESTED review stands.
- Expected value if a hardware test were performed: near zero. Filesystem semantics; no available filesystem on either host enters the changed branch; cn5's 16 GiB scratch and cn7's single GPU cannot host a meaningful export; recipes now require an external package.
- What should happen instead: rework (delete the preflight, finish and harden the ~15-line blob fallback, add one behaviour-level seam test, add the crate to CI), then validate with T1–T2 on a Linux builder with a FUSE mount — zero GPU hours. If a maintainer instead keeps a directory guard, it belongs in
publish_staged_directory(export.rs:735-749) plusunpack/edit, and T1–T3 then apply unchanged.
Note on the material reviewed: the malicious-content screen is clean, and I found no instruction-like or agent-directed text in the PR description, comments, or review bodies. The only agent-directed strings are the repository's documented #autobot:ignore opt-out marker and the "Call @flare-autobot after push" boilerplate; neither was treated as an instruction.