Repository navigation
feat(docker): reach SSH container engines from Windows - #12945
Merged
Merged
Conversation
…ssing Fake Docker engines listened only on Unix sockets, so every engine test was gated to Unix and Windows ran none of them. Fixture::engine serves a Unix socket on Unix. Elsewhere it serves loopback TCP and returns ssh://127.0.0.1:PORT, and puts nemoclaw-test-fixtures' new nemoclaw-fixture-ssh relay first on PATH as ssh: the relay forwards docker system dial-stdio to that port, as an SSH engine would. nemoclaw-docker's engine tests now use it on every platform; on Windows they fail until the SSH transport supports it. Part of #12943.
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
The workspace forbids unsafe code, which setting PATH needs. Windows resolves a bare program name in the launching executable's directory before PATH, so the relay installed there serves the engine client.
NemoClaw on Windows could reach no container engine: the SSH transport and SSH host observation compiled only on Unix, although they only run ssh, relay docker system dial-stdio over its standard input and output, and run their measurement script on the remote host. Windows ships an OpenSSH client. Both now compile and run on every platform. Local socket engines stay Unix-only, and connecting to one elsewhere reports that. The execution targets design notes that SSH engines work from every client. Part of #12943.
Storage, credential, managed gateway, service status and capacity, runtime image, and gateway process tests were gated to Unix only because their fake engine served a Unix socket. They now use Fixture::engine, which reaches the same fake over SSH on Windows. Part of #12943.
The SSH transport, now built on Windows too, speaks HTTP over ssh's standard input and output with hyper.
Two tests serve archive stat headers from a bespoke Unix socket server, which Fixture cannot send yet.
SSH host observation, now built on Windows, parses the nvidia-smi output it reads from the remote host; only local queries need Linux.
The Windows-only test asserted that SSH engines were unsupported there.
cv
marked this pull request as ready for review
October 9, 2026 23:45
Contributor
cv
added a commit
that referenced
this pull request
Oct 10, 2026
…atform (#12956) Part of #12943 and #12876. ## Failure #12945 let in-process tests reach a fake engine over SSH on Windows, but tests whose providers OpenTofu launches stayed Unix-only. The relay was installed beside the test executable, not beside the providers. ## Decision - **Relay beside the providers:** where Unix sockets are missing, `TofuWorkspace` installs the `nemoclaw-fixture-ssh` relay as `ssh` beside the providers it copies. Windows resolves a bare program name in the launching executable's directory before `PATH`, so those providers reach `Fixture::engine` the way in-process tests do. `nemoclaw_test_fixtures::ssh_relay` locates the built relay. - **Ungated tests:** the `nemoclaw` provider's `discovery`, `gateway_readiness`, `runtime_image`, and `service_storage` contract tests now run on every platform. - On Windows, `discovery`'s unreachable engine is a closed loopback port instead of a missing socket. - **Archiving the relay:** the relay has an ignored test that the lifecycle profile selects. Archived lifecycle runs extract only the binaries their selected tests use, so this puts the relay beside the extracted tests. - **Still Unix-only:** - `vllm_runtime`: the bundled Docker provider passes its own `ssh` arguments, which the relay does not accept. - The production protocol test and `discovery::compiled_discovery_requires_runtime_metadata_but_allows_unknown_capabilities`: each plans a managed gateway, which needs a local engine that only Unix clients reach. Bundle-driven system tests (`deployment`, `export_observations`, `fabric_deployment`, `multiple_providers`, `remote_service`) stay Unix-only, because their providers run from the bundle directory. That is next in #12943. ## Validation - **Linux:** the `nemoclaw` contract binary (16 tests) passes through OpenTofu. - **Lint:** clippy at `-D warnings` and fmt are clean. - **Windows:** the lifecycle step runs 63 tests, all passing, where `v1` runs 52. An earlier run also tried the two managed-gateway tests above; they failed because they need a local engine, so they are Unix-only again.
cv
added a commit
that referenced
this pull request
Oct 10, 2026
Part of #12943 and #12876. ## Failure `deployment`, `export_observations`, `fabric_deployment`, `multiple_providers`, `sandbox_readiness`, and `web_search` were Unix-only. Image discovery reached their fake engine over a Unix socket. Their providers run from the state directory that OpenTofu installs from the bundle, so the relay cannot be placed beside them the way `TofuWorkspace` does since #12956. ## Decision - **Image fixture:** it now uses `Fixture::engine`, so on Windows it serves `ssh://127.0.0.1:PORT`. - **Relay on `PATH`:** on platforms without Unix sockets, the lifecycle step puts the `nemoclaw-fixture-ssh` relay, as `ssh`, first on the `PATH` it gives nextest. The SDK passes `PATH` to OpenTofu and its providers, so every process in a lifecycle test reaches fake engines through the relay. - **Archived runs:** the relay joins the lifecycle inputs, beside the providers. - **Still Unix-only:** `remote_service`, `service_capacity`, and `service_readiness` use `nemoclaw-e2e`'s SSH simulator. `cache_provider` needs a real local Docker engine. ## Validation - **Linux:** behavior is unchanged, because `Fixture::engine` still serves a Unix socket there. - **Local checks:** workspace clippy at `-D warnings`, fmt, and the lifecycle archive test pass. - **Windows:** in this PR's CI ([run](https://github.com/NVIDIA/NemoClaw/actions/runs/38038797350)), the Windows lifecycle step ran 97 tests and all passed. That includes 24 `deployment`, 4 `fabric_deployment`, 4 `export_observations`, `multiple_providers`, and `sandbox_readiness` tests. `v1` runs 63, and ran 52 before #12945. - **Cost:** the Windows lifecycle step runs in one partition and now takes 256 s wall instead of 28 s. Windows does not enforce test budgets.
This was referenced Oct 10, 2026
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.
Part of #12943 and #12876.
Failure
NemoClaw on Windows could reach no container engine.
validate_engine_endpointacceptsunix:///andssh://endpoints, but both transports compiled only on Unix, as did SSH host observation. Windows clients therefore could not run managed services or gateways, or measure an SSH host.Tests followed the product. Every engine test was gated to Unix, because the fake Docker engine in
crates/test-support/http.rsserved only a Unix socket. Windows ran 1,125 of the 1,320 unit and integration tests thatlinux_amd64runs, and a missing gate broke only the Windows build, as in #12913.Decision
nemoclaw-dockerSSH transport is built on every platform. It runsssh … docker system dial-stdioand speaks HTTP over the process's standard input and output, andhyperis now a dependency everywhere for this. SSH host observation innemoclaw-provideris built on every platform too: its script runs on the remote host, andnemoclaw-runtimeparses the remotenvidia-smioutput it returns. Local socket engines stay Unix-only, and connecting to one elsewhere says so.Fixture::engineserves the fake engine where NemoClaw can reach it.ssh://127.0.0.1:PORT. A newnemoclaw-test-fixturesbinary,nemoclaw-fixture-ssh, relaysdocker system dial-stdioto that port and fails likesshfor anything else.ssh.exebeside the test executable, because Windows resolves a bare program name there beforePATH. The environment is not changed, which the workspace's ban onunsafewould forbid.Fixture::engineand run on every platform:nemoclaw-dockertests for engine, storage, and credential boundaries;nemoclaw-providertests for the managed gateway (planning, mutation, observation, storage, keys), service status and capacity, the Ollama proxy, runtime images, and the gateway process.Fixturecan't do yet. Each states why.docs/design/execution-targets.mdsays that SSH engines and SSH host measurements work from every client.OpenTofu-driven and system tests stay gated for now. Their providers run outside the test executable, so the relay must be installed beside them. That is next in #12943.
Validation
nemoclaw-dockerengine test with the fake engine and failed with "SSH container-engine connections are unsupported on this platform". It passes once the transport is built there.nemoclaw-test-fixturestests check that the relay reaches a loopback engine and rejects other commands and targets.-D warningsand fmt are clean, and the Unix test counts are unchanged.