Skip to content

Commit bcdc859

Browse files
committed
Pin the OpenVINO archive hashes and name the variables for what they hold
Check each OpenVINO download against a SHA-256 pinned next to its build, instead of a .sha256 file fetched from the same server. When an archive is missing, the server returns the same HTML page for both files, so the old check compared nothing and failed with a confusing message. A pinned hash fails a missing or replaced archive with "computed checksum did NOT match", keeps CI on the exact archive it was tested with, and drops the second download. Also set only the version, build and hash for each choice, and build the URL and folder name once. The variables no longer say nightly, since the harness pin is a release.
1 parent ba04920 commit bcdc859

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

‎.ci/scripts/setup-openvino.sh‎

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,32 +18,25 @@ for arg in "$@"; do
1818
esac
1919
done
2020

21-
# Download and install OpenVINO from release packages
22-
OPENVINO_VERSION="2026.0"
23-
OPENVINO_BUILD="2026.0.0.20965.c6d6a13a886"
24-
OPENVINO_STABLE_URL="https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_VERSION}/linux/openvino_toolkit_ubuntu22_${OPENVINO_BUILD}_x86_64.tgz"
25-
26-
# OpenVINO deletes old nightly builds, so pin a release that contains what the
27-
# test harness needs instead of a nightly.
28-
OPENVINO_NIGHTLY_VERSION="2026.1"
29-
OPENVINO_NIGHTLY_BUILD="2026.1.0.21367.63e31528c62"
30-
OPENVINO_NIGHTLY_URL="https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_NIGHTLY_VERSION}/linux/openvino_toolkit_ubuntu22_${OPENVINO_NIGHTLY_BUILD}_x86_64.tgz"
31-
21+
# Download and install OpenVINO from release packages. --nightly selects a newer
22+
# release rather than a nightly build, because OpenVINO deletes old nightlies.
3223
if [ "${USE_NIGHTLY}" = true ]; then
33-
OPENVINO_URL="${OPENVINO_NIGHTLY_URL}"
34-
OPENVINO_EXTRACTED_DIR="openvino_toolkit_ubuntu22_${OPENVINO_NIGHTLY_BUILD}_x86_64"
35-
echo "Using OpenVINO release: ${OPENVINO_NIGHTLY_BUILD}"
24+
OPENVINO_VERSION="2026.1"
25+
OPENVINO_BUILD="2026.1.0.21367.63e31528c62"
26+
OPENVINO_SHA256="3b4d92fec96860dfea844cd7c23e190d76c243e75815491d53405b4ced892103"
3627
else
37-
OPENVINO_URL="${OPENVINO_STABLE_URL}"
38-
OPENVINO_EXTRACTED_DIR="openvino_toolkit_ubuntu22_${OPENVINO_BUILD}_x86_64"
39-
echo "Using OpenVINO stable release: ${OPENVINO_BUILD}"
28+
OPENVINO_VERSION="2026.0"
29+
OPENVINO_BUILD="2026.0.0.20965.c6d6a13a886"
30+
OPENVINO_SHA256="3c99a294d1a12a96a945c56a3b27a099df885980f7667b996cff67b4ff3cf46a"
4031
fi
32+
OPENVINO_EXTRACTED_DIR="openvino_toolkit_ubuntu22_${OPENVINO_BUILD}_x86_64"
33+
OPENVINO_URL="https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_VERSION}/linux/${OPENVINO_EXTRACTED_DIR}.tgz"
34+
echo "Using OpenVINO release: ${OPENVINO_BUILD}"
4135

4236
curl -Lo /tmp/openvino_toolkit.tgz --retry 3 --retry-all-errors --fail ${OPENVINO_URL}
4337
# The storage server answers a missing file with an HTML page and HTTP 200, so
44-
# check the archive against its published checksum before extracting it.
45-
curl -Lo /tmp/openvino_toolkit.tgz.sha256 --retry 3 --retry-all-errors --fail ${OPENVINO_URL}.sha256
46-
echo "$(cut -d ' ' -f 1 /tmp/openvino_toolkit.tgz.sha256) /tmp/openvino_toolkit.tgz" | sha256sum --check
38+
# compare the download with the pinned hash before extracting it.
39+
echo "${OPENVINO_SHA256} /tmp/openvino_toolkit.tgz" | sha256sum -c -
4740
tar -xzf /tmp/openvino_toolkit.tgz
4841
mv "${OPENVINO_EXTRACTED_DIR}" openvino
4942

0 commit comments

Comments
 (0)