Skip to content

Commit 017b12a

Browse files
authored
Disable sccache in CI (#34692)
We have been having intermittent issues with sccache since around the recent v0.9 release of sccache which only appear when building mozjs from source. Due to recent changes with readablestreams, we are not using the prebuilt mozjs artifacts anymore and always building from source, causing these problems to regularly block the merge queue. Bumping SCCACHE_GHA_VERSION helps but has been observed to only be a temporary solution until the next breakage. Closes #34571 Signed-off-by: Jonathan Schwender <[email protected]>
1 parent bc0c836 commit 017b12a

File tree

5 files changed

+0
-41
lines changed

5 files changed

+0
-41
lines changed

.github/workflows/android.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ on:
2424
env:
2525
RUST_BACKTRACE: 1
2626
SHELL: /bin/bash
27-
SCCACHE_GHA_ENABLED: "true"
28-
RUSTC_WRAPPER: "sccache"
29-
CCACHE: "sccache"
30-
# Increment this to purge the cache (https://github.com/mozilla/sccache/blob/main/docs/GHA.md)
31-
SCCACHE_GHA_VERSION: 3
3227
CARGO_INCREMENTAL: 0
3328

3429
jobs:
@@ -57,8 +52,6 @@ jobs:
5752
with:
5853
ref: ${{ github.event.pull_request.head.sha }}
5954
fetch-depth: 2
60-
- name: Run sccache-cache
61-
uses: mozilla-actions/[email protected]
6255
- name: Install crown
6356
run: cargo install --path support/crown
6457
- name: Setup Python

.github/workflows/lint.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
env:
77
RUST_BACKTRACE: 1
88
SHELL: /bin/bash
9-
SCCACHE_GHA_ENABLED: "true"
10-
# Increment this to purge the cache (https://github.com/mozilla/sccache/blob/main/docs/GHA.md)
11-
SCCACHE_GHA_VERSION: 3
12-
RUSTC_WRAPPER: "sccache"
13-
CCACHE: "sccache"
149
CARGO_INCREMENTAL: 0
1510

1611
jobs:
@@ -29,8 +24,6 @@ jobs:
2924
with:
3025
ref: ${{ github.event.pull_request.head.sha }}
3126
fetch-depth: 2 # This is necessary for `test-tidy`.
32-
- name: Run sccache-cache
33-
uses: mozilla-actions/[email protected]
3427
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
3528
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
3629
- name: Setup Python

.github/workflows/linux.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ on:
7575
env:
7676
RUST_BACKTRACE: 1
7777
SHELL: /bin/bash
78-
# Increment this to purge the cache (https://github.com/mozilla/sccache/blob/main/docs/GHA.md)
79-
SCCACHE_GHA_VERSION: 3
8078

8179
jobs:
8280
# Runs the underlying job (“workload”) on a self-hosted runner if available,
@@ -106,13 +104,6 @@ jobs:
106104
name: Linux Build [${{ needs.runner-select.outputs.unique-id }}]
107105
runs-on: ${{ needs.runner-select.outputs.selected-runner-label }}
108106
steps:
109-
- if: ${{ runner.environment != 'self-hosted' }}
110-
run: |
111-
echo SCCACHE_GHA_ENABLED=true >> $GITHUB_ENV
112-
echo RUSTC_WRAPPER=sccache >> $GITHUB_ENV
113-
echo CCACHE=sccache >> $GITHUB_ENV
114-
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
115-
116107
- uses: actions/checkout@v4
117108
if: ${{ runner.environment != 'self-hosted' && github.event_name != 'pull_request_target' }}
118109
# This is necessary to checkout the pull request if this run was triggered via a
@@ -134,10 +125,6 @@ jobs:
134125
git switch --detach
135126
git reset --hard FETCH_HEAD
136127
137-
# Install missing tools in a GitHub-hosted runner.
138-
- name: Run sccache-cache
139-
if: ${{ runner.environment != 'self-hosted' }}
140-
uses: mozilla-actions/[email protected]
141128
- name: Set LIBCLANG_PATH env # needed for bindgen in mozangle
142129
if: ${{ runner.environment != 'self-hosted' && !inputs.upload }} # not needed on ubuntu 20.04 used for nightly
143130
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV

.github/workflows/mac.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ on:
5252
env:
5353
RUST_BACKTRACE: 1
5454
SHELL: /bin/bash
55-
# Increment this to purge the cache (https://github.com/mozilla/sccache/blob/main/docs/GHA.md)
56-
SCCACHE_GHA_VERSION: 4
57-
SCCACHE_GHA_ENABLED: "true"
58-
RUSTC_WRAPPER: "sccache"
59-
CCACHE: "sccache"
6055
CARGO_INCREMENTAL: 0
6156

6257
jobs:
@@ -81,8 +76,6 @@ jobs:
8176
ref: ${{ github.event.pull_request.head.sha }}
8277
- name: Setup Python
8378
uses: ./.github/actions/setup-python
84-
- name: Run sccache-cache
85-
uses: mozilla-actions/[email protected]
8679
- name: Install crown
8780
run: cargo install --path support/crown
8881
- name: Bootstrap

.github/workflows/ohos.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ on:
2525
env:
2626
RUST_BACKTRACE: 1
2727
SHELL: /bin/bash
28-
# Increment this to purge the cache (https://github.com/mozilla/sccache/blob/main/docs/GHA.md)
29-
SCCACHE_GHA_VERSION: 3
30-
SCCACHE_GHA_ENABLED: "true"
31-
RUSTC_WRAPPER: "sccache"
32-
CCACHE: "sccache"
3328
CARGO_INCREMENTAL: 0
3429

3530
jobs:
@@ -51,8 +46,6 @@ jobs:
5146
with:
5247
ref: ${{ github.event.pull_request.head.sha }}
5348
fetch-depth: 2
54-
- name: Run sccache-cache
55-
uses: mozilla-actions/[email protected]
5649
- name: Install crown
5750
run: cargo install --path support/crown
5851
- name: Setup Python

0 commit comments

Comments
 (0)