Skip to content

feat(ci): run only the selected live HCL cases, where their documents place them - #14238

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

cv merged 8 commits into
v1from
ci/hcl-case-placement

Conversation

@cv

@cv cv commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

On pull requests, CI now runs only the live HCL cases the change affects, and each case's document decides where it runs, replacing four hand-kept lists of cases.

Problem

When the plan selected the live suites, CI ran every live HCL case, even for a change to one case's document. Four separate lists decided where each case ran: the hosted matrix in e2e-platform.yml, the matrix in hcl-e2e.yml, KIND_CASES in run_ci/live_kind.rs, and the case constants in run_ci/live_docker.rs. Nothing checked that a new case was in any of them, so a case left out never ran. Live / HCL also chose a case's runner and whether it received the NVIDIA API key by matching vllm or ollama in its name.

Part of #13939.

Change

  • Each case's document decides where it runs, in this order: a kubernetes or openshift gateway runtime in the kind suite; a vllm or ollama service on the GPU runner; a provider that reads NVIDIA_INFERENCE_API_KEY in a hosted job; anything else in the Docker live suite. Every case lands somewhere, and a misplaced one fails for lack of its cluster, GPU, or key rather than being skipped. Only cases that read the key receive it. These rules place today's 10 cases as before.
  • changes cases reports the selected cases by where they run and those that read the key; --all selects every case without analysis.
  • The validation plan publishes that selection when it selects the live suites: on a pull request, the cases its changes affect; on v1 pushes and manual runs, every case. It now compiles the planner on those runs too, with the Rust cache.
  • The hosted matrix, Live / HCL's matrix, runner, and key, and cargo ci live-docker and live-kind (through --hcl-cases) run only the selected cases. The kind suite runs only HCL cases, so it is skipped when none is selected. Without --hcl-cases, a local cargo ci live-docker or live-kind runs every case placed on it.
  • E2E Docker tests still binds each case to its run with code in run_ci/live_docker.rs; it refuses a case without a binding instead of skipping it. Generic binding would remove that last per-case code and is left for later.
  • The Rust live tests still run whenever the plan selects the live suites.

Beyond CI

  • changes cases --all on this branch places docker-dummy and docker-openclaw-hermes-interfaces in the Docker suite, both kind-* cases in the kind suite, docker-openclaw-nvidia and both v0-parity cases in hosted jobs, and the two vLLM cases and docker-openclaw-hermes-ollama on the GPU runner, with the key for the hosted cases and docker-openclaw-hermes-ollama: the same as the removed lists and name matching.
  • Live / HCL's matrix script, run locally on that output, gives the three GPU cases, plus the three hosted ones when hosted is set.
  • This pull request changes crates, so its own CI selects every case. Narrower selections and the v1 push path, including Live / HCL, run first after merge.

cv added 5 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]>
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
… place them

On a pull request, CI ran every live HCL case whenever the plan selected
the live suites, and four hand-kept lists decided where each case ran:
the hosted and GPU workflow matrices, `KIND_CASES`, and the live-docker
case constants. Nothing checked that a new case was in any of them.

Each case's document now decides where it runs: a Kubernetes or
OpenShift gateway in the kind suite, a managed vLLM or Ollama service on
the GPU runner, a case that reads NVIDIA_INFERENCE_API_KEY in a hosted
job, and any other case in the Docker live suite. Only cases that read
the key receive it. The validation plan publishes the selected cases by
where they run (every case on v1 pushes and manual runs), and the hosted
matrix, Live / HCL's matrix and runner, and `cargo ci live-docker` and
`live-kind --hcl-cases` run only those. The kind suite is skipped when
no kind case is selected. The Rust live tests still run whenever the
plan selects the live suites.

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: 188 Wrapper calls, including 3 failures, counted from the session record to cutoff; the record doesn't list the git, cargo, gh, docker, and file calls each program made
Session window recorded 2026-11-05T18:31Z to 2026-11-05T20:58Z; 147 min First event to cutoff, including idle time; the same session first wrote #14236 and #14237, on which this change stacks
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

cv added 2 commits November 5, 2026 14:25
# Conflicts:
#	crates/nemoclaw-build/src/images.rs
#	crates/nemoclaw-build/tests/bake.rs
#	internal-docs/contributing/testing.md
Base automatically changed from ci/hcl-case-selection to v1 November 5, 2026 21:46
# Conflicts:
#	crates/nemoclaw-build/src/changes.rs
#	crates/nemoclaw-build/src/main.rs
#	crates/nemoclaw-build/tests/changes.rs
#	internal-docs/contributing/testing.md
@cv
cv enabled auto-merge (squash) November 5, 2026 21:47
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit c2596a9 into v1 Nov 5, 2026
119 of 122 checks passed
@cv
cv deleted the ci/hcl-case-placement branch November 5, 2026 22:13
cv added a commit that referenced this pull request Nov 11, 2026
Brings the contributor guides, three skills, and four workflow comments
in line with what `v1` does now, for maintainers who run or change CI
and the test suites. Only documentation and comments change.

## Problem

An audit of `internal-docs/`, `.agents/skills/`, `AGENTS.md`,
`WRITING.md`, and the comments in `.github/workflows/` and
`.github/actions/` against the commits in `v0.1.0-rc9..origin/v1` and
the current code found statements that no longer hold:

