Skip to content

Commit fc1073b

Browse files
committed
Merge bitcoin#28643: ci: Add missing CI_RETRY_EXE before git clone
6889a80 ci: Add missing CI_RETRY_EXE before git clone (MarcoFalke) b705bad ci: Export `IN_GETOPT_BIN` on macOS (Hennadii Stepanov) 1c2132d Revert "ci: Upgrading pip version in macos environment" (Hennadii Stepanov) Pull request description: This PR is a resurrection of bitcoin#28623: > This should fix [bitcoin/bitcoin/actions/runs/6457002476/job/17527598426#step:7:240](https://github.com/bitcoin/bitcoin/actions/runs/6457002476/job/17527598426#step:7:240): > > ``` > + git clone --depth=1 https://github.com/bitcoin-core/qa-assets /Users/runner/work/bitcoin/bitcoin/ci/scratch/qa-assets > Cloning into '/Users/runner/work/bitcoin/bitcoin/ci/scratch/qa-assets'... > error: RPC failed; curl 18 HTTP/2 stream 5 was reset > error: 54975 bytes of body are still expected > fetch-pack: unexpected disconnect while reading sideband packet > fatal: early EOF > fatal: fetch-pack: invalid index-pack output > Error: Process completed with exit code 128. > ``` ACKs for top commit: maflcko: lgtm ACK 6889a80 Tree-SHA512: cd50102061a5c57fcf53ecbf552e7eae09995395e91651d00037e3f101c4906c0a994b2f6b1ccf984f2fc902ca59f0db66206ace56a2b6e2810dfa4167f3e115
2 parents 77f0ceb + 6889a80 commit fc1073b

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

ci/lint/04_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ${CI_RETRY_EXE} apt-get install -y curl xz-utils git gpg
1818
PYTHON_PATH="/python_build"
1919
if [ ! -d "${PYTHON_PATH}/bin" ]; then
2020
(
21-
git clone https://github.com/pyenv/pyenv.git
21+
${CI_RETRY_EXE} git clone https://github.com/pyenv/pyenv.git
2222
cd pyenv/plugins/python-build || exit 1
2323
./install.sh
2424
)

ci/test/01_base_install.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,8 @@ elif [ "$CI_OS_NAME" != "macos" ]; then
3131
fi
3232

3333
if [ -n "$PIP_PACKAGES" ]; then
34-
if [ "$CI_OS_NAME" == "macos" ]; then
35-
sudo -H pip3 install --upgrade pip
36-
# shellcheck disable=SC2086
37-
IN_GETOPT_BIN="$(brew --prefix gnu-getopt)/bin/getopt" ${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
38-
else
39-
# shellcheck disable=SC2086
40-
${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
41-
fi
34+
# shellcheck disable=SC2086
35+
${CI_RETRY_EXE} pip3 install --user $PIP_PACKAGES
4236
fi
4337

4438
if [[ ${USE_MEMORY_SANITIZER} == "true" ]]; then

ci/test/02_run_container.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ else
6161
mkdir -p "${PREVIOUS_RELEASES_DIR}"
6262
fi
6363

64+
if [ "$CI_OS_NAME" == "macos" ]; then
65+
IN_GETOPT_BIN="$(brew --prefix gnu-getopt)/bin/getopt"
66+
export IN_GETOPT_BIN
67+
fi
68+
6469
CI_EXEC () {
6570
$CI_EXEC_CMD_PREFIX bash -c "export PATH=${BINS_SCRATCH_DIR}:${BASE_ROOT_DIR}/ci/retry:\$PATH && cd \"${BASE_ROOT_DIR}\" && $*"
6671
}

ci/test/06_script_b.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ index 65e31724bc..f61b471953 100644
5656
if [ "$RUN_FUZZ_TESTS" = "true" ]; then
5757
export DIR_FUZZ_IN=${DIR_QA_ASSETS}/fuzz_seed_corpus/
5858
if [ ! -d "$DIR_FUZZ_IN" ]; then
59-
git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${DIR_QA_ASSETS}"
59+
${CI_RETRY_EXE} git clone --depth=1 https://github.com/bitcoin-core/qa-assets "${DIR_QA_ASSETS}"
6060
fi
6161
(
6262
cd "${DIR_QA_ASSETS}"

0 commit comments

Comments
 (0)