Skip to content

feat(e2e): select live HCL cases from changed inputs - #14110

Closed
HOYALIM wants to merge 1 commit into
NVIDIA:v1from
HOYALIM:codex/13939-e2e-selection
Closed

HOYALIM wants to merge 1 commit into
NVIDIA:v1from
HOYALIM:codex/13939-e2e-selection

Conversation

@HOYALIM

@HOYALIM HOYALIM commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Failure

The live HCL workflow has named cases, but no checked-in mapping selects those cases for a PR's changed inputs. Maintainers must choose the cases manually.

Decision

Add a read-only Rust command that reads the change map and paired case/scenario catalog from the supplied full commit SHA. It reports that SHA and sorted case IDs for changed inputs. Explicit maintainer-reviewed recommendations add cases without removing deterministic matches. The initial map covers the existing docker-openclaw-nvidia and docker-openclaw-vllm cases; this does not qualify new hardware or dispatch jobs.

Refs #13939.

Validation

  • Standalone Rust selector suite: 11 passed, including real executable runs over temporary Git commits, unchanged comparisons, dirty-map isolation, renames, deletion, and additive recommendations.
  • Shared input regression failed before expanding the map, then passed with versions, builder and live-support inputs covered.
  • rustc --edition=2024 -D warnings, rustfmt --check, Git whitespace checks and installed commit hooks passed.
  • Cargo workspace and hardware/live suites were not run: this command reads Git and emits selection JSON; it changes no provider or deployment execution. Live qualification remains maintainer-run.
  • Diff reviewed for secrets; none found.

Signed-off-by: Ho Lim [email protected]

@copy-pr-bot

copy-pr-bot Bot commented Nov 3, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@HOYALIM

HOYALIM commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author
Authoring session — opening

Scope: the delegated selector-authoring branch through 2026-11-03T00:19:59.590Z. Inherited parent history and subsequent report preparation/publication are excluded. Metadata identifies synthetic continuity recovery; the counts below cover the persisted active authoring record, not reconstructed prehistory.

Field Status Value Evidence or limit
Harness recorded Codex Desktop; CLI 0.166.0-alpha.5.1 Authoring metadata; synthetic continuity recovery.
Skills recorded nemoclaw-pr-loop; nemoclaw-contributor-create-pr Complete skill contents read in the authoring record; listed but unread skills excluded.
Instruction files recorded AGENTS.md (user injection and worktree); WRITING.md; target-branch-and-fork-routing.md; SESSION_REPORT_TEMPLATE.md; harness instructions (injected) Complete reads/injections to cutoff. Testing-guide excerpts and configuration/source reads are not counted as complete instruction files.
Tool calls recorded Wrappers: exec 32, wait 1. Separately nested: exec_command 32, apply_patch 13 Attempted calls, including failures, counted from custom_tool_call and function_call records; explicit nested invocations counted from wrapper inputs. Layers are not added. Shell commands and fixture subprocesses are not harness tool calls.
Session window recorded 2026-11-03T00:13:20.187Z to 2026-11-03T00:19:59.590Z; 399.403 seconds including idle time Whole active authoring-branch record to cutoff; parent history excluded.
Compactions recorded 0 No compaction event in the active authoring record through cutoff; no claim about inherited prehistory.
Models recorded gpt-6.1-sol All four recorded authoring turn contexts; no change observed.
Reasoning levels recorded low All four recorded authoring turn contexts; no change observed.

@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions area: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure v1 NemoClaw v1 branch labels Nov 3, 2026
@cv

cv commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Thank you for working on this, @HOYALIM. We're closing this pull request in favor of #14236, which builds the selection into nemoclaw-build changes instead of a separate script and path map.

Since this branch was opened, v1 has gone from 2 live HCL cases to 10, and docs/contributing/live-tests.md has moved. A hand-written map would need an entry for every case and every new path, and a missing entry would skip a case without any failure. #14236 instead takes the case list from the scenario and case files, reuses the live path rules and Cargo analysis that changes live already applies, and selects every case for any input it can't attribute to specific cases. It also compares from the merge base, so changes v1 made after a branch point don't select cases.

Your design for maintainer requests that only add cases, the exact commit in the output, and rename handling carried over into #14236.

@cv cv closed this Nov 5, 2026
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]>
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: docs Documentation, examples, guides, or docs build area: e2e End-to-end tests, nightly failures, or validation infrastructure v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants