Skip to content

test(e2e): check storage UIDs across SDK destroy and expired-token refusal - #13421

Merged
cv merged 1 commit into
v1from
test/kubernetes-destroy-identities
Oct 18, 2026
Merged

cv merged 1 commit into
v1from
test/kubernetes-destroy-identities

Conversation

@cv

@cv cv commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Note: this merged in its original form, with the expired-token and Helm release checks, before the narrowing below reached it. The narrowing is in #13422.

Part of #12731. Continues #13161 by @cuongdangn, keeping their authorship, rebased onto current v1 and narrowed to NemoClaw's own promise.

Failure

The live Kind tests that deploy through the public SDK only checked that no destroy change named kubernetes_storage. They never read the cluster after Deployment::destroy, so they would pass a destroy that deleted and recreated the namespace or encryption key, or replaced the gateway's claims.

Decision

  • After SDK destroy, the namespace, the encryption key Secret (its UID and a digest of the key) and the gateway's PersistentVolumeClaims must keep their UIDs. What destroy keeps is NemoClaw's promise.
  • A more reliable retained(): it counts only the gateway chart's claims, not an agent sandbox's workspace claim, which destroy deletes. It treats objects that are being deleted as not retained. Instead of panicking, it returns errors, so the test still cleans up.
  • Where the check runs: inside deploy_image_and_export, which the registry test and the OpenShift test both use. No new live test is added.

Dropped from #13161, because they test other components:

  • The gateway refusing an expired token: OpenShell verifies tokens; NemoClaw's part, classifying the failure, has unit coverage.
  • The Helm release record and StatefulSet disappearing after destroy: that's Helm's and Kubernetes' behavior; NemoClaw's graph destroying the release is checked from plans and state.

Production code is unchanged.

Validation

  • cargo ci passes locally: 1,589 unit tests and 153 lifecycle tests.
  • cargo ci live-kind passes locally: all 7 tests.

…fusal

SDK destroy must keep the namespace, the KEK Secret and the gateway's
PersistentVolumeClaim with unchanged UIDs, and the gateway installed from
the pinned chart must refuse an expired development token signed by the
deployment's own key. The checks run in the existing kind live tests.

Refs #12731

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Rebased onto v1 after #13379, which made apply complete through
fabric-agent-ctl: the destroy checks now run in deploy_image_and_export,
shared by the registry and OpenShift tests, instead of a separate plain
Kubernetes test.

Co-authored-by: Carlos Villela <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

@cv
cv merged commit 00c018c into v1 Oct 18, 2026
@cv
cv deleted the test/kubernetes-destroy-identities branch October 18, 2026 14:51
@cv cv changed the title test(e2e): check storage UIDs across SDK destroy and expired-token refusal test(e2e): check that SDK destroy keeps the gateway's storage identities Oct 18, 2026
@cv cv changed the title test(e2e): check that SDK destroy keeps the gateway's storage identities test(e2e): check storage UIDs across SDK destroy and expired-token refusal Oct 18, 2026
cv added a commit that referenced this pull request Oct 18, 2026
…estroy checks (#13422)

Part of #12731. Follows #13421, which merged before this narrowing
reached it.

## Failure

#13421 added three live Kind checks, two of which test other components:

- **The gateway refusing an expired development token:** token
verification is OpenShell's.
- **The Helm release record and StatefulSet disappearing after SDK
destroy:** that's Helm's and Kubernetes' behavior.

NemoClaw's part, classifying an authentication failure and having its
graph destroy the release, already has unit and plan-level coverage.

## Decision

- **Removed:** both checks.
- **Kept:** NemoClaw's own promise. After SDK destroy, the namespace,
encryption key Secret and gateway PersistentVolumeClaims keep their
UIDs, observed through #13421's more reliable `retained()`.
- **Docs:** the live-tests guide and a stale test comment are updated.
The comment claimed apply stops at the agent's health check, which
hasn't been true since #13379.

## Validation

This commit was tested on #13421's branch, whose code matches the merged
#13421:

- `cargo ci` passes locally: 1,589 unit tests and 153 lifecycle tests.
- `cargo ci live-kind` passes locally: all 7 tests.
@wscurran wscurran added 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 Oct 23, 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: 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.

3 participants