-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
ci: clean windows disk space in background #145311
Conversation
@bors try jobs=msvc,mingw |
This comment has been minimized.
This comment has been minimized.
…=<try> ci: clean windows disk space in background try-job: *msvc* try-job: *mingw*
💔 Test for 8cf61b6 failed: CI. Failed jobs:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d3be181
to
2290350
Compare
This comment has been minimized.
This comment has been minimized.
2290350
to
2434d72
Compare
This comment has been minimized.
This comment has been minimized.
2434d72
to
ee2962a
Compare
@bors try jobs=msvc,mingw |
This comment has been minimized.
This comment has been minimized.
…=<try> ci: clean windows disk space in background try-job: *msvc* try-job: *mingw*
ee2962a
to
2c2dcda
Compare
@@ -223,6 +223,11 @@ jobs: | |||
cd src/ci/citool | |||
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build | |||
|
|||
- name: wait for Windows disk cleanup to finish | |||
if: ${{ matrix.free_disk && startsWith(matrix.os, 'windows-') }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
later, if we want to do the same for linux, we can remove startsWith(matrix.os, 'windows-')
8b30259
to
addc8ba
Compare
@bors try jobs=msvc,mingw |
This comment has been minimized.
This comment has been minimized.
…=<try> ci: clean windows disk space in background try-job: *msvc* try-job: *mingw*
This comment has been minimized.
This comment has been minimized.
addc8ba
to
75b7d24
Compare
@bors try cancel |
Try build cancelled. Cancelled workflows: |
@bors try jobs=msvc,mingw |
This comment has been minimized.
This comment has been minimized.
…=<try> ci: clean windows disk space in background try-job: *msvc* try-job: *mingw*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@bors r+ |
@bors rollup |
Rollup of 11 pull requests Successful merges: - #144210 (std: thread: Return error if setting thread stack size fails) - #145310 (Reduce usage of `compiler_for` in bootstrap) - #145311 (ci: clean windows disk space in background) - #145340 (Split codegen backend check step into two and don't run it with `x check compiler`) - #145408 (Deduplicate -L search paths) - #145412 (Windows: Replace `GetThreadId`+`GetCurrentThread` with `GetCurrentThreadId`) - #145413 (bootstrap: Reduce dependencies) - #145426 (Fix typos in bootstrap.example.toml) - #145430 (Fix wrong spans with external macros in the `dropping_copy_types` lint) - #145431 (Enhance UI test output handling for runtime errors) - #145448 (Autolabel `src/tools/{rustfmt,rust-analyzer}` changes with `T-{rustfmt,rust-analyzer}`) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #145311 - marcoieni:clean-disk-in-background-windows, r=Kobzol ci: clean windows disk space in background
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:

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.