Skip to content

Commit df9af44

Browse files
More network flake improvements (#31)
* Gracefully fallback to local builds on server failures * Force update submodules on failure
1 parent d462bd9 commit df9af44

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

checkout/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ runs:
3939
max_attempts: 5
4040
shell: bash
4141
command: |
42-
git submodule update --init ${{ inputs.submodules == 'recursive' && '--recursive' || '' }}
42+
git submodule update --force --init ${{ inputs.submodules == 'recursive' && '--recursive' || '' }}

sccache/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ runs:
5959
echo "SCCACHE_GCS_BUCKET=protobuf-sccache" >> $GITHUB_ENV
6060
echo "SCCACHE_GCS_KEY_PREFIX=${{ inputs.cache-prefix }}" >> $GITHUB_ENV
6161
echo "SCCACHE_IDLE_TIMEOUT=0" >> $GITHUB_ENV
62+
echo "SCCACHE_IGNORE_SERVER_IO_ERROR=1" >> $GITHUB_ENV
6263
6364
# Only trusted runs should have write access to our caches.
6465
- name: Enable sccache cache writing
@@ -81,6 +82,7 @@ runs:
8182
retry_wait_seconds: 60
8283
max_attempts: 5
8384
shell: bash
85+
continue_on_error: true
8486
command: sccache --start-server
8587

8688
- name: Configure sccache cmake arguments

0 commit comments

Comments
 (0)