Never start sccache unless asked; compact reasons panel
A server started from the dashboard has the dashboard's environment, not the builds'. It came up with the 10 GB default beside a 250 GB cache and sccache trimmed the cache. Starting is now opt-in (SCCACHE_DASH_START_SCCACHE=1) and the README says why. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
c2b07734c6
commit
e3b56cb213
3 files changed
+45
-4
No files matched your search
@@ -91,6 +91,7 @@ esac
|
||||
Config {
|
||||
sccache: self.script.clone().into(),
|
||||
history: self.history.clone(),
|
||||
start_sccache: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -444,6 +445,30 @@ fn old_rows_are_deleted_at_startup() {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_missing_sccache_server_is_left_alone_unless_starting_was_asked_for() {
|
||||
let fake = Fake::new();
|
||||
fake.down();
|
||||
let app = App::with_probe(
|
||||
Config {
|
||||
start_sccache: false,
|
||||
..fake.config()
|
||||
},
|
||||
fake.probe(),
|
||||
);
|
||||
let mut task = Task::memory();
|
||||
|
||||
task.poll(&app, NOW);
|
||||
task.poll(&app, NOW + 120);
|
||||
let calls = fake.calls();
|
||||
assert!(!calls.iter().any(|c| c == "--start-server"), "{calls:?}");
|
||||
assert!(app
|
||||
.lock()
|
||||
.error
|
||||
.as_deref()
|
||||
.is_some_and(|e| e.contains("your next build starts it")));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn a_missing_sccache_server_is_started_once_then_read() {
|
||||
let fake = Fake::new();
|
||||
|
||||
Reference in new issue
Block a user