Skip to content

perf(python_unit_tests): use the runner's local disk for temp files on Windows - #323

Merged
B4nan merged 1 commit into
mainfrom
perf/windows-fast-temp-dir
Sep 13, 2026
Merged

B4nan merged 1 commit into
mainfrom
perf/windows-fast-temp-dir

Conversation

@B4nan

@B4nan B4nan commented Sep 10, 2026

Copy link
Copy Markdown
Member

On Windows runners, python_unit_tests now sets TMP and TEMP to RUNNER_TEMP for the rest of the job. The default temp dir is on a network-backed disk that is 4-6x slower at small-file writes than the runner's local SSD. pytest's tmp_path and uv's scratch files both honor TEMP, so they land on the fast disk. Measured in apify/actor-templates#907. Nothing changes on Linux or macOS.

This workflow runs the Windows legs of crawlee-python, apify-sdk-python, apify-client-python and apify-shared-python. apify/actions#41 is the same change for the pnpm side.

…n Windows

The default Windows temp dir sits on a network-backed disk that is 4-6x
slower at small-file writes than the local SSD behind RUNNER_TEMP.
pytest's tmp_path and uv's scratch files honor TEMP, so point it there
for the rest of the job. Measured on apify/actor-templates#907. No-op on
Linux and macOS.
@B4nan B4nan added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Sep 10, 2026
@github-actions github-actions Bot added this to the 149th sprint - Tooling team milestone Sep 10, 2026
@B4nan
B4nan requested a review from l2ysho September 11, 2026 11:42
@B4nan
B4nan merged commit c643cf7 into main Sep 13, 2026
3 of 6 checks passed
@B4nan
B4nan deleted the perf/windows-fast-temp-dir branch September 13, 2026 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants