-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bazel): consistently run integration tests in sandbox-like direct…
…ories As it can be seen in the `main` branch, one integration test fails on Windows. I just turned on this test to run on Windows. The erorr is not something new, but it surfaces here in the dev-infra repo because we use Yarn berry and Yarn 1.x. The intgeration test uses Yarn 1.x. but our project itself uses Yarn Berry. The integration test temporary directory (on Windows without the sandbox, or on other platforms without the sandbox) resides within the execroot directory, so that the `.yarnrc.yml` from the project is inherited. This causes inconsistent test results on platforms and makes integration tests rather non-hermetic (to an extent possible in platforms without an actual FS sandbox). We should fix this by always acquiring a test tmp directory in the system temporary directories, not relying on temporary directories provided by Bazel that might reside in the execroot.
- Loading branch information
1 parent
698f64c
commit 8a1e3fa
Showing
2 changed files
with
44 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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