Free Tests installs saved system packages that upgrade the runner's own (GST-4075) (#4858)

Free Tests' Linux jobs no longer fail on a runner whose saved system
packages include a newer version of one the image already has.

Why: dpkg refused libasound2-data 0.5 because it breaks the installed
libasound2t64 0.3, left the package database broken, and every later
apt-get exited 100 (run 46017056376).

Nothing to do: the fix is in the workflow only.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p1/outside-voice#1 reader=outside-voice
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-27 15:38:51 +00:00
1 parent 306ff23b9d
commit 8b5a70c492
3 files changed
+52 -10

No files matched your search

+30 -8
View File
@@ -408,17 +408,24 @@ jobs:
with:
path: ~/.cache/gstack-apt-debs
key: ${{ steps.apt_base.outputs.cache_key }}
# The cache can hold a newer version of a package the image already has.
# dpkg installs the files in name order, so on run 46017056376
# libasound2-data 0.5 came before libasound2t64 and was refused because it
# breaks the installed libasound2t64 0.3. --auto-deconfigure lets dpkg set
# libasound2t64 aside until its own upgrade in the same call lands.
- name: Install the cached system packages without the network
id: apt_offline
if: steps.apt_cache.outputs.cache-hit == 'true'
continue-on-error: true
run: sudo dpkg -i "$HOME"/.cache/gstack-apt-debs/*.deb
run: sudo dpkg -i --auto-deconfigure "$HOME"/.cache/gstack-apt-debs/*.deb
# The cache restores the browser; --with-deps still runs apt for system
# libraries. On 2026-10-21 apt stalled on an archive.ubuntu.com fetch and
# held free-suite (12) for the whole 20-minute job timeout (run
# 39641712129). Each attempt gets 5 minutes (a warm install takes about
# 15 s) and the install alone is retried once. This retries infrastructure,
# never a test.
# never a test. A failed offline dpkg -i leaves packages unpacked but
# unconfigured, and every later apt-get then exits 100 on unmet
# dependencies, so each online attempt first repairs what it left.
- name: Install Playwright Chromium
id: playwright_install
timeout-minutes: 5
@@ -426,14 +433,18 @@ jobs:
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; else npx playwright install --with-deps chromium; fi
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; exit; fi
if [ "$SYSTEM_PACKAGES" = failure ]; then sudo dpkg --configure -a || true; sudo apt-get update; sudo apt-get install -f -y; fi
npx playwright install --with-deps chromium
- name: Retry the Playwright Chromium install once
if: steps.playwright_install.outcome == 'failure'
timeout-minutes: 5
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; else npx playwright install --with-deps chromium; fi
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; exit; fi
if [ "$SYSTEM_PACKAGES" = failure ]; then sudo dpkg --configure -a || true; sudo apt-get update; sudo apt-get install -f -y; fi
npx playwright install --with-deps chromium
- name: Configure the bundled Chromium sandbox helper
run: |
set -euo pipefail
@@ -602,17 +613,24 @@ jobs:
with:
path: ~/.cache/gstack-apt-debs
key: ${{ steps.apt_base.outputs.cache_key }}
# The cache can hold a newer version of a package the image already has.
# dpkg installs the files in name order, so on run 46017056376
# libasound2-data 0.5 came before libasound2t64 and was refused because it
# breaks the installed libasound2t64 0.3. --auto-deconfigure lets dpkg set
# libasound2t64 aside until its own upgrade in the same call lands.
- name: Install the cached system packages without the network
id: apt_offline
if: steps.apt_cache.outputs.cache-hit == 'true'
continue-on-error: true
run: sudo dpkg -i "$HOME"/.cache/gstack-apt-debs/*.deb
run: sudo dpkg -i --auto-deconfigure "$HOME"/.cache/gstack-apt-debs/*.deb
# The cache restores the browser; --with-deps still runs apt for system
# libraries. On 2026-10-21 apt stalled on an archive.ubuntu.com fetch and
# held free-suite (12) for the whole 20-minute job timeout (run
# 39641712129). Each attempt gets 5 minutes (a warm install takes about
# 15 s) and the install alone is retried once. This retries infrastructure,
# never a test.
# never a test. A failed offline dpkg -i leaves packages unpacked but
# unconfigured, and every later apt-get then exits 100 on unmet
# dependencies, so each online attempt first repairs what it left.
- name: Install Playwright Chromium
id: playwright_install
timeout-minutes: 5
@@ -620,7 +638,9 @@ jobs:
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; else npx playwright install --with-deps chromium; fi
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; exit; fi
if [ "$SYSTEM_PACKAGES" = failure ]; then sudo dpkg --configure -a || true; sudo apt-get update; sudo apt-get install -f -y; fi
npx playwright install --with-deps chromium
- name: Retry the Playwright Chromium install once
if: steps.playwright_install.outcome == 'failure'
@@ -628,7 +648,9 @@ jobs:
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; else npx playwright install --with-deps chromium; fi
if [ "$SYSTEM_PACKAGES" = success ]; then npx playwright install chromium; exit; fi
if [ "$SYSTEM_PACKAGES" = failure ]; then sudo dpkg --configure -a || true; sudo apt-get update; sudo apt-get install -f -y; fi
npx playwright install --with-deps chromium
- name: Configure the bundled Chromium sandbox helper
run: |