From d405115e4178506f36b636b5df2023a2e213612a Mon Sep 17 00:00:00 2001 From: ShuaixinHuang <1836656514@qq.com> Date: Fri, 20 Nov 2026 08:36:28 +0800 Subject: [PATCH] fix(ci): make recorded crash APT refresh bounded and observable (#12607) Co-authored-by: ShuaixinHuang --- .github/workflows/real-recorded-crash.yml | 5 +++-- tests/boundary/filesystem/ciRequiredLanes.test.ts | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/real-recorded-crash.yml b/.github/workflows/real-recorded-crash.yml index 5ac2efaad6..bf78fc2eda 100644 --- a/.github/workflows/real-recorded-crash.yml +++ b/.github/workflows/real-recorded-crash.yml @@ -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" diff --git a/tests/boundary/filesystem/ciRequiredLanes.test.ts b/tests/boundary/filesystem/ciRequiredLanes.test.ts index b3f4eea46a..611d8443cc 100644 --- a/tests/boundary/filesystem/ciRequiredLanes.test.ts +++ b/tests/boundary/filesystem/ciRequiredLanes.test.ts @@ -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