diff --git a/.curlrc b/.curlrc new file mode 100644 index 0000000000..0fa40c1e5a --- /dev/null +++ b/.curlrc @@ -0,0 +1 @@ +--retry-max-time 60 diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 64a060685b..cc0ff2a80b 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -10,6 +10,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: build_matrix: runs-on: ubuntu-latest diff --git a/.github/workflows/build-frontend-canister.yml b/.github/workflows/build-frontend-canister.yml index 3445d0cb9a..eb694a7d08 100644 --- a/.github/workflows/build-frontend-canister.yml +++ b/.github/workflows/build-frontend-canister.yml @@ -6,6 +6,12 @@ on: - master pull_request: +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: frontend: runs-on: ubuntu-latest diff --git a/.github/workflows/consistent-sources.yml b/.github/workflows/consistent-sources.yml index 147ee237b5..28fbc9e22a 100644 --- a/.github/workflows/consistent-sources.yml +++ b/.github/workflows/consistent-sources.yml @@ -9,6 +9,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/deny.yml b/.github/workflows/deny.yml index 022836ac45..a08619d8c7 100644 --- a/.github/workflows/deny.yml +++ b/.github/workflows/deny.yml @@ -10,6 +10,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: cargo-deny: name: license-check:required diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 6c1fabae03..a67e3c5912 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -9,6 +9,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: build_dfx: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/fmt.yml b/.github/workflows/fmt.yml index be1a68b62e..e488824942 100644 --- a/.github/workflows/fmt.yml +++ b/.github/workflows/fmt.yml @@ -6,6 +6,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: test: name: fmt diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d8468b3c54..3ac6314268 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,6 +6,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: test: name: lint diff --git a/.github/workflows/motoko-updater.yml b/.github/workflows/motoko-updater.yml index 81e788aa49..7d4b7055cb 100644 --- a/.github/workflows/motoko-updater.yml +++ b/.github/workflows/motoko-updater.yml @@ -18,6 +18,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: niv-updater: name: 'Check for Motoko updates' diff --git a/.github/workflows/niv-updater.yml b/.github/workflows/niv-updater.yml index 0d54745393..f8f90fcda6 100644 --- a/.github/workflows/niv-updater.yml +++ b/.github/workflows/niv-updater.yml @@ -17,6 +17,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: niv-updater: name: 'Check for updates' diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index b41321784c..49930f366e 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,6 +14,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/prepare-dfx-assets.yml b/.github/workflows/prepare-dfx-assets.yml index cae37093a1..0e42fe89eb 100644 --- a/.github/workflows/prepare-dfx-assets.yml +++ b/.github/workflows/prepare-dfx-assets.yml @@ -12,6 +12,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: prepare: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/publish-manifest.yml b/.github/workflows/publish-manifest.yml index c6f1c68181..a43acb92bb 100644 --- a/.github/workflows/publish-manifest.yml +++ b/.github/workflows/publish-manifest.yml @@ -9,6 +9,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: publish-manifest: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 603f29c90e..689d2fa0b5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,6 +15,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: build_dfx: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index 3ff81cd6f8..4d7c53aa91 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -14,6 +14,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: check_macos: # ubuntu-latest has shellcheck 0.4.6, while macos-latest has 0.7.1 diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index 9b94645a97..25f61c7e6e 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -9,6 +9,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: test: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/update-docs.yml b/.github/workflows/update-docs.yml index 40cb043954..900d3b4f93 100644 --- a/.github/workflows/update-docs.yml +++ b/.github/workflows/update-docs.yml @@ -6,6 +6,12 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true +env: + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: update_dfx_json_schema: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/update-replica-version.yml b/.github/workflows/update-replica-version.yml index 8d7046522f..d31c87ef2e 100644 --- a/.github/workflows/update-replica-version.yml +++ b/.github/workflows/update-replica-version.yml @@ -23,7 +23,11 @@ concurrency: env: IC_RELEASES_API: "https://ic-api.internetcomputer.org/api/v3/subnet-replica-versions?limit=50&offset=0" - + # When getting Rust dependencies, retry on network error: + CARGO_NET_RETRY: 10 + # Use the local .curlrc + CURL_HOME: . + jobs: update-replica: runs-on: ubuntu-latest diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..a82ba4537c --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +fetch-retries=10