Repository navigation
feat(ci): select live HCL cases from changed files - #14236
Merged
Merged
Conversation
Add `nemoclaw-build changes cases`, which reports the live HCL cases that a commit's changes affect, with the commit analyzed and each case's reason. A case's own document and scenario select only that case; any change that selects the live suites selects every case, using the existing live path rules and Cargo analysis. It compares HEAD with its merge base with --base, and --add adds reviewed cases without removing any. An analysis failure selects every case. Refs #13939. Signed-off-by: Carlos Villela <[email protected]>
Add `nemoclaw-build images runtimes`, which lists the model runtime images each live HCL case's services run, read from its document. Live / HCL builds a case's runtime images from that list instead of matching `vllm` or `ollama` in the case name, so a case whose list is wrong fails to bind its image. `changes cases` uses the same list: a change under `image/vllm/` or `image/ollama/` selects the cases that run that image, and `image/supervisor/` selects every case that runs either. The Bake test checks that the runtimes group and Dockerfile paths match the list. Refs #13939. Signed-off-by: Carlos Villela <[email protected]>
Collaborator
Author
Authoring session — opening
|
Contributor
Live / HCL built vLLM for any case with `vllm` in its name and Ollama for any with `ollama`, so a rename or a case named otherwise built the wrong images. Add `nemoclaw-build images runtimes`, which lists the runtime images each live case's services run, read from its document, and build each case's images from that list. The Bake test checks that the runtimes group matches the list. Signed-off-by: Carlos Villela <[email protected]>
# Conflicts: # crates/nemoclaw-build/src/images.rs # crates/nemoclaw-build/src/main.rs # crates/nemoclaw-build/tests/bake.rs # internal-docs/contributing/testing.md
cv
added a commit
that referenced
this pull request
Nov 5, 2026
…14237) Live / HCL now builds each case's model runtime images from the services its case document declares, instead of from words in the case's name. ## Problem Live / HCL built the vLLM image for any case with `vllm` in its name and the Ollama image for any with `ollama`. A renamed case, or one that runs a model without the word in its name, would build the wrong images or none, and then fail at plan with an unbound image. ## Change - `nemoclaw-build images runtimes` prints, as JSON, each live HCL case's runtime images: the Bake targets named by its document's `spec.services.*.kind`. A live case is a scenario in `crates/nemoclaw-e2e/tests/e2e/hcl/tests/` with a case document of the same name. - Live / HCL's build job publishes that list, and each case's job builds its images from it. - `nemoclaw_build::images::RUNTIMES` names the runtime images; the Bake test checks that Bake's `runtimes` group builds exactly those plus the supervisor, so a new runtime image needs an entry. This is split from #14236, which uses the same list to select the live cases a change affects. ## Beyond CI - On this branch, `nemoclaw-build images runtimes` lists `vllm` for `docker-openclaw-vllm` and `docker-openclaw-vllm-shared`, `ollama` for `docker-openclaw-hermes-ollama`, and nothing for the other seven cases: the same images the name matching built. - The workflow change runs first on a `v1` push or a manual run, because pull requests don't run the GPU cases. Signed-off-by: Carlos Villela <[email protected]>
# Conflicts: # crates/nemoclaw-build/src/images.rs # crates/nemoclaw-build/tests/bake.rs # internal-docs/contributing/testing.md
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.
Maintainers can ask which live HCL cases a commit affects with
nemoclaw-build changes cases, for example before running the GPU cases, which pull requests don't run.Problem
The live HCL cases run all or nothing: when the validation plan selects the live suites, every case runs. On pull requests, the GPU cases (
docker-openclaw-vllm,docker-openclaw-vllm-shared,docker-openclaw-hermes-ollama) don't run at all, because NVIDIA's GPU runners refuse pull request jobs, and nothing tells a maintainer which of them a change affects.Part of #13939. This meets its acceptance criteria, except that selection comes from the existing live path rules, the case files, and the runtime image list rather than from a separate change map. #14110 proposed that map and is superseded by this change.
Change
nemoclaw-build changes cases --base REV [--add CASE]...prints JSON with the commit analyzed, the selected case IDs, and each case's reason.image/vllm/andimage/ollama/select the cases whose documents declare a service of thatkind, from the runtime image list that Live / HCL builds from (fix(ci): build each live HCL case's runtime images from its services #14237);image/supervisor/selects every case that runs either. The Bake test checks the Dockerfile paths this relies on..config/determinator-live.tomland the Cargo package graph. A failed analysis selects every case.HEADwith its merge base with--base, so changes the base made since don't count.--addadds reviewed cases and removes none.analyze_manyinchanges.rssplits into a shared step and a per-workflow decision, without changing whatchanges plan,live, orimagesdecide.Only paths whose readers are known narrow the selection, so an input the selector doesn't recognize selects every case. Crate changes select every case, because every case runs the same
e2eexecutable and bundle. A hand-written path map like #14110's was rejected because it falls out of date and then silently skips cases.Left out: feeding the selection into the CI matrices, which changes what runs on pull requests and needs a trigger-policy decision.
Stacked on #14237.