From bbf08ca5e980f59743d44356a13618cb1ccc1102 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 14 Dec 2017 09:30:08 -0600 Subject: [PATCH] Make sccache never time out. Per https://github.com/mozilla/sccache/blob/a310f6a62eb34281bda083f88dc96c736a3eeb74/src/server.rs#L69-L76 this variable controls how long the server waits before shutting down. For long compiles that exceed this timeout, this can cause compilation to fail like https://github.com/servo/servo/issues/19495. https://github.com/mozilla/sccache/blob/629813f2d2f0b3ac8102696df69d57200688d320/docs/Jenkins.md#L11 describes the effect of making this timeout zero for CI infrastructure - the server process becomes long-lived and never shuts down. --- buildbot/master/files/config/environments.py | 1 + 1 file changed, 1 insertion(+) diff --git a/buildbot/master/files/config/environments.py b/buildbot/master/files/config/environments.py index ab007216..76bb5c0c 100644 --- a/buildbot/master/files/config/environments.py +++ b/buildbot/master/files/config/environments.py @@ -51,6 +51,7 @@ def without(self, to_unset): build_common = Environment({ 'RUST_BACKTRACE': '1', 'BUILD_MACHINE': str(util.Property('slavename')), + 'SCCACHE_IDLE_TIMEOUT': '0', }) build_windows_msvc = build_common + Environment({