Skip to content

test(e2e): wait for the reconstructed cache and pin a lifecycle endpoint - #12559

Merged
cv merged 11 commits into
NVIDIA:v1from
bowenzhu21:test/requalify-docker-fixtures
Oct 7, 2026
Merged

cv merged 11 commits into
NVIDIA:v1from
bowenzhu21:test/requalify-docker-fixtures

Conversation

@bowenzhu21

@bowenzhu21 bowenzhu21 commented Oct 1, 2026 •

Copy link
Copy Markdown

Outcome

The standalone cache_provider live test no longer races its fixture, and a lifecycle-profile test no longer depends on how an unroutable endpoint fails. Only test code changes.

Reason

  • cache_provider reads /data/model right after key(). On reconstruction the retained credential already exists, so key() returns before the fixture script starts, and the read races the script's write. On 4d15234 it failed 19 of 30 runs on Linux ARM64 (Colima), each with cat: /data/model: No such file or directory. It runs in the Live / Docker lane, which has passed it so far.
  • apply_health_failure_retains_resources_and_unchanged_apply_checks_again uses an unroutable inference endpoint, which can fail as a transport error or a timeout, so passive discovery can differ between applies. It failed on darwin_arm64 in CI runs 36622807113 and 37363419187 (2026-10-05).

Changes

  • cache_provider: wait for the model as key() waits for the credential.
  • Lifecycle test: pin the endpoint to a closed loopback port, as other deployment.rs tests do.

Verification

Linux ARM64 (Colima), Docker 29.5.2, Rust 1.98.1, on 4d15234 with this change, bundle built from this branch:

  • cache_provider 30/30 (11/30 without the wait).
  • Lifecycle test 15/15 in about 17 s, compared with about 44 s unpinned.
  • nextest ci profile: 1042 passed. lifecycle profile: 96 passed. Doc tests, cargo fmt --check, and Clippy with -D warnings pass. Clippy also passes on macOS ARM64 for nemoclaw-e2e.
  • No test containers remained. The diff contains no secrets, API keys, or credentials.

Review notes


Signed-off-by: Bowen Zhu [email protected]

Since b3f91bb, planning reads runtime metadata from each sandbox image.
5f931fb then supplied that metadata to four lifecycle fixtures, but
not to the Linux-only docker_provider_proxy test. Its first apply failed
at plan with "image runtime metadata is unavailable" before the proxy
existed, so the test stopped before its readiness, replacement, and
storage-guard checks. The test is opt-in, so no CI job reported it.

Serve the fixture image metadata with nemoclaw_e2e::image_runtime::engine,
as the other lifecycle fixtures do. The proxy service still runs on the
local Docker engine.

Validation: on Linux ARM64 (Docker 29.5.2, pinned OpenTofu 1.12.6), the
test passes on efe4cb7, fails at plan on b3f91bb, and passes with this
change on b2ae6b0.

Signed-off-by: Bowen Zhu <[email protected]>
cpu_runtime_provider_reconciles_compute_and_retains_data no longer
reached its assertions. Since its last recorded qualification on
2026-09-19, runtime plans gained gateway readiness (9d446d5),
OpenTofu-scheduled service readiness (87f7bc4), sandbox and target
discovery (4a411ed, b26267b), runtime image checks (bf3007a), and the
sandbox image runtime metadata requirement (b3f91bb). The fixture's
gateway, sandbox image, and SSH target are placeholders, and its
readiness and image checks still carried the unadapted remote spec.

Drop gateway readiness and the discovery observations of those
placeholders, and give the readiness and image checks the adapted spec
that the container uses. In the no-op check, accept reads of data
sources, which refresh on every plan; the SDK plan check accepts reads
only for its expected observations, but this fixture's graph is closed.
During storage-only teardown, keep only dependencies on retained
resources, as compile_teardown does.

Validation: with digest-pinned CPU fixture images for Ollama and vLLM on
Linux ARM64, the test passes on b2ae6b0 in five consecutive runs,
including restart, replacement, network recreation, retained data, and
storage-only teardown.

Signed-off-by: Bowen Zhu <[email protected]>
ollama_cache probes Ollama through a published loopback port. Until
Ollama listens, Docker's proxy accepts and resets those connections, so
Models::ready returned a transport error instead of the refusal it
retries. On Linux ARM64 under Colima, connections reset for about 300 ms
after start, and the test failed on its first probe.

Retry only that transport error, 200 ms apart, until 10 seconds after
the first probe; other errors still fail at once. Models::ready is
unchanged: production probes Ollama on loopback inside its own
container, where startup is expected to refuse connections.

Validation: the test fails on b2ae6b0 and passes in five
consecutive runs with this change.

