Repository navigation
test(e2e): check storage UIDs across SDK destroy and expired-token refusal - #13421
Merged
Merged
Conversation
…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]>
cv
enabled auto-merge (squash)
October 18, 2026 14:37
Contributor
6 tasks
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.
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.
Part of #12731. Continues #13161 by @cuongdangn, keeping their authorship, rebased onto current
v1and 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 afterDeployment::destroy, so they would pass a destroy that deleted and recreated the namespace or encryption key, or replaced the gateway's claims.Decision
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.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:
Production code is unchanged.
Validation
cargo cipasses locally: 1,589 unit tests and 153 lifecycle tests.cargo ci live-kindpasses locally: all 7 tests.