Skip to content

test(e2e): stop the kind HCL case's cleanup from waiting out namespace deletion - #14177

Merged
cv merged 1 commit into
v1from
test/14087-three-agent-openshift-speed
Nov 4, 2026
Merged

cv merged 1 commit into
v1from
test/14087-three-agent-openshift-speed

Conversation

@cv

@cv cv commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Failure

On linux_amd64, the kind-openshift-agents HCL case (hcl_live::case, which replaced the three-agent Rust test) took 110.7-132.6 s in the last nine v1 Live / Kind runs, against a per-test limit raised to 180 s while #14087 is investigated.

A local cargo ci live-kind on linux_arm64 (20 CPUs) split one run of the case like this:

Run Seconds Where the time goes
cluster 6.6 Issuer key material and the fixture release, which waits for the stub model and issuer
apply 36.2 Gateway chart about 14 s, sandbox pods about 9 s, Fabric starting the agents about 10 s
reply 3.4
unchanged_plan 3.3
destroy 39.0 Stopping the agents about 6.5 s, then 30 s for the sandbox pods' grace period (#13959, ai-openshell/openshell#5025)
(cleanup) 12.3 The fixture release's uninstall waiting for Kubernetes to finalize its namespaces

The cleanup is the only large phase that this repository's test code controls.
The kind module's single Helm release held the three namespaces with wait = true, and the Helm provider applies wait to uninstall too, so tofu test waited for the namespaces to finish deleting from a cluster that the runner deletes next.

Decision

  • Release the chart twice: the namespaces, the pull Secret, and the issuer's CA without waiting, since they are ready once created; the stub model and the issuer with wait = true, as before, so the first apply still starts after both are ready.
  • On cleanup, the waiting release now waits only for its own objects, and the namespaces release deletes the three namespaces without waiting for them to finish deleting.
  • The namespaces release now holds the stub model's namespace as well. Its record is in default, which outlives the namespaces it deletes. Before, Helm created that namespace outside the release, and nothing deleted it until the cluster was deleted.
  • The case checks the same things as before.
  • The rest of the time belongs to other components: the destroy's 30 s grace period to OpenShell (Kubernetes destroy waits the termination grace period for every sandbox #13959, bug(sandbox): on Kubernetes, deleting a sandbox waits out the pods' termination grace period ai-openshell/openshell#5025), agent start and stop to Fabric and OpenClaw, and the gateway install to the OpenShell chart and kind's volume provisioner.

The per-test limit stays at 180 s for now; it should go back to 150 s once Live / Kind runs on linux_amd64 show the margin.

Part of #14087. Still open: the destroy grace period (#13959, waiting on ai-openshell/openshell#5025), and returning the Live / Kind limits to 150 s and 270 s.

Validation

Same machine (linux_arm64, 20 CPUs, no CPU limit), cargo ci live-kind, hcl_live::case:

Run 1 Run 2 Cleanup
Before (v1 at 259d08b) 100.9 s 98.4 s 12.3 s, 12.3 s
After 84.6 s 83.1 s 0.4 s, 0.4 s
  • cargo ci live-kind: passed twice with the change. A pod and namespace monitor on the kind node showed all three namespaces Terminating after cleanup.
  • cargo ci (fmt, clippy, build, test, schema, bundle, lifecycle): passed.
  • cargo run --locked -p nemoclaw-build -- fern check: passed, 0 errors (Node 25.9.0 rather than the pinned 24.22.1).
  • tofu fmt -check on kind/main.tf: passed.
  • CI Live / Kind on this PR, one run: hcl_live::case took 101.9 s on linux_amd64 and 101.1 s on linux_arm64, against 110.7-132.6 s and 113.3-119.7 s in the last nine v1 runs. One run doesn't justify lowering the limit to 150 s, so that stays open.

…e deletion

The kind module's one Helm release held the three namespaces and waited on
uninstall too, so tofu test's cleanup waited about 12 s for Kubernetes to
finalize the namespaces of a cluster the runner deletes next. Release the
namespaces, pull Secret, and CA without waiting, and the stub model and
issuer in a second release that still waits for readiness.

Part of #14087.
@cv

cv commented Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author
Authoring session — opening
Field Status Value Evidence or limit
Harness partial pi 1.5.0 (codemode typescript tool) Install path in the system prompt; the session header records no harness version
Skills recorded nemoclaw-contributor-create-pr (complete read) Skill reads to the cutoff
Instruction files partial AGENTS.md (injected); WRITING.md (complete read); PULL_REQUEST_TEMPLATE.md (complete read); SESSION_REPORT_TEMPLATE.md (complete read) docs/design/scope.md and docs/contributing/testing.md were read in part only
Tool calls partial typescript: 63 Wrapper calls to the cutoff, including failed ones; nested shell, git, and gh calls inside each wrapper are not counted
Session window recorded 2026-11-04T08:04Z to 2026-11-04T08:42Z; 38 min First event to cutoff (PR creation), including idle time
Compactions recorded 0 Complete record to cutoff; 2 context edits, no compaction
Models recorded azure/anthropic/claude-opus-5-5 Model change events; no changes
Reasoning levels recorded medium Thinking level events; no changes

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 7362e56 into v1 Nov 4, 2026
62 checks passed
@cv
cv deleted the test/14087-three-agent-openshift-speed branch November 4, 2026 08:59
sandl99 added a commit that referenced this pull request Nov 4, 2026
With #14177's cleanup change merged, the development case took 137.9 s
and 136.9 s and the step 243.0 s and 232.6 s, within 180 s and 300 s.
@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 area: security Security controls, permissions, secrets, or hardening chore Build, CI, dependency, or tooling maintenance platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch labels Nov 4, 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: docs Documentation, examples, guides, or docs build 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 platform: k8s Affects Kubernetes deployments v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants