Skip to content

Commit

Permalink
More network flake improvements (#31)
Browse files Browse the repository at this point in the history
* Gracefully fallback to local builds on server failures

* Force update submodules on failure
  • Loading branch information
mkruskal-google authored Sep 27, 2023
1 parent d462bd9 commit df9af44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ runs:
max_attempts: 5
shell: bash
command: |
git submodule update --init ${{ inputs.submodules == 'recursive' && '--recursive' || '' }}
git submodule update --force --init ${{ inputs.submodules == 'recursive' && '--recursive' || '' }}
2 changes: 2 additions & 0 deletions sccache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ runs:
echo "SCCACHE_GCS_BUCKET=protobuf-sccache" >> $GITHUB_ENV
echo "SCCACHE_GCS_KEY_PREFIX=${{ inputs.cache-prefix }}" >> $GITHUB_ENV
echo "SCCACHE_IDLE_TIMEOUT=0" >> $GITHUB_ENV
echo "SCCACHE_IGNORE_SERVER_IO_ERROR=1" >> $GITHUB_ENV
# Only trusted runs should have write access to our caches.
- name: Enable sccache cache writing
Expand All @@ -81,6 +82,7 @@ runs:
retry_wait_seconds: 60
max_attempts: 5
shell: bash
continue_on_error: true
command: sccache --start-server

- name: Configure sccache cmake arguments
Expand Down

0 comments on commit df9af44

Please sign in to comment.