ci: retry the self-hosted install in a fresh build directory
VoidBuildSystem CI / 4A · Linux package (debug) (push) Successful in 1m43s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 8s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 2m44s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 3m39s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m19s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 5m9s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 5m23s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m6s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m32s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 2m50s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 15s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 15s
VoidBuildSystem CI / 4B · Windows package (debug) (push) Successful in 17s
VoidBuildSystem CI / 4B · Windows package (relwithdebinfo) (push) Successful in 37s
VoidBuildSystem CI / 4A · Linux package (sanitizers) (push) Successful in 1m43s
VoidBuildSystem CI / 4A · Linux package (relwithdebinfo) (push) Successful in 1m50s
VoidBuildSystem CI / 4A2 · VBS installers (self-hosted) (push) Failing after 1m24s
VoidBuildSystem CI / 5 · Release (push) Skipped
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Failing after 1m10s

The provider snapshot tree has been sealed with missing source files
(the same content-addressed tree id across runs), and a sealed tree is
not rebuilt. Retry once from a fresh build directory instead of failing
the installer job.
This commit is contained in:
faumaray committed 2026-12-06 09:36:03 +03:00
1 parent 566b5d3c5b
commit b92fd9b1fd
1 file changed
+46 -11
+46 -11
View File
@@ -251,6 +251,29 @@ jobs:
# self-hosted build directory is unique per run. The first install builds the # self-hosted build directory is unique per run. The first install builds the
# project with VBS (build.cpp); the rest reuse it. # project with VBS (build.cpp); the rest reuse it.
build_dir="build/selfhost-${GITHUB_RUN_ID}" build_dir="build/selfhost-${GITHUB_RUN_ID}"
# The provider snapshot materialization has been observed to seal an
# incomplete tree (missing source files); a sealed tree is not rebuilt,
# so a retry starts from a fresh build directory.
install_archive() {
local fmt="$1" ext="$2"
local attempt=1
while true; do
if "${vbs}" install --project . --build-dir "${build_dir}" --profile release \
--prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \
--archive "${out}/vbs-${label}-linux-x86_64-${fmt}.${ext}" \
--archive-format "${fmt}"; then
return 0
fi
if [ "${attempt}" -ge 2 ]; then
echo "vbs install (${fmt}) failed after retry" >&2
return 1
fi
attempt=$((attempt + 1))
build_dir="${build_dir}-retry${attempt}"
echo "retrying vbs install (${fmt}) in '${build_dir}'..." >&2
done
}
for fmt in tar sh zip deb rpm wix dmg nuget; do for fmt in tar sh zip deb rpm wix dmg nuget; do
case "${fmt}" in case "${fmt}" in
tar) ext=tar ;; tar) ext=tar ;;
@@ -258,11 +281,7 @@ jobs:
nuget) ext=nupkg ;; nuget) ext=nupkg ;;
*) ext="${fmt}" ;; *) ext="${fmt}" ;;
esac esac
"${vbs}" install --project . --build-dir "${build_dir}" --profile release \ install_archive "${fmt}" "${ext}"
--prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \
--archive "${out}/vbs-${label}-linux-x86_64-${fmt}.${ext}" \
--archive-format "${fmt}"
done done
ls -l "${out}/" ls -l "${out}/"
- name: Upload the installers - name: Upload the installers
@@ -304,6 +323,27 @@ jobs:
prefix="$(mktemp -d)" prefix="$(mktemp -d)"
mkdir -p "${out}" mkdir -p "${out}"
build_dir="build/selfhost-windows-${GITHUB_RUN_ID}" build_dir="build/selfhost-windows-${GITHUB_RUN_ID}"
install_archive() {
local fmt="$1" ext="$2"
local attempt=1
while true; do
if "${vbs}" install --project . --build-dir "${build_dir}" --profile release \
--target-os windows --target-arch x86_64 \
--prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \
--archive "${out}/vbs-${label}-windows-x86_64-${fmt}.${ext}" \
--archive-format "${fmt}"; then
return 0
fi
if [ "${attempt}" -ge 2 ]; then
echo "vbs install (${fmt}) failed after retry" >&2
return 1
fi
attempt=$((attempt + 1))
build_dir="${build_dir}-retry${attempt}"
echo "retrying vbs install (${fmt}) in '${build_dir}'..." >&2
done
}
for fmt in tar zip nuget wix; do for fmt in tar zip nuget wix; do
case "${fmt}" in case "${fmt}" in
tar) ext=tar ;; tar) ext=tar ;;
@@ -311,12 +351,7 @@ jobs:
nuget) ext=nupkg ;; nuget) ext=nupkg ;;
*) ext="${fmt}" ;; *) ext="${fmt}" ;;
esac esac
"${vbs}" install --project . --build-dir "${build_dir}" --profile release \ install_archive "${fmt}" "${ext}"
--target-os windows --target-arch x86_64 \
--prefix "${prefix}" --package-name VoidBuildSystem \
--package-version "${version}" \
--archive "${out}/vbs-${label}-windows-x86_64-${fmt}.${ext}" \
--archive-format "${fmt}"
done done
ls -l "${out}/" ls -l "${out}/"
- name: Upload the Windows installers - name: Upload the Windows installers