Repository navigation
feat(ci): run only the selected live HCL cases, where their documents place them - #14238
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]>
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]>
Collaborator
Author
Authoring session — opening
|
# Conflicts: # crates/nemoclaw-build/src/images.rs # crates/nemoclaw-build/tests/bake.rs # internal-docs/contributing/testing.md
# 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
enabled auto-merge (squash)
November 5, 2026 21:47
Contributor
This was referenced Nov 6, 2026
This was referenced Nov 6, 2026
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.
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.
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 inhcl-e2e.yml,KIND_CASESinrun_ci/live_kind.rs, and the case constants inrun_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 matchingvllmorollamain its name.Part of #13939.
Change
kubernetesoropenshiftgateway runtime in the kind suite; avllmorollamaservice on the GPU runner; a provider that readsNVIDIA_INFERENCE_API_KEYin 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 casesreports the selected cases by where they run and those that read the key;--allselects every case without analysis.v1pushes and manual runs, every case. It now compiles the planner on those runs too, with the Rust cache.cargo ci live-dockerandlive-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 localcargo ci live-dockerorlive-kindruns every case placed on it.E2E Docker testsstill binds each case to its run with code inrun_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.Beyond CI
changes cases --allon this branch placesdocker-dummyanddocker-openclaw-hermes-interfacesin the Docker suite, bothkind-*cases in the kind suite,docker-openclaw-nvidiaand bothv0-paritycases in hosted jobs, and the two vLLM cases anddocker-openclaw-hermes-ollamaon the GPU runner, with the key for the hosted cases anddocker-openclaw-hermes-ollama: the same as the removed lists and name matching.hostedis set.v1push path, including Live / HCL, run first after merge.