Skip to content

In integration tests, create workspaces under RUNNER_TEMP when it's set. - #5243

Merged
davidmorgan merged 3 commits into
dart-lang:masterfrom
davidmorgan:wren/runner-temp
Oct 21, 2026
Merged

davidmorgan merged 3 commits into
dart-lang:masterfrom
davidmorgan:wren/runner-temp

Conversation

@davidmorgan

Copy link
Copy Markdown
Contributor

On Windows runners RUNNER_TEMP is on D:, where file creation is much faster than in the default temp directory on C:.

On Windows runners RUNNER_TEMP is on D:, where file creation is much
faster than in the default temp directory on C:.
@davidmorgan
davidmorgan requested a review from jensjoha October 21, 2026 13:16
/// 2026-10-21 in the Windows integration tests: p99 file create time was
/// 177-882ms on C: and 18-89ms on D:.
static Directory get _tempParent {
final runnerTemp = Platform.environment['RUNNER_TEMP'];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not just use TEMP or TMPDIR (or whatever is applicable on the platform) for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, expanded the comment to explain.

GitHub sets TEMP to a not-useful value on the slower C, so that's exactly where we want to not use the defailt TEMP.

@davidmorgan
davidmorgan merged commit 5f5641b into dart-lang:master Oct 21, 2026
58 checks passed
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.

2 participants