Skip to content

Commit 487bf9c

Browse files
committed
ci(windows): remove temporary cache diagnostics
Signed-off-by: Piotr Mlocek <[email protected]>
1 parent 0bada73 commit 487bf9c

2 files changed

Lines changed: 3 additions & 31 deletions

File tree

‎.github/workflows/windows-msvc.yml‎

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ concurrency:
1818

1919
env:
2020
CARGO_INCREMENTAL: "0"
21-
# Log cache write failures without dumping compiler arguments or environments.
22-
SCCACHE_LOG: "debug/Error executing cache write"
2321

2422
jobs:
2523
pr_metadata:
@@ -69,8 +67,6 @@ jobs:
6967
experimental: true
7068
- name: Configure GHA sccache backend
7169
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
72-
env:
73-
SCCACHE_ERROR_LOG: ${{ runner.temp }}/openshell-sccache-errors.log
7470
- name: Isolate Rust toolchains
7571
# rust-cache hashes every installed toolchain, including unused runner defaults.
7672
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
@@ -98,13 +94,7 @@ jobs:
9894
run: mise run --skip-tools windows:test:${{ matrix.arch }}
9995
- name: sccache stats
10096
if: always()
101-
run: |
102-
sccache --show-stats
103-
$cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
104-
if (Test-Path -LiteralPath $cacheErrorLog) {
105-
Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
106-
ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
107-
}
97+
run: sccache --show-stats
10898

10999
cache-seed:
110100
name: Seed cache (${{ matrix.arch }})
@@ -137,8 +127,6 @@ jobs:
137127
experimental: true
138128
- name: Configure GHA sccache backend
139129
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
140-
env:
141-
SCCACHE_ERROR_LOG: ${{ runner.temp }}/openshell-sccache-errors.log
142130
- name: Isolate Rust toolchains
143131
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
144132
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
@@ -165,13 +153,7 @@ jobs:
165153
run: mise run --skip-tools windows:test:${{ matrix.arch }}
166154
- name: sccache stats
167155
if: always()
168-
run: |
169-
sccache --show-stats
170-
$cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
171-
if (Test-Path -LiteralPath $cacheErrorLog) {
172-
Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
173-
ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
174-
}
156+
run: sccache --show-stats
175157

176158
build:
177159
name: Build binaries (${{ matrix.arch }})
@@ -201,8 +183,6 @@ jobs:
201183
experimental: true
202184
- name: Configure GHA sccache backend
203185
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
204-
env:
205-
SCCACHE_ERROR_LOG: ${{ runner.temp }}/openshell-sccache-errors.log
206186
- name: Isolate Rust toolchains
207187
run: '"RUSTUP_HOME=$env:RUNNER_TEMP/openshell-rustup" >> $env:GITHUB_ENV'
208188
- uses: dtolnay/rust-toolchain@4be7066ada62dd38de10e7b70166bc74ed198c30 # stable
@@ -222,10 +202,4 @@ jobs:
222202
run: mise run --skip-tools windows:build:${{ matrix.arch }}
223203
- name: sccache stats
224204
if: always()
225-
run: |
226-
sccache --show-stats
227-
$cacheErrorLog = Join-Path $env:RUNNER_TEMP 'openshell-sccache-errors.log'
228-
if (Test-Path -LiteralPath $cacheErrorLog) {
229-
Get-Content -LiteralPath $cacheErrorLog -Tail 20 |
230-
ForEach-Object { $_ -replace '(https?://[^\s?]+)\?\S+', '$1?[redacted]' }
231-
}
205+
run: sccache --show-stats

‎architecture/windows-msvc-build.md‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ for stable compiler cache keys. The target-cache action runs its metadata step
120120
with `RUSTC_WRAPPER` cleared so cache maintenance does not depend on sccache.
121121
Hosted jobs use an isolated `RUSTUP_HOME` containing the pinned toolchain so
122122
unused toolchains in runner images cannot change the target-cache restore key.
123-
CI logs sccache write failures alongside its hit/miss statistics to distinguish
124-
backend failures from ordinary cache misses.
125123

126124
The lane uses `mise run --skip-tools windows:*` because Windows Rust comes from
127125
rustup and linking comes from Visual Studio Build Tools. Mise orchestrates the

0 commit comments

Comments
 (0)