Skip to content

Remove env_inherit HOME from all Bazel tests#27

Merged
afq984 merged 1 commit into
google:mainfrom
afq984:push-oukkruptzzvw
Apr 13, 2026
Merged

Remove env_inherit HOME from all Bazel tests#27
afq984 merged 1 commit into
google:mainfrom
afq984:push-oukkruptzzvw

Conversation

@afq984
Copy link
Copy Markdown
Collaborator

@afq984 afq984 commented Apr 13, 2026

Each test harness now creates a per-invocation tempdir for HOME instead of inheriting the host's HOME, making tests hermetic and parallel-safe.

  • wsb_unit_test: set HOME explicitly in data_home_falls_back_to_home
  • sandbox_test: sandbox_with_home() takes an explicit HOME path; each test creates its own tempfile::tempdir()
  • wsb_test: start_wsb() creates and returns a tempfile::TempDir
  • dist_test: use t.TempDir() as HOME for sandbox subprocess

Each test harness now creates a per-invocation tempdir for HOME instead
of inheriting the host's HOME, making tests hermetic and parallel-safe.

- wsb_unit_test: set HOME explicitly in data_home_falls_back_to_home
- sandbox_test: sandbox_with_home() takes an explicit HOME path; each
  test creates its own tempfile::tempdir()
- wsb_test: start_wsb() creates and returns a tempfile::TempDir
- dist_test: use t.TempDir() as HOME for sandbox subprocess
@afq984 afq984 enabled auto-merge (rebase) April 13, 2026 22:26
@afq984 afq984 merged commit cc71c03 into google:main Apr 13, 2026
3 checks passed
@afq984 afq984 deleted the push-oukkruptzzvw branch April 13, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant