fix(ci): make recorded crash APT refresh bounded and observable (#12607)

Co-authored-by: ShuaixinHuang <ShuaixinHuang@users.noreply.github.com>
This commit is contained in:
ShuaixinHuangandShuaixinHuang authored and GitHub committed 2026-11-20 00:36:28 +00:00
1 parent e36e5d46e8
commit d405115e41
2 files changed
+6 -3

No files matched your search

+3 -2
View File
@@ -52,8 +52,9 @@ jobs:
packages=(--yes --no-install-recommends ca-certificates git python3-venv gcc libc6-dev strace gdb)
# Fail on stale or partial indexes. Bound network acquisition
# separately so an interrupted download never interrupts dpkg.
timeout --kill-after=5s 90s \
apt-get -o Acquire::Retries=2 --error-on=any update -qq || {
# Package installation does not consume translated descriptions.
timeout --kill-after=5s 150s \
apt-get -o Acquire::Retries=2 -o Acquire::Languages=none --error-on=any update || {
status=$?
echo "::error::Recorded-crash APT index refresh failed (exit ${status})"
exit "$status"
@@ -87,7 +87,7 @@ it("opts only the Noble binary-layout toolchain into the Ubuntu Azure archive fa
).toBe("false");
});
const recordedCrashRefresh = "refresh --kill-after=5s 90s";
const recordedCrashRefresh = "refresh --kill-after=5s 150s";
const recordedCrashDownload = "download --kill-after=5s 180s";
it.skipIf(process.platform === "win32").each([
@@ -119,6 +119,8 @@ it.skipIf(process.platform === "win32").each([
case " $* " in
*" update "*)
record_stage refresh
[[ " $* " == *" Acquire::Languages=none "* ]] || return 98
[[ " $* " != *" -qq "* ]] || return 99
if [[ $mode == refresh && " $* " == *" --error-on=any "* ]]; then
return 100
fi