Skip to content

fix(ci): build each live HCL case's runtime images from its services - #14237

Merged
cv merged 1 commit into
v1from
ci/hcl-runtime-images
Nov 5, 2026
Merged

cv merged 1 commit into
v1from
ci/hcl-runtime-images

Conversation

@cv

@cv cv commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

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.

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]>
@cv

cv commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness recorded Pi 1.5.0 with Pit code mode Session metadata and harness install path
Skills recorded test-driven-development (complete read); write-tests (complete read); nemoclaw-contributor-create-pr (complete read) Skill file reads to cutoff
Instruction files recorded AGENTS.md (injected); WRITING.md (complete read); .github/PULL_REQUEST_TEMPLATE.md (complete read); .github/SESSION_REPORT_TEMPLATE.md (complete read) Startup injection and file reads to cutoff
Tool calls partial typescript: 112 Wrapper calls, including 3 failures, counted from the session record to cutoff; the record doesn't list the git, cargo, gh, and file calls each program made
Session window recorded 2026-11-05T18:31Z to 2026-11-05T20:18Z; 107 min First event to cutoff, including idle time; the same session first wrote #14236, which this change was split from
Compactions recorded 0 Complete record to cutoff; context elisions are not compactions
Models recorded claude-opus-5-5 Model change event and assistant turns; no changes
Reasoning levels recorded high Thinking level event and assistant turns; no changes

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 6e9beef into v1 Nov 5, 2026
68 checks passed
@cv
cv deleted the ci/hcl-runtime-images branch November 5, 2026 20:39
cv added a commit that referenced this pull request Nov 5, 2026
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.

- A case's own document and scenario select only that case.
- `image/vllm/` and `image/ollama/` select the cases whose documents
declare a service of that `kind`, from the runtime image list that Live
/ HCL builds from (#14237); `image/supervisor/` selects every case that
runs either. The Bake test checks the Dockerfile paths this relies on.
- Any other change that the live analysis counts selects every case,
using the existing rules in `.config/determinator-live.toml` and the
Cargo package graph. A failed analysis selects every case.
- It compares `HEAD` with its merge base with `--base`, so changes the
base made since don't count. `--add` adds reviewed cases and removes
none.
- Refactor: `analyze_many` in `changes.rs` splits into a shared step and
a per-workflow decision, without changing what `changes plan`, `live`,
or `images` decide.

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 `e2e` executable 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.

---------

Signed-off-by: Carlos Villela <[email protected]>
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch labels Nov 13, 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: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants