Skip to content

Commit 03e2235

Browse files
committed
Auto merge of #10724 - ehuss:ci-disk-space, r=Eh2406
Clear disk space on CI. Cargo's testsuite uses a considerable amount of disk space. On windows-gnu, the target directory can get over 12GB, and there is only 13GB free. We're starting to run out of disk space, so this is a stop-gap that clears out the test data before running the smoke test which uses a fair bit of space itself. We will probably need to think about addressing #9701 somehow, otherwise we will start running out of space as we add more tests. See the linked issues in #9701 (comment) for additional context.
2 parents af491f3 + 65cc010 commit 03e2235

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
other: i686-pc-windows-gnu
5555
steps:
5656
- uses: actions/checkout@v3
57+
- name: Dump Environment
58+
run: ci/dump-environment.sh
5759
- name: Update Rustup (temporary workaround)
5860
run: rustup self update
5961
shell: bash
@@ -97,6 +99,13 @@ jobs:
9799
# download all workspaces.
98100
cargo test --manifest-path benches/benchsuite/Cargo.toml --all-targets -- cargo
99101
cargo check --manifest-path benches/capture/Cargo.toml
102+
# The testsuite generates a huge amount of data, and fetch-smoke-test was
103+
# running out of disk space.
104+
- name: Clear test output
105+
run: |
106+
df -h
107+
rm -rf target/tmp
108+
df -h
100109
- name: Fetch smoke test
101110
run: ci/fetch-smoke-test.sh
102111

ci/dump-environment.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
# This script dumps information about the build environment to stdout.
3+
4+
set -euo pipefail
5+
IFS=$'\n\t'
6+
7+
echo "environment variables:"
8+
printenv | sort
9+
echo
10+
11+
echo "disk usage:"
12+
df -h
13+
echo

0 commit comments

Comments
 (0)