Skip to content

fix(portability): continuum-core builds on windows-msvc + CI guard (#304, first slice of #197) - #2123

Merged
joelteply merged 5 commits into
canaryfrom
fix/304-windows-msvc-test-build
Aug 3, 2026
Merged

joelteply merged 5 commits into
canaryfrom
fix/304-windows-msvc-test-build

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.

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): portable read_exact_at with pread semantics on both platforms (unix FileExt / windows seek_read loop, UnexpectedEof on short reads). Consumed by expert_container bank reads and the capacity io-probe — the two lib sites importing std::os::unix::fs::FileExt un-gated.
  • docker_tier: MetadataExt cfg-paired (windows: len() for both fields — honest apparent size, no fabricated allocation number).
  • bevy scene instantiate: symlink cfg-paired (windows symlink_file needs privilege → copy fallback).
  • ipc/mod.rs: the two #[ignore]d live unix-socket tests gated #[cfg(unix)] — ignored tests must still compile.
  • core_ipc_transport: unix-echo-server test mod gated #[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-windows job (windows-latest, check --lib --tests — the exact surface cargo test builds, 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 check clean; fs_portable + expert_container suites 9/9.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
joelteply and others added 2 commits August 2, 2026 19:09
… 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
@github-actions github-actions Bot added size: L and removed size: M labels Aug 3, 2026
joelteply and others added 2 commits August 2, 2026 19:33
…-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
@joelteply
joelteply merged commit 0a5ab63 into canary Aug 3, 2026
5 checks passed
@joelteply
joelteply deleted the fix/304-windows-msvc-test-build branch August 3, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant