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
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:
1 parent
566b5d3c5b
commit
b92fd9b1fd
1 file changed
+46
-11
+46
-11
@@ -251,6 +251,29 @@ jobs:
|
||||
# self-hosted build directory is unique per run. The first install builds the
|
||||
# project with VBS (build.cpp); the rest reuse it.
|
||||
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
|
||||
case "${fmt}" in
|
||||
tar) ext=tar ;;
|
||||
@@ -258,11 +281,7 @@ jobs:
|
||||
nuget) ext=nupkg ;;
|
||||
*) ext="${fmt}" ;;
|
||||
esac
|
||||
"${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}"
|
||||
install_archive "${fmt}" "${ext}"
|
||||
done
|
||||
ls -l "${out}/"
|
||||
- name: Upload the installers
|
||||
@@ -304,6 +323,27 @@ jobs:
|
||||
prefix="$(mktemp -d)"
|
||||
mkdir -p "${out}"
|
||||
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
|
||||
case "${fmt}" in
|
||||
tar) ext=tar ;;
|
||||
@@ -311,12 +351,7 @@ jobs:
|
||||
nuget) ext=nupkg ;;
|
||||
*) ext="${fmt}" ;;
|
||||
esac
|
||||
"${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}"
|
||||
install_archive "${fmt}" "${ext}"
|
||||
done
|
||||
ls -l "${out}/"
|
||||
- name: Upload the Windows installers
|
||||
|
||||
Reference in new issue
Block a user