Skip to content

test(sdk): share the verified test bundle writer - #13113

Merged
cv merged 1 commit into
test/scripted-tofu-concurrencyfrom
test/shared-scripted-fixtures
Oct 13, 2026
Merged

cv merged 1 commit into
test/scripted-tofu-concurrencyfrom
test/shared-scripted-fixtures

Conversation

@cv

@cv cv commented Oct 13, 2026

Copy link
Copy Markdown
Collaborator

deployment.rs and scripted_tofu.rs now share one test bundle writer.

Stacked on #13112.

Why

Both tests wrote a bundle whose manifest verifies. scripted_tofu.rs (#13081) kept a copy of deployment.rs::write_bundle that differed only for libexec/tofu, because deployment.rs also runs on Windows and the scripted copy needs Unix.

Change

  • tests/support/bundle.rs adds write_bundle(directory, tofu: Option<&str>). Without a script, every file is a non-executable fixture. With one, libexec/tofu is that script, written with write_executable from test: write test executables out of process #13111. Passing a script on a platform other than Unix panics.
  • deployment.rs and scripted_tofu.rs call it and drop their own copies.

I left two other duplicates alone:

  • Events in nemoclaw-e2e/tests/helm_recovery.rs, which is two methods long.
  • Snapshot there and Untouched in kubernetes_interruption.rs, which check different state.

Both sit in other crates, so sharing them would mean adding them to nemoclaw-test-fixtures for little gain.

Validation

  • cargo test -p nemoclaw-sdk --test integration: 444 passed.
  • cargo ci on linux_arm64: all steps passed. GitHub CI checks the Windows build of deployment.rs; I couldn't cross-compile it here.

deployment.rs and scripted_tofu.rs each wrote a bundle whose manifest
verifies; scripted_tofu.rs kept a copy because deployment.rs also runs on
Windows. tests/support/bundle.rs now writes both: without a script every
file is non-executable, and with one libexec/tofu is that script, which
needs Unix.
@cv
cv merged commit a356937 into test/scripted-tofu-concurrency Oct 13, 2026
@cv
cv deleted the test/shared-scripted-fixtures branch October 13, 2026 18:46
@wscurran wscurran added area: ci CI workflows, checks, release automation, or GitHub Actions chore Build, CI, dependency, or tooling maintenance labels Oct 13, 2026
@cv cv added the v1 NemoClaw v1 branch label Nov 17, 2026
@cv cv added this to the Roadmap: GTC DC 2026 milestone Nov 19, 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.

2 participants