Repository navigation
test(sdk): clone ObservationError where the interruption tests reuse it - #13101
Merged
Merged
Conversation
#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>
Contributor
|
v1 documentation preview: https://nvidia-preview-nemoclaw-v1-pr-13101.docs.buildwithfern.com/nemoclaw |
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.
Fixes the compile error that makes
Build and testfail onv1.kubernetes_interruption.rs, added in #13081, reuses anObservationErrorthat #13056 made non-Copy; the helper now clones it. Production code is unchanged.Failure
cargo ci clippyfails onv1with E0382,use of moved value: class, atcrates/nemoclaw-sdk/tests/kubernetes_interruption.rs:431.Build and testfails onlinux_amd64,linux_arm64anddarwin_arm64in theRust desired-statepush runs for922a0c0f6f,e42f120617and2319d4fd79. The run for #13081's merge commitae914f26a8was cancelled.#13056 made
ObservationErrorClonebut no longerCopy. #13081 addedassert_failed_connection_keeps_its_class, which passes itsclassargument by value toassert_observationtwice. The CI of #13081 finished before #13056 merged, so neither pull request's CI ran with both changes.Decision
The helper clones
classfor 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 onv1at2319d4fd79, macOS arm64.cargo test --locked -p nemoclaw-sdk --test integration --no-runfails with the same E0382 on2319d4fd79.cargo cipassed (610 s): fmt, clippy, build, test (1397 passed), schema, bundle and lifecycle (136 passed).kubernetes_interruption::tests pass after the change.linux_arm64 / Live / Kindalso failed on fix: report bounded OpenShell rejections and harden teardown, locking, and test fixtures #13056's own push run (5b93c969f3), inkubernetes_live::on_openshift_the_sandbox_runs_as_the_namespace_uid, a test this change does not touch.Refs #12731
🤖 Generated with Claude Code