- `testing.md` gave the old contract budgets for
`fabric-provider::contract` (25/10/20 s) and
`nemoclaw-provider::contract` (45/8/16 s); `.config/test-budgets.yaml`
and `.config/nextest.toml` now set 32/16/32 s and 82/12/24 s.
- `testing.md` still described an offline runtime-rebuild test in the
`live-docker` profile, which went away with the runtime builder; every
test in that profile now uses Docker and runs in the `docker-engine`
group. It also said the `live-docker` report joins "four" nextest
commands, while the same page counted five; since #14238 the count
depends on the selected Docker HCL cases, which `--hcl-cases` names, and
the page didn't mention that option's rules.
- `testing.md` said `changes live-images` looks for a commit that pushed
"all four images"; `LIVE_PULLED` in `crates/nemoclaw-build/src/ci.rs`
has three (OpenClaw, Hermes, dummy) since #14250.
- `testing.md` said Docker and Kind jobs restore the shared Rust cache.
Since the live suites run from archives (`.github/actions/live-suite`),
only `E2E build images` restores it; Live / HCL's `Build` job uses its
own `hcl-deps-v1` prefix.
- `testing.md` and `live-tests.md` said a manual dispatch needs the
workflow on the default branch, as GitHub's documentation says, and so
told readers to run the advisory check locally and Live / Brev only
through a pushed branch. GitHub has accepted dispatches of `CI /
Dependencies` on a feature branch, including the advisory step, and of
`Live / Brev` on `v1`, although `main` is the default branch; the
evidence comment links the runs. `brev.yml` made the same claim in a
comment.
- `testing.md` didn't mention CI / Dependencies' `Python scripts` check,
the manual `E2E / Colossus runner connectivity` workflow (#14305,
#14340), or the Buildx warm-up before the Linux unit tests (#14367).
- `testing.md` told authors to report commands and results in the PR,
and `documentation.md` asked for `docs:` commits that explain "the
decision and validation"; #14214 changed the template to Problem,
Change, and Beyond CI, and `AGENTS.md` now sends local check results to
whoever asked for the change.
- `live-tests.md` placed the three hosted HCL cases on Live / HCL;
#14238 moved them to CI / Bundle's `E2E HCL CASE` jobs on Linux AMD64.
- `integration-tests.md` said the GTC DC Kubernetes scenario plans
against an existing gateway and that its HCL equivalent isn't planned.
#14315 made the example install a managed Kubernetes gateway, added
`gtc-dc-kubernetes-amd64-hcl`, which plans
`examples/kubernetes/hosted-nvidia.tf`, let the runner take a single
`.tf` file, and kept a managed Kubernetes gateway's endpoint when
redirecting to the fixtures.
- `integration-tests.md`'s `nemoclaw-provider` contract table missed
`gpu_requests` (#14401), `readiness_refs`, and `references`.
- Workflow comments: `e2e-platform.yml` referred to a "required E2E
check" and said no required check depends on the live suites, though a
failed suite fails `Test / PLATFORM`; `image-build.yml` said the live
suites pull the proxy image; `hcl-e2e.yml` said the hosted cases run "on
every run", though they run only when selected and not on forks' pull
requests.
- Skills: `add-fabric-harness` omitted the `read_write` key that
`image/fabric/catalog.py` accepts in `adapters.json` (#14037);
`write-tests`' `tofu test` reference omitted single-file HCL modules;
`verify-yaml-deployment` said all committed examples use ports
17901–17909 and 172.30.180–188, which only the GTC DC examples do.

## Change

- `internal-docs/contributing/testing.md`: the budgets, the
`docker-engine` group, the `live-docker` commands and `--hcl-cases`
rules, the image count, the opt-in `live-images` step, the `tools/ci`
push path and `Python scripts` check of the dependency workflow, the
dispatch command for the advisory step, the Colossus workflow, the
Buildx warm-up, the cache-sharing paragraph, and the reporting rule
above.
- `internal-docs/contributing/live-tests.md`: the runner of the hosted
cases, and how to run Live / Brev on `v1`.
- `internal-docs/contributing/integration-tests.md`: the module sources,
the Kubernetes endpoint exception, both GTC DC Kubernetes rows, and
three contract-table rows.
- `internal-docs/contributing/documentation.md`: the pull request title
and description rule.
- `.agents/skills/`: the three skill corrections above.
- `.github/workflows/{e2e-platform,image-build,hcl-e2e,brev}.yml`:
comments only.

Checked and left unchanged: `configuration-schema.md` (paths, commands,
generator behavior), `releases.md` (the 11 agent packages match
`HARNESSES` in `docker-bake.hcl`; the prune keeps 10 commits),
`image-assessment.md` (Syft 1.55.0, Grype 0.121.0, the 72-hour database
limit, the 120-second timeout, and the acceptance test's name),
`agent-image-maintenance.md`, `documentation-build.md`, the design
records' pins and source paths (OpenShell revision `5d25211b`, Helm
provider 3.3.0), the kind and interface scenario details in
`live-tests.md` against their `.tftest.hcl` files, `AGENTS.md`,
`WRITING.md`, the PR creation skill, and the historical evidence pages.

Left out, because they are outside this audit's scope:

- #14414: `.github/actions/setup-docs/action.yml` restores
`cache-prefix: native-bundle-v3`, but the bundle job has written
`native-bundle-v4` since #14355, so documentation builds restore no
current cache. `testing.md` now says so and links the issue.
- #14415: the comments in `.config/nextest.toml` and
`.config/test-budgets.yaml`, and the `cargo ci` step help in
`crates/nemoclaw-build/src/main.rs`, are stale in the same way as
`testing.md` was.

## Beyond CI

A local check of every relative link and heading anchor in
`internal-docs/`, `.agents/`, `AGENTS.md`, `WRITING.md`, and
`.github/*.md` found no broken target; `fern check` covers only the
published pages.
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: e2e End-to-end tests, nightly failures, or validation infrastructure area: security Security controls, permissions, secrets, or hardening 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 area: security Security controls, permissions, secrets, or hardening 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