From: Harald Nordgren via GitGitGadget Date: Mon, 26 Oct 2026 09:54:23 GMT Subject: [PATCH v3 0/2] ci: fail the build if perforce, git-lfs or JGit fail to install Message-ID: In-Reply-To: Fail the build when perforce, git-lfs, or JGit fail to install, and drop the warnings that used to fire on every platform regardless of whether it even attempted the install. Changes in v3: * New prep commit drops the xattr -d com.apple.quarantine call for the macOS perforce binaries, it's been a silent no-op since perforce's install moved off Homebrew in 2022, confirmed wget downloads never carry that attribute. * Drops the explicit echo "error: ..." / exit 1 blocks for perforce, git-lfs, and JGit, relying on set -e (already active via ci/lib.sh) to abort on the first failed install, matching how every other install step in this file already works. Changes in v2: * Perforce, git-lfs, and JGit install failures now fail the build instead of being silently swallowed. Removed the presence checks and warnings at the end of the script, dead code once install failure is fatal. * Version output (p4d -V, git-lfs version, jgit version) moved inline right after each successful install. Harald Nordgren (2): ci: drop quarantine removal for macos perforce binaries ci: fail the build if perforce, git-lfs, or JGit fail to install ci/install-dependencies.sh | 50 ++++++++++++-------------------------- 1 file changed, 15 insertions(+), 35 deletions(-) base-commit: 7e34d8174dcda3435d1404c9a30bef46afe6c13e Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2403%2FHaraldNordgren%2Fci-scope-optional-tool-warnings-v3 Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2403/HaraldNordgren/ci-scope-optional-tool-warnings-v3 Pull-Request: https://github.com/git/git/pull/2403 Range-diff vs v2: -: ---------- > 1: e85ce85d92 ci: drop quarantine removal for macos perforce binaries 1: dde1b38567 ! 2: a57cfbb2a5 ci: fail the build if perforce, git-lfs, or JGit fail to install @@ Commit message ## ci/install-dependencies.sh ## @@ ci/install-dependencies.sh: ubuntu-*|i386/ubuntu-*|debian-*) + wget --quiet --directory-prefix="$CUSTOM_PATH" \ "$P4WHENCE/bin.linux26x86_64/p4d" \ "$P4WHENCE/bin.linux26x86_64/p4" && - chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" || { +- chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" || { - rm -f "$CUSTOM_PATH/p4" - rm -f "$CUSTOM_PATH/p4d" -+ echo >&2 "error: could not install perforce" -+ exit 1 - } +- } ++ chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" + echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)" + p4d -V + echo "$(tput setaf 6)Perforce Client Version$(tput sgr0)" @@ ci/install-dependencies.sh: ubuntu-*|i386/ubuntu-*|debian-*) "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs" && - rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" || - rm -f "$CUSTOM_PATH/git-lfs" -+ rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" || { -+ echo >&2 "error: could not install git-lfs" -+ exit 1 -+ } ++ rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" + echo "$(tput setaf 6)Git-LFS Version$(tput sgr0)" + git-lfs version wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit" && - chmod a+x "$CUSTOM_PATH/jgit" || - rm -f "$CUSTOM_PATH/jgit" -+ chmod a+x "$CUSTOM_PATH/jgit" || { -+ echo >&2 "error: could not install JGit" -+ exit 1 -+ } ++ chmod a+x "$CUSTOM_PATH/jgit" + echo "$(tput setaf 6)JGit Version$(tput sgr0)" + jgit version ;; esac ;; @@ ci/install-dependencies.sh: macos-*) - - mkdir -p "$CUSTOM_PATH" wget -q "$P4WHENCE/bin.macosx12arm64/helix-core-server.tgz" && -- tar -xf helix-core-server.tgz -C "$CUSTOM_PATH" p4 p4d && -+ tar -xf helix-core-server.tgz -C "$CUSTOM_PATH" p4 p4d || { -+ echo >&2 "error: could not install perforce" -+ exit 1 -+ } - sudo xattr -d com.apple.quarantine "$CUSTOM_PATH/p4" "$CUSTOM_PATH/p4d" 2>/dev/null || true + tar -xf helix-core-server.tgz -C "$CUSTOM_PATH" p4 p4d && rm helix-core-server.tgz + echo "$(tput setaf 6)Perforce Server Version$(tput sgr0)" + p4d -V -- gitgitgadget