Skip to content

Commit 6662c88

Browse files
authored
Merge pull request #124 from influxdata/crepererum/ci-space-fix
chore: CI "no space left" fixes
2 parents e65ae65 + 290f121 commit 6662c88

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
steps:
1818
- name: Checkout
1919
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+
with:
21+
fetch-depth: 1
2022

2123
- name: Install `yamllint`
2224
run: pip install --requirement=.github/workflows/requirements.txt
@@ -38,6 +40,12 @@ jobs:
3840

3941
- name: just check
4042
run: just check
43+
env:
44+
# Disable incremental compilation to avoid overhead.
45+
CARGO_INCREMENTAL: "0"
46+
# Disable full debug symbol generation to speed up CI build
47+
# "1" means line tables only, which is useful for panic tracebacks.
48+
CARGO_PROFILE_DEV_DEBUG: "1"
4149

4250
- name: upload docs
4351
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2

guests/bundle/build.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,18 @@ impl CommandExt for Command {
8282
let Ok(k) = k.into_string() else {
8383
continue;
8484
};
85-
if k.starts_with("CARGO") || k.starts_with("RUST") {
85+
86+
// Generally we do NOT want to forward rustc and cargo arguments set for this build
87+
// script. However some of them are used in CI to speed up compilation and reduce disk
88+
// space usage. So we hard-code these here.
89+
if (k.starts_with("CARGO") || k.starts_with("RUST"))
90+
&& !["CARGO_PROFILE_DEV_DEBUG", "CARGO_INCREMENTAL"]
91+
.into_iter()
92+
.any(|s| s == k)
93+
{
8694
continue;
8795
}
96+
8897
cmd = cmd.env(k, v);
8998
}
9099

0 commit comments

Comments
 (0)