Signed-off-by: Bowen Zhu <[email protected]>
After cache_provider removes the container and data volume and applies
again, it checked /data/model once. The retained credential already
exists, so key() returns as soon as the container runs, before its
process writes the model, and the check failed in 2 of 12 runs.

Wait for the reconstructed model with the same bounded loop that key()
uses for the credential.

Validation: on Linux ARM64, the test passes in 12 consecutive
runs with this change.

Signed-off-by: Bowen Zhu <[email protected]>
apply_health_failure_retains_resources_and_unchanged_apply_checks_again
compares deployment state across applies, including passive discovery
of the inference endpoint. The local fixture points at
172.20.0.1:11436, which can fail as either a transport error or a
timeout, so the recorded reason can differ between applies. CI run
36622807113 (darwin_arm64, 00ca8db) failed only on this test, with
"inference catalog observation timed out" on one side and "inference
endpoint could not be reached from the control host" on the other. The
test also failed in 2 of 14 local lifecycle-profile runs.

Pin the endpoint to a closed loopback port, which other lifecycle tests
in this file already use, so every apply records the same refusal.

Validation: on Linux ARM64, the test passes in 15 consecutive
lifecycle-profile runs with this change, in about 17 s instead of 45 s.
It still compiles and passes Clippy on macOS ARM64.

Signed-off-by: Bowen Zhu <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Oct 1, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

NVIDIA#12598 fixed docker_provider_proxy with the same image-engine fixture and
moved the key-mode change to Docker's archive API for the new shell-less
proxy image. Take v1's version of that test; this branch keeps the CPU
runtime fixture, Ollama cache, cache provider, and lifecycle test fixes.

Validation on 853a592 with these changes, Linux ARM64 (Colima), bundle
built from this tree, proxy images built with `docker buildx bake
ollama-proxy`: nextest ci profile 1038 passed, lifecycle profile 90
passed, doc tests, cargo fmt --check, and Clippy -D warnings pass.
docker_provider_proxy 2/2, CPU runtime 5/5 (fails on 853a592 alone),
ollama_cache 5/5, cache_provider 12/12, lifecycle test 15/15. macOS
ARM64: Clippy for the changed crates passes.

Signed-off-by: Bowen Zhu <[email protected]>
v1 now links each crate's tests into one integration binary (NVIDIA#12613).
This branch's test files are unchanged by the merge.

Validation on dcbf45c with these changes, Linux ARM64 (Colima), bundle
built from this tree: nextest ci profile 1032 passed, lifecycle profile
96 passed, doc tests, cargo fmt --check, and Clippy -D warnings pass.
docker_provider_proxy 1/1, CPU runtime 2/2, ollama_cache 3/3,
cache_provider 5/5, lifecycle test 5/5, run through the integration
binary.

Signed-off-by: Bowen Zhu <[email protected]>
@bowenzhu21

Copy link
Copy Markdown
Author

#12598 fixed docker_provider_proxy the same way, so I merged v1 and kept its version of that test. The remaining fixes (CPU runtime fixture, ollama_cache, cache_provider, and the lifecycle test) still pass on current v1, and I updated the description to match.

NVIDIA#12617 removed the CPU runtime live test and cache_provider.py, and fixed
ollama_cache with its own wait. Take v1's versions of those files. This
branch now keeps the lifecycle test's endpoint pin and adds the model
wait to the Rust cache_provider test.

The Rust test reads /data/model right after key(). On reconstruction the
retained credential already exists, so key() returns before the fixture
script starts, and the read races the script's write.

Validation on 4d15234 with these changes, Linux ARM64 (Colima), bundle
built from this tree: cache_provider 30/30 (11/30 on 4d15234 alone, each
failure `cat: /data/model: No such file or directory`), lifecycle test
15/15 in about 17 s (about 44 s unpinned). nextest ci profile 1042
passed, lifecycle profile 96 passed, doc tests, cargo fmt --check, and
Clippy -D warnings pass; Clippy passes on macOS for nemoclaw-e2e.

Signed-off-by: Bowen Zhu <[email protected]>
@bowenzhu21 bowenzhu21 changed the title test: requalify v1's Docker-backed fixtures and stabilize a lifecycle check test(e2e): wait for the reconstructed cache and pin a lifecycle endpoint Oct 6, 2026
@bowenzhu21

Copy link
Copy Markdown
Author

Narrowed again after #12617. It removed the CPU runtime test and fixed ollama_cache on its own, so I took v1's versions. What's left is the lifecycle endpoint pin and a model wait in the new Rust cache_provider test, which still raced here (19 of 30 runs failed without it, 30 of 30 pass with it).

@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images labels Oct 6, 2026
@cv
cv merged commit 3123705 into NVIDIA:v1 Oct 7, 2026
14 checks passed
@cv cv added the v1 NemoClaw v1 branch label Oct 12, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance platform: container Affects Docker, containerd, Podman, or images v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants