Skip to content

feat(ci): select live HCL cases from changed files - #14236

Merged
cv merged 5 commits into
v1from
ci/hcl-case-selection
Nov 5, 2026
Merged

cv merged 5 commits into
v1from
ci/hcl-case-selection

Conversation

@cv

@cv cv commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

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 (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.
  • 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.

cv added 2 commits November 5, 2026 12:35
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]>
@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: 92 Wrapper calls, including 2 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-05T19:58Z; 87 min First event to cutoff, including discussion of #14110 before authoring and idle time
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

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
cv changed the base branch from v1 to ci/hcl-runtime-images November 5, 2026 20:19
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]>
Base automatically changed from ci/hcl-runtime-images to v1 November 5, 2026 20:39
# Conflicts:
#	crates/nemoclaw-build/src/images.rs
#	crates/nemoclaw-build/tests/bake.rs
#	internal-docs/contributing/testing.md
@cv
cv enabled auto-merge (squash) November 5, 2026 21:26
@cv
cv merged commit dfad934 into v1 Nov 5, 2026
66 checks passed
@cv
cv deleted the ci/hcl-case-selection branch November 5, 2026 21:46
@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