Skip to content

test: use TEST_TMPDIR as fallback for E2E temporary directory - #34585

Merged
alan-agius4 merged 3 commits into
angular:mainfrom
alan-agius4:test/e2e-test-tmpdir
Oct 29, 2026
Merged

alan-agius4 merged 3 commits into
angular:mainfrom
alan-agius4:test/e2e-test-tmpdir

Conversation

@alan-agius4

Copy link
Copy Markdown
Collaborator

Use Bazel's TEST_TMPDIR when E2E_TEMP is not set so that E2E projects and package caches are created on the main disk inside the Bazel test sandbox rather than /tmp (which is a quota-limited tmpfs on ubuntu-26.04). This also allows reverting E2E CI jobs back to ubuntu-latest.

Use Bazel's TEST_TMPDIR when E2E_TEMP is not set so that E2E projects and package caches are created on the main disk inside the Bazel test sandbox rather than /tmp (which is a quota-limited tmpfs on ubuntu-26.04). This also allows reverting E2E CI jobs back to ubuntu-latest.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the mktempd utility function to handle environment variables internally, falling back to process.env.E2E_TEMP, process.env.TEST_TMPDIR, or tmpdir() when tempRoot is not provided. It also simplifies the call to mktempd in tests/e2e_runner.ts. A review comment suggests using the logical OR operator (||) instead of the nullish coalescing operator (??) for environment variables to ensure empty strings are correctly treated as falsy and fall back to the next option.

Comment thread tests/e2e/utils/utils.ts Outdated
@alan-agius4 alan-agius4 added target: patch This PR is targeted for the next patch release action: merge The PR is ready for merge by the caretaker labels Oct 29, 2026
@alan-agius4
alan-agius4 force-pushed the test/e2e-test-tmpdir branch 2 times, most recently from 2bd3dc6 to 6ade441 Compare October 29, 2026 10:34
@alan-agius4
alan-agius4 force-pushed the test/e2e-test-tmpdir branch 6 times, most recently from 5ef6a0e to d718bf6 Compare October 29, 2026 14:45
@alan-agius4
alan-agius4 merged commit af2b354 into angular:main Oct 29, 2026
15 checks passed
@alan-agius4
alan-agius4 deleted the test/e2e-test-tmpdir branch October 29, 2026 14:59
@alan-agius4

Copy link
Copy Markdown
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants