Skip to content

test(sdk): clone ObservationError where the interruption tests reuse it - #13101

Merged
cuongdangn merged 1 commit into
v1from
fix-12731-observation-error-clone
Oct 13, 2026
Merged

cuongdangn merged 1 commit into
v1from
fix-12731-observation-error-clone

Conversation

@cuongdangn

Copy link
Copy Markdown

Fixes the compile error that makes Build and test fail on v1. kubernetes_interruption.rs, added in #13081, reuses an ObservationError that #13056 made non-Copy; the helper now clones it. Production code is unchanged.

Failure

cargo ci clippy fails on v1 with E0382, use of moved value: class, at crates/nemoclaw-sdk/tests/kubernetes_interruption.rs:431. Build and test fails on linux_amd64, linux_arm64 and darwin_arm64 in the Rust desired-state push runs for 922a0c0f6f, e42f120617 and 2319d4fd79. The run for #13081's merge commit ae914f26a8 was cancelled.

#13056 made ObservationError Clone but no longer Copy. #13081 added assert_failed_connection_keeps_its_class, which passes its class argument by value to assert_observation twice. The CI of #13081 finished before #13056 merged, so neither pull request's CI ran with both changes.

Decision

The helper clones class for its first call, as the compiler suggests and #13056 prescribes for code that copied the value. The other call sites build the value inline and do not change.

Validation

Run on 89b74d4e46, based on v1 at 2319d4fd79, macOS arm64.

  • Before the change, cargo test --locked -p nemoclaw-sdk --test integration --no-run fails with the same E0382 on 2319d4fd79.
  • cargo ci passed (610 s): fmt, clippy, build, test (1397 passed), schema, bundle and lifecycle (136 passed).
  • The 12 kubernetes_interruption:: tests pass after the change.
  • Linux and the live steps were not run locally; CI covers them. linux_arm64 / Live / Kind also failed on fix: report bounded OpenShell rejections and harden teardown, locking, and test fixtures #13056's own push run (5b93c969f3), in kubernetes_live::on_openshift_the_sandbox_runs_as_the_namespace_uid, a test this change does not touch.

Refs #12731

🤖 Generated with Claude Code

#13081 added assert_failed_connection_keeps_its_class, which passes its
`class` argument by value to assert_observation twice. #13056 made
ObservationError Clone but not Copy, so the test target no longer
compiles (E0382, use of moved value: `class`) and `Build and test`
fails on v1. The helper now clones the value for its first call.

Refs #12731

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

@cuongdangn
cuongdangn merged commit d332930 into v1 Oct 13, 2026
@cuongdangn
cuongdangn deleted the fix-12731-observation-error-clone branch October 13, 2026 18:01
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance labels Oct 13, 2026
@wscurran wscurran added the v1 NemoClaw v1 branch label Oct 28, 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 chore Build, CI, dependency, or tooling maintenance v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants