Skip to content

test: link providers into OpenTofu test workspaces on Unix - #13380

Merged
cv merged 1 commit into
v1from
codex/link-test-providers
Oct 17, 2026
Merged

cv merged 1 commit into
v1from
codex/link-test-providers

Conversation

@cv

@cv cv commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

Why

Every provider contract test copied its providers into a fresh OpenTofu workspace. On macOS, the first launch of each fresh copy waits about 0.65 s for verification, so most of the local contract-test time went to copying and verifying. A symlinked provider starts in about 0.01 s.

This does not fix the linux_amd64 openshell-provider::contract budget failure (#13376, #13348). This PR's CI showed no Linux change:

Binary linux_amd64 before linux_amd64 after linux_arm64 before linux_arm64 after
openshell-provider::contract 182.4 s 186.6 s 175.9 s 172.2 s
nemoclaw-provider::contract 55.9 s 59.8 s 50.3 s 48.4 s
fabric-provider::contract 34.3 s 31.8 s 36.7 s 30.5 s

"Before" is run 38988429435 attempt 3 (#13378); "after" is this PR's first run.

Change

On Unix, TofuWorkspace links each provider into the workspace instead of copying it. Windows still copies: providers there must find the SSH relay beside them.

Validation

Local, macOS arm64, --test-threads=4:

Suite Copy Symlink
openshell-provider contract (62 tests) 45.4 s 11.9 s
nemoclaw-provider contract (26 tests) 22.1 s 11.2 s
fabric-provider contract (4 tests) 6.8 s 3.3 s

Also ran cargo fmt --all --check, Clippy for nemoclaw-test-fixtures, and the nemoclaw-test-fixtures tests.

… them

Every provider contract test copied its debug provider, about 150 MB on Linux, into a fresh workspace, and macOS verified each copy before its first launch. Symlink on Unix; Windows keeps copies so providers find the SSH relay beside them.
@github-actions

Copy link
Copy Markdown
Contributor

@cv cv changed the title test: link providers into OpenTofu test workspaces instead of copying them test: link providers into OpenTofu test workspaces on Unix Oct 17, 2026
@cv
cv merged commit 829290f into v1 Oct 17, 2026
@cv
cv deleted the codex/link-test-providers branch October 17, 2026 04:31
@wscurran wscurran added area: e2e End-to-end tests, nightly failures, or validation infrastructure chore Build, CI, dependency, or tooling maintenance platform: macos Affects macOS, including Apple Silicon 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 chore Build, CI, dependency, or tooling maintenance platform: macos Affects macOS, including Apple Silicon v1 NemoClaw v1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants