Skip to content

Commit 7f8feac

Browse files
committed
Curl: retry on all errors and add Mac back in
1 parent 77b572c commit 7f8feac

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

e2e/utils/releases.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Print the latest dfx version available on GitHub releases
22
get_latest_dfx_version() {
3-
latest_version=$(curl -sL --retry 5 "https://api.github.com/repos/dfinity/sdk/releases/latest" | jq -r ".tag_name")
3+
latest_version=$(curl -sL --retry 5 --retry-all-errors "https://api.github.com/repos/dfinity/sdk/releases/latest" | jq -r ".tag_name")
44
echo "$latest_version"
55
}
66

@@ -9,10 +9,10 @@ get_latest_dfx_version() {
99
get_from_latest_release_tarball() {
1010
local -r file_path=$1
1111
local -r destination=$2
12-
local -r tarball_url=$(curl -sL --retry 5 "https://api.github.com/repos/dfinity/sdk/releases/latest" | jq -r ".tarball_url")
12+
local -r tarball_url=$(curl -sL --retry 5 --retry-all-errors "https://api.github.com/repos/dfinity/sdk/releases/latest" | jq -r ".tarball_url")
1313

1414
local -r temp_dir=$(mktemp -d)
15-
curl -sL --retry 5 "$tarball_url" -o "${temp_dir}/release.tar.gz"
15+
curl -sL --retry 5 --retry-all-errors "$tarball_url" -o "${temp_dir}/release.tar.gz"
1616

1717
if [ "$(uname)" == "Darwin" ]; then
1818
tar -xzf "$temp_dir/release.tar.gz" -C "$temp_dir" "*/$file_path"

scripts/workflows/e2e-matrix.py

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ def test_scripts(prefix):
2828
{"backend": "ic-ref", "test": "dfx/print"},
2929
{"backend": "ic-ref", "test": "dfx/signals"},
3030
{"backend": "ic-ref", "test": "dfx/upgrade_assets_canister"},
31-
{"backend": "replica", "os": "macos-11", "test": "dfx/upgrade_assets_canister"},
3231
],
3332
}
3433

0 commit comments

Comments
 (0)