Repository navigation
test(e2e): wait for the reconstructed cache and pin a lifecycle endpoint - #12559
Merged
Merged
Conversation
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]>
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]>
Author
|
#12598 fixed |
bowenzhu21
marked this pull request as ready for review
October 5, 2026 16:43
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]>
Author
|
Narrowed again after #12617. It removed the CPU runtime test and fixed |
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.
Outcome
The standalone
cache_providerlive 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_providerreads/data/modelright afterkey(). On reconstruction the retained credential already exists, sokey()returns before the fixture script starts, and the read races the script's write. On4d15234it failed 19 of 30 runs on Linux ARM64 (Colima), each withcat: /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_againuses 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 askey()waits for the credential.deployment.rstests do.Verification
Linux ARM64 (Colima), Docker 29.5.2, Rust 1.98.1, on
4d15234with this change, bundle built from this branch:cache_provider30/30 (11/30 without the wait).ciprofile: 1042 passed.lifecycleprofile: 96 passed. Doc tests,cargo fmt --check, and Clippy with-D warningspass. Clippy also passes on macOS ARM64 fornemoclaw-e2e.Review notes
ollama_cache, which this PR also changed, so it now keeps v1's versions of those files.Signed-off-by: Bowen Zhu [email protected]