Repository navigation
fix(portability): continuum-core builds on windows-msvc + CI guard (#304, first slice of #197) - #2123
Merged
Merged
Conversation
…ix usage fixed + CI guard (#304, first slice of #197) Glass-boxed 2026-08-02: the Windows grid node (the CUDA lane) could not run ANY core test — 'cargo test' failed to BUILD on windows-msvc, forcing every test-tree measurement (today: the K3 schedulable-coverage go/no-go) through a Mac as proxy. Root causes, all fixed with real Windows arms: - fs_portable.rs (NEW — #197's first concrete slice): portable read_exact_at with pread semantics both platforms (unix FileExt / windows seek_read loop, UnexpectedEof on short reads). Consumed by expert_container's bank reads and the capacity io-probe — the two lib sites that imported std::os::unix::fs::FileExt un-gated. - docker_tier: MetadataExt cfg-paired (windows: len() for both fields — honest apparent size, no fake allocation number). - bevy scene instantiate: symlink cfg-paired (windows symlink_file needs privilege → copy fallback; bevy just needs bytes at the path). - ipc/mod.rs: the two #[ignore]d live unix-socket tests gated #[cfg(unix)] — even ignored tests must COMPILE. - core_ipc_transport: unix-echo-server test mod gated #[cfg(all(test, unix))]; the TCP-echo sibling for the windows transport arm stays tracked in #304. CI: new cargo-check-windows job (windows-latest, check --lib --tests — the exact surface cargo test builds, nothing executed) so this class can never silently regress; also the first CI brick of #291's 3-platform front door. This PR's own run is the fix's verification. Unix arm verified locally: cargo check clean; fs_portable + expert_container suites 9/9. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
… moved to fs_portable but the use stayed (#304) Unused-import on unix (warning), unresolved-module on windows (E0433 hard error) — exactly the class the new cargo-check-windows job exists to catch, and it caught it on its first run. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…ne generic wire server, two bind sites (#304 residual) The unix-only gate kept windows-msvc BUILDING but left the windows connect path (TCP loopback via CONTINUUM_CORE_TCP) with zero coverage. The echo server body is stream-generic now (tokio::io::split over AsyncRead+Write); unix binds a per-test unix socket, windows binds 127.0.0.1:0 and pins the env var under a lock (it's process-global — parallel tests would race). The non-connecting params test was already platform-neutral. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…-global HOME swap (#7) The env-mutation guard only serialized RECORDER tests against each other; every other test in the parallel suite that read HOME (or wrote a fixture) mid-swap raced it, and a stray parallel write into the swapped tempdir broke this file's len==1 assertion. record_turn runs on the caller's thread, so a thread-local override is parallel-safe by construction — and the unsafe set_var machinery plus its lock delete outright. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
…re-existing test-target rot (#304) The new cargo-check-windows job is the first CI to ever BUILD integration test targets — it found two classes: 1. unix-only targets (the IPC-socket common client's six consumers + forge_custodian_daemon's libc::kill SIGTERM drain) — gated #![cfg(unix)] whole-file; windows compiles them to empty. The lib + unit tests are the windows-supported surface today. 2. platform-independent rot no CI ever saw: join_call/join_call_with_model grew a Result return (call_server_integration, call_server_routing_test, hold_music_test now .expect at the binding) and MemoryRecord grew origin_node/origin_seq (memory_recall_accuracy's four initializers). These were broken on LINUX too — the linux job only builds --lib. cargo check -p continuum-core --tests is now clean on macOS; the PR's windows job verifies the msvc side. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Windows grid node (the CUDA lane) could not run ANY core test —
cargo testfailed to BUILD on windows-msvc, forcing every test-tree measurement (today: the K3 schedulable-coverage go/no-go) through a Mac as proxy.Fixes (real Windows arms, not just gates)
fs_portable.rs(new — Infra Bug: file/save Command Fails Due to Parameter Parsing Error #197's first concrete slice): portableread_exact_atwith pread semantics on both platforms (unixFileExt/ windowsseek_readloop,UnexpectedEofon short reads). Consumed byexpert_containerbank reads and the capacity io-probe — the two lib sites importingstd::os::unix::fs::FileExtun-gated.MetadataExtcfg-paired (windows:len()for both fields — honest apparent size, no fabricated allocation number).symlink_fileneeds privilege → copy fallback).#[ignore]d live unix-socket tests gated#[cfg(unix)]— ignored tests must still compile.#[cfg(all(test, unix))]; TCP-echo sibling for the windows transport arm tracked in Pressure-aware inference + content lifecycle cleanup #304.CI guard
New
cargo-check-windowsjob (windows-latest,check --lib --tests— the exact surfacecargo testbuilds, nothing executed). This class can never silently regress, and it's the first CI brick of #291's 3-platform front door. This PR's own windows job is the fix's verification — the Mac has no msvc toolchain, so CI is the compiler here.Unix arm verified locally:
cargo checkclean;fs_portable+expert_containersuites 9/9.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo