Skip to content

ci: clean windows disk space in background #145311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

marcoieni
Copy link
Member

@marcoieni marcoieni commented Aug 12, 2025

Speed up cleaning up disk space by launching the process in the background.
We wait for it to finish before running the build.
The con of this PR is that it adds extra complexity. However, cleaning up disk space on windows can take a lot of time (in the latest auto build I saw one job taking 8 minutes for example).

Context

The disk space cleanup was introduced in #144305

Test

I tested that the waiting mechanism works in https://github.com/marcoieni/actions-test/actions/runs/16935555049/job/47991148801:
image

Overall speed

I compared the duration of the jobs of the try build with the latest auto build and I noticed a speed up in most of the jobs. Some jobs are slower but that's probably because of unrelated CI reasons.

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Aug 12, 2025
@marcoieni
Copy link
Member Author

@bors try jobs=msvc,mingw

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Aug 12, 2025
…=<try>

ci: clean windows disk space in background

try-job: *msvc*
try-job: *mingw*
@rust-bors
Copy link

rust-bors bot commented Aug 12, 2025

💔 Test for 8cf61b6 failed: CI. Failed jobs:

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@marcoieni marcoieni force-pushed the clean-disk-in-background-windows branch from d3be181 to 2290350 Compare August 13, 2025 08:50
@rust-log-analyzer

This comment has been minimized.

@marcoieni marcoieni force-pushed the clean-disk-in-background-windows branch from 2290350 to 2434d72 Compare August 13, 2025 10:06
@rust-log-analyzer

This comment has been minimized.

@marcoieni marcoieni force-pushed the clean-disk-in-background-windows branch from 2434d72 to ee2962a Compare August 13, 2025 10:18
@marcoieni
Copy link
Member Author

@bors try jobs=msvc,mingw

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Aug 13, 2025
…=<try>

ci: clean windows disk space in background

try-job: *msvc*
try-job: *mingw*
@marcoieni
Copy link
Member Author

marcoieni commented Aug 13, 2025

Now cleaning the disk space takes 0 seconds. Nice.
image
image

@rust-bors
Copy link

rust-bors bot commented Aug 13, 2025

☀️ Try build successful (CI)
Build commit: 6b1a678 (6b1a678eb596a5f39faa335cd0805108e3416c3e, parent: 1c9952f4dd6e0947ee91f07130c03813a088a894)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants