Repository navigation
test: link providers into OpenTofu test workspaces on Unix - #13380
Merged
Merged
Conversation
… 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.
Contributor
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.
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::contractbudget failure (#13376, #13348). This PR's CI showed no Linux change:openshell-provider::contractnemoclaw-provider::contractfabric-provider::contract"Before" is run 38988429435 attempt 3 (#13378); "after" is this PR's first run.
Change
On Unix,
TofuWorkspacelinks 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:openshell-providercontract (62 tests)nemoclaw-providercontract (26 tests)fabric-providercontract (4 tests)Also ran
cargo fmt --all --check, Clippy fornemoclaw-test-fixtures, and thenemoclaw-test-fixturestests.