diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1552ad196e..ca10989f61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,6 +71,9 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Keep the server alive through post-compile test/lint phases so + # "Show sccache stats" reflects the real counters. + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Rust cache @@ -378,6 +381,9 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Keep the server alive through post-compile test/lint phases so + # "Show sccache stats" reflects the real counters. + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Rust cache @@ -455,6 +461,9 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Keep the server alive through post-compile test/lint phases so + # "Show sccache stats" reflects the real counters. + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Rust cache diff --git a/.github/workflows/mcp-release.yml b/.github/workflows/mcp-release.yml index aa6fc7da92..3f8f7dfdd1 100644 --- a/.github/workflows/mcp-release.yml +++ b/.github/workflows/mcp-release.yml @@ -343,6 +343,9 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Keep the server alive through the post-compile packaging tail so + # "Show sccache stats" reflects the real counters. + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Rust cache @@ -561,6 +564,9 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Keep the server alive through the post-compile packaging tail so + # "Show sccache stats" reflects the real counters. + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Rust cache diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4397cc56e1..867f740dfd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,6 +180,10 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Linking, bundling, and signing run for 30+ minutes after the last + # rustc call; the server's 10-minute default idle timeout would + # exit first and zero the counters shown by "Show sccache stats". + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Compute Rust dependency hash @@ -322,6 +326,10 @@ jobs: echo "SCCACHE_S3_USE_SSL=true" echo "AWS_ACCESS_KEY_ID=${CACHE_ACCESS_KEY_ID}" echo "AWS_SECRET_ACCESS_KEY=${CACHE_SECRET_ACCESS_KEY}" + # Linking, bundling, and signing run for 30+ minutes after the last + # rustc call; the server's 10-minute default idle timeout would + # exit first and zero the counters shown by "Show sccache stats". + echo "SCCACHE_IDLE_TIMEOUT=0" } >> "$GITHUB_ENV" - name: Compute Rust dependency hash