You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: fail over unavailable Ubuntu package mirrors - #41174
Ubuntu package setup can retry an independent mirror when the primary download host fails, allowing required tests to start.
Files
Added
Deleted
Net
Test
0
0
0
0
Prod
5
$\color{#1a7f37}{\Huge{\mathbf{+}}}$74
$\color{#cf222e}{\Huge{\mathbf{−}}}$12
$\color{#1a7f37}{\Huge{\mathbf{+}}}$62
What Changed
Add a package installer with bounded primary setup and one MIT mirror fallback. Rewrite Ubuntu URIs only; preserve suites, architectures, signing keys, third-party sources and package arguments.
Put elevated timeouts inside sudo so the apt frontend can receive their signals. Wait for both dpkg locks and attempt interrupted-transaction repair within one 30-second allowance. Final package installation remains mandatory.
Use the installer for ARM shell contracts and Linux E2E/headless prerequisites. Preserve the exact original setup commands for older dispatched refs.
Keep Playwright's supported dependency selection: run its installed public install-deps webkit executable under the root deadline, then download WebKit as the runner. Avoid root pnpm execution, which can reinstall workspace dependencies during concurrent mobile builds.
Allow ten minutes for fallback package installation and the WebKit dependency retry. Hosted downloads of 93–114 MB at roughly 250 kB/s exceeded the earlier deadlines. Keep primary deadlines, required test commands and job timeouts unchanged; each elevated deadline has ten seconds of kill grace.
Why
Pi layout PR #41162 repeatedly failed before tests because Ubuntu package hosts did not resolve or timed out. Setup must recover from that failure without bypassing normal apt authentication or suppressing test failures.
Linked Issue
Unblocks #41162 and the maintainer-requested serial module cleanup.
Visual Proof
N/A — CI setup only.
Testing
Bash syntax, workflow parsing and final pnpm check:changed --timeout=3 --maxWorkers=2 pass.
Eighteen local package scenarios, nine WebKit shell scenarios and seven workflow comparisons preserve package/source fields, old-ref behavior, root/runner boundaries and mandatory failure propagation.
Six real macOS POSIX-lock cases and four GNU timeout/process-group cases exercise recovery and explicit descendant-survival limits. System-command adapters do not validate Linux dpkg, network downloads or signatures.
Independent source and native-union reviews accept the implementation. All required hosted checks and the aggregate pass on 7f3934ab: actual ARM/x86 mirror installations, 12 unit shards, both packages, D7, both changed-E2E shards and mobile render (25 suites / 105 examples). Two advisory Docker SSH shards are still running at merge readiness.
Risk
Level: Low. CI setup adds a public mirror dependency and finite per-route limits. Apt keeps normal signing/hash verification. Detached dpkg or TERM-ignoring descendants can still outlive a timeout; recovery and final installation may fail. WebKit retains Playwright's original update policy: unrelated repository hard errors can still fail dependency setup. A plain revert restores previous setup.
Review
Application source, test selection, runner architectures and pinned fish checksum are unchanged. No permanent tests are added. Planning and detailed evidence remain local.
Agent skill upstream boundary
Not applicable: no upstream skill-installer material copied or translated.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The changes add a shared Ubuntu APT package installer, a dpkg recovery script, and a script that rewrites matching Ubuntu repository URLs to MIT mirrors. The package installer validates its arguments, prepares APT, and retries installation after an initial failure. The E2E workflow uses shared installers when available and retains fallback commands. The pull request workflow uses the shared installer for zsh and adds a mirror and retry path for Playwright dependency installation.
Merge Risk: Moderate · up to 252bf
The new mirror fallback should make CI more resilient to Ubuntu mirror outages. The mobile WebKit fallback can still fail if an unrelated apt repository returns a hard refresh error, and the installer can occasionally skip the mirror fallback when apt reports success on stale indexes. Both affect CI reliability only; fixing the WebKit fallback before merge is recommended.
Pre-merge checks: 5
Check name
Status
Explanation
Title check
The title is concise, specific, and accurately describes the primary change: CI failover for unavailable Ubuntu package mirrors.
Docstring Coverage
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
The description is complete and relevant. It includes the required ELI5, change summary, rationale, linked issue reference, visual-proof statement, testing evidence, risk assessment, review notes, and…
Full details: Docstring Coverage
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.)
Full details: Description check
Explanation
The description is complete and relevant. It includes the required ELI5, change summary, rationale, linked issue reference, visual-proof statement, testing evidence, risk assessment, review notes, and upstream-boundary status. The omitted checklist and notes sections do not prevent review because the key information appears elsewhere.
Finishing Touches
Generate docstrings
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 86d8dd0e-855e-4b8f-9928-cc180ea91dcf
Commits
Reviewing files that changed from the base of the PR and between b3c808e and 252bf5a.
Files selected for processing: 3
.github/scripts/install-ubuntu-apt-packages.sh
.github/scripts/recover-ubuntu-dpkg.sh
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: a3ff2c2b-be51-4038-a45a-c0b67d8155ac
Commits
Reviewing files that changed from the base of the PR and between 0184d81 and 709a9bd.
Files selected for processing: 3
.github/scripts/install-ubuntu-apt-packages.sh
.github/workflows/e2e.yml
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Detect failed index downloads before installing.
apt-get update can return zero when an index download fails and it uses an old index. The install can then succeed with stale package versions, so the MIT fallback never runs. Use --error-on=any for the Ubuntu sources to detect this case. (wiki.debian.org)
Major · Stability & Availability · Heavy lift
Recover an interrupted dpkg transaction before retrying.
If the 120-second timeout expires while dpkg is unpacking or configuring packages, it can leave an incomplete transaction. The fallback install can then fail until dpkg --configure -a repairs the state, even when the MIT mirror is healthy. Handle that state before retrying, while keeping recovery bounded. (github.com)
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: d8e1aa4b-91e5-4d14-a0b1-2e2902e7f95c
Commits
Reviewing files that changed from the base of the PR and between 709a9bd and ac8fe9a.
Files selected for processing: 2
.github/scripts/install-ubuntu-apt-packages.sh
.github/workflows/e2e.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Stability & Availability · Heavy lift
Supported by static analysis
Web query:
On Ubuntu 24.04, when timeout 120 sudo apt-get install expires during a dpkg transaction, can the dpkg child remain running and retain its lock after apt-get exits? Check the Noble apt and sudo process and signal handling.
Result:
Sources consulted:
- Bound every apt step in CI, and fix the retry that never ran — GitHub pull request 9256 in unslothai/unsloth (link omitted to avoid creating a cross-reference)
- Tailscale SSH teardown leaves foreground processes running after tailscaled restart — GitHub issue 21021 in tailscale/tailscale (link omitted to avoid creating a cross-reference)
- timeout(1) — coreutils — Debian trixie — Debian Manpages — https://manpages.debian.org/trixie/coreutils/timeout.1.en.html
- timeout — https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/timeout.html
- Does the Unix command Timeout also kill any children of the process? — https://stackoverflow.com/questions/52283215/does-the-unix-command-timeout-also-kill-any-children-of-the-process
Ubuntu noble sudo 1.9 apt-get dpkg timeout SIGTERM child signal forwarded dpkg lock survives apt killed process
Result:
Sources consulted:
- Ubuntu Manpage: timeout - run a command with a time limit — https://manpages.ubuntu.com/manpages/noble/man1/timeout.1.html
- timeout — https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/utilities/timeout.html
- Ubuntu Manpage: sudo, sudoedit — https://manpages.ubuntu.com/manpages/noble/man8/sudo.8.html
- E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) — https://askubuntu.com/questions/1109982/e-could-not-get-lock-var-lib-dpkg-lock-frontend-open-11-resource-temporari
- Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? — https://askubuntu.com/questions/15433/unable-to-lock-the-administration-directory-var-lib-dpkg-is-another-process
Sources consulted:
- Bound every apt step in CI, and fix the retry that never ran — GitHub pull request 9256 in unslothai/unsloth (link omitted to avoid creating a cross-reference)
- scripts/ci-playwright-install — https://github.com/rubys/roundhouse/blob/9a05c73a/scripts/ci-playwright-install
- Backport: fix(ci): make RSC e2e Playwright install resilient to slow apt mirror — GitHub pull request 16263 in vercel/ai (link omitted to avoid creating a cross-reference)
- scripts/ci-apt-bound — https://github.com/rubys/roundhouse/blob/9a05c73a/scripts/ci-apt-bound
- Tailscale SSH teardown leaves foreground processes running after tailscaled restart — GitHub issue 21021 in tailscale/tailscale (link omitted to avoid creating a cross-reference)
Web query:
Ubuntu noble sudo manpage signals relayed command process group sudo command child SIGTERM pseudo terminal monitor
Result:
Sources consulted:
- UbuntuUpdates - Package "sudo" (noble 24.04) — https://www.ubuntuupdates.org/package/core/noble/main/updates/sudo
- Ubuntu – Details of package sudo in noble-updates — https://packages.ubuntu.com/noble-updates/sudo
- Change log : Noble (24.04) : sudo package : Ubuntu — https://answers.launchpad.net/ubuntu/noble/+source/sudo/+changelog
- When invoked as sudoedit, the -e option (described below), is implied. — https://www.sudo.ws/docs/man/1.9.15/sudo.man.pdf
- Sudo Manual | Sudo — https://www.sudo.ws/docs/man/1.9.14/sudo.man/
Sources consulted:
- scripts/ci-playwright-install — https://github.com/rubys/roundhouse/blob/9a05c73a/scripts/ci-playwright-install
- scripts/ci-apt-bound — https://github.com/rubys/roundhouse/blob/9a05c73a/scripts/ci-apt-bound
- Backport: fix(ci): make RSC e2e Playwright install resilient to slow apt mirror — GitHub pull request 16263 in vercel/ai (link omitted to avoid creating a cross-reference)
- Bound every apt step in CI, and fix the retry that never ran — GitHub pull request 9256 in unslothai/unsloth (link omitted to avoid creating a cross-reference)
- Tailscale SSH teardown leaves foreground processes running after tailscaled restart — GitHub issue 21021 in tailscale/tailscale (link omitted to avoid creating a cross-reference)
Web query:
apt dpkg pm SIGTERM signal handling "dpkg" apt-get interrupted kill child process apt-pkg deb dpkgpm.cc
Result:
Sources consulted:
- apt-pkg/deb/dpkgpm.cc — https://github.com/Debian/apt/blob/766b24b7f7484751950c76bc66d3d6cdeaf949a5/apt-pkg/deb/dpkgpm.cc
- File: changelog | Debian Sources — https://sources.debian.org/src/apt/3.0.3/debian/changelog
- dpkgpm.cc « deb « apt-pkg - apt.git - Saurik's version of apt managed for tvOS/ARM64 — https://git.bingner.com/apt.git/tree/apt-pkg/deb/dpkgpm.cc?h=1.9.0&id=ed7f915948c15b5d0db976f4a2ef42dbb7a06aff
- How to safely abort apt-get install? — https://askubuntu.com/questions/253925/how-to-safely-abort-apt-get-install
- SSH pipe broke while running apt upgrade. What can I do about it? — https://unix.stackexchange.com/questions/156541/ssh-pipe-broke-while-running-apt-upgrade-what-can-i-do-about-it
Web query:
Ubuntu noble apt 2.7.14 dpkgpm.cc SIGTERM setsid dpkg process signal fork github apt
Result:
Sources consulted:
- Ubuntu – Details of package apt in noble — https://packages.ubuntu.com/en/noble/amd64/apt
- add new pid_t ExecFork(std::set<int> KeepFDs) to get rid of the super ugly APT::Keep-Fds hack and also add a new PackageManagerProgressFd::StartDpkg() progress state · e45c461 · mvo5/apt — https://github.com/mvo5/apt/commit/e45c4617e496b49f8d7225546a751022f246a2f3
- apt-pkg/deb/dpkgpm.cc — https://github.com/Debian/apt/blob/766b24b7f7484751950c76bc66d3d6cdeaf949a5/apt-pkg/deb/dpkgpm.cc
- dpkgpm.cc « deb « apt-pkg - apt.git - Saurik's version of apt managed for tvOS/ARM64 — https://git.bingner.com/apt.git/tree/apt-pkg/deb/dpkgpm.cc?h=1.9.0&id=ed7f915948c15b5d0db976f4a2ef42dbb7a06aff
- credentials(7) - Linux manual page — https://www.man7.org/linux/man-pages/man7/credentials.7.html
Script executed:
python3 - <<'PY'import urllib.requesturl = 'https://raw.githubusercontent.com/Debian/apt/2.7.14/apt-pkg/deb/dpkgpm.cc'try: with urllib.request.urlopen(url, timeout=15) as r: lines = r.read().decode().splitlines() print('source:', url) hits = [i for i, line in enumerate(lines) if any(x in line for x in ('SIGTERM', 'SIGINT', 'SIGQUIT', 'setsid(', 'setpgid(', 'ExecFork(', 'waitpid(', 'Dpkg::Use-Pty', 'DPkg::Use-Pty'))] included = set() for i in hits: for j in range(max(0, i-5), min(len(lines), i+9)): if j not in included: print(f'{j+1}: {lines[j]}') included.add(j) print('---')except Exception as e: print('Source read failed:', type(e).__name__, str(e))PY
Repository: stablyai/orca
Length of output: 5263
Script executed:
python3 - <<'PY'import urllib.requestbase='https://raw.githubusercontent.com/Debian/apt/2.7.14/'for path, windows in [('apt-pkg/deb/dpkgpm.cc', [(1210,1335),(1980,2065)]), ('apt-pkg/contrib/fileutl.cc', [(0,0)])]: url=base+path try: with urllib.request.urlopen(url, timeout=15) as r: lines=r.read().decode().splitlines() print('\nSOURCE',url) if windows == [(0,0)]: hits=[i for i,s in enumerate(lines) if 'pid_t ExecFork(' in s or 'SIGTERM' in s] windows=[(max(1,i-5),min(len(lines),i+40)) for i in hits] for lo,hi in windows: for i in range(lo-1,min(hi,len(lines))): print(f'{i+1}: {lines[i]}') print('---') except Exception as e: print('Source read failed:', type(e).__name__, str(e))PY
Repository: stablyai/orca
Length of output: 11858
Web query:
github sudo 1.9.15 exec_pty.c forward_signal SIGTERM monitor killpg sudo signal command process group
rg -n -F -- 'install-ubuntu-apt-packages.sh' .github
python3 - <<'PY'import urllib.requestbase='https://raw.githubusercontent.com/guillemj/dpkg/1.22.6/'for path in ['src/main/main.c', 'src/main/configure.c', 'src/main/archives.c', 'lib/dpkg/lock.c']: url=base+path try: with urllib.request.urlopen(url, timeout=15) as r: lines=r.read().decode().splitlines() print('\nSOURCE',url) hits=[i for i,s in enumerate(lines) if any(x in s for x in ['SIGHUP','SIGTERM','SIGPIPE','lockdatabase','dpkg_db_lock','maintscript','subproc_reap'])] for i in hits: for j in range(max(0,i-3), min(len(lines),i+5)): print(f'{j+1}: {lines[j]}') print('---') except Exception as e: print('Source read failed:',type(e).__name__,str(e))PY
Repository: stablyai/orca
Length of output: 1814
Web query:
Ubuntu 24.04 noble dpkg package version 1.22 dpkg SIGHUP ignored apt process dies pty master
cat -n .github/workflows/e2e.yml | sed -n '95,132p'
python3 - <<'PY'import urllib.request, tarfile, iourl='https://github.com/guillemj/dpkg/archive/refs/tags/1.22.6.tar.gz'try: with urllib.request.urlopen(url, timeout=20) as r: data=r.read() with tarfile.open(fileobj=io.BytesIO(data),mode='r:gz') as tar: for f in tar: if not f.isfile() or not f.name.endswith('.c') or not ('/src/main/' in f.name or '/lib/dpkg/' in f.name): continue lines=tar.extractfile(f).read().decode(errors='replace').splitlines() hits=[i for i,s in enumerate(lines) if any(x in s for x in ['SIGHUP','SIGTERM','SIGPIPE','modstatdb_lock','dpkg_db_lock','maintscript_exec','maintscript_postinst'])] if hits: print('\nSOURCE',url, f.name) out=set() for i in hits: for j in range(max(0,i-4),min(len(lines),i+7)): if j not in out: print(f'{j+1}: {lines[j]}'); out.add(j) print('---')except Exception as e: print('Source read failed:',type(e).__name__,str(e))PY
Repository: stablyai/orca
Length of output: 11036
Script executed:
python3 - <<'PY'import urllib.requestsources = [('https://raw.githubusercontent.com/guillemj/dpkg/1.22.6/lib/dpkg/dbmodify.c',[(250,320),(325,355)]),('https://raw.githubusercontent.com/guillemj/dpkg/1.22.6/src/main/script.c',[(170,210)]),('https://raw.githubusercontent.com/sudo-project/sudo/SUDO_1_9_15p5/src/exec_monitor.c',[]),('https://raw.githubusercontent.com/Debian/apt/2.7.14/apt-pkg/deb/dpkgpm.cc',[])]for url, windows in sources: try: with urllib.request.urlopen(url,timeout=15) as r: lines=r.read().decode().splitlines() print('\nSOURCE',url) if not windows: pats=['forward_signal', 'killpg(', 'kill(-', 'StartPtyMagic();'] hits=[i for i,s in enumerate(lines) if any(p in s for p in pats)] windows=[(max(1,i-7),min(len(lines),i+13)) for i in hits] for lo,hi in windows: for i in range(lo-1,min(hi,len(lines))): print(f'{i+1}: {lines[i]}') print('---') except Exception as e: print('Source read failed:', type(e).__name__, str(e))PY
Repository: stablyai/orca
Length of output: 8751
Script executed:
python3 - <<'PY'import urllib.request, tarfile, iourl='https://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt_2.7.14build2.tar.xz'try: with urllib.request.urlopen(url,timeout=25) as r: data=r.read() with tarfile.open(fileobj=io.BytesIO(data),mode='r:xz') as t: members=[m for m in t if m.isfile() and m.name.endswith('/apt-pkg/deb/dpkgpm.cc')] for m in members: print('SOURCE',url,m.name) lines=t.extractfile(m).read().decode().splitlines() for lo,hi in [(1210,1225),(1309,1325),(1750,1762),(1985,2009)]: for i in range(lo-1,min(hi,len(lines))): print(f'{i+1}: {lines[i]}') print('---') if not members: print('dpkgpm.cc not found in archive')except Exception as e: print('Source read failed:',type(e).__name__,str(e))PY
Repository: stablyai/orca
Length of output: 2955
Wait for the timed-out dpkg transaction before recovery.
A timed-out apt-get can leave its dpkg child running with the database lock. If the child remains active, dpkg --configure -a can fail, and the final install can fail on the same lock. Ensure the transaction has stopped before recovery, within the existing time budget.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e1211ae3-e59d-448e-9129-80cf139d5f9b
Commits
Reviewing files that changed from the base of the PR and between f2c098b and b3c808e.
Files selected for processing: 4
.github/scripts/install-ubuntu-apt-packages.sh
.github/scripts/recover-ubuntu-dpkg.sh
.github/scripts/use-ubuntu-apt-mirror.sh
.github/workflows/pr.yml
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Major · Stability & Availability · Heavy lift
Allow the WebKit fallback to survive unrelated index failures.
Playwright 1.64.1 runs apt-get update && apt-get install for --with-deps. If an unrelated repository returns a hard update error, the retry stops before installing WebKit dependencies, even when the MIT mirror is healthy. Install the dependencies through a path that tolerates unrelated refresh failures, then install WebKit. (raw.githubusercontent.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Ubuntu package setup can retry an independent mirror when the primary download host fails, allowing required tests to start.
What Changed
install-deps webkitexecutable under the root deadline, then download WebKit as the runner. Avoid root pnpm execution, which can reinstall workspace dependencies during concurrent mobile builds.Why
Pi layout PR #41162 repeatedly failed before tests because Ubuntu package hosts did not resolve or timed out. Setup must recover from that failure without bypassing normal apt authentication or suppressing test failures.
Linked Issue
Unblocks #41162 and the maintainer-requested serial module cleanup.
Visual Proof
N/A — CI setup only.
Testing
pnpm check:changed --timeout=3 --maxWorkers=2pass.7f3934ab: actual ARM/x86 mirror installations, 12 unit shards, both packages, D7, both changed-E2E shards and mobile render (25 suites / 105 examples). Two advisory Docker SSH shards are still running at merge readiness.Risk
Level: Low. CI setup adds a public mirror dependency and finite per-route limits. Apt keeps normal signing/hash verification. Detached dpkg or TERM-ignoring descendants can still outlive a timeout; recovery and final installation may fail. WebKit retains Playwright's original update policy: unrelated repository hard errors can still fail dependency setup. A plain revert restores previous setup.
Review
Application source, test selection, runner architectures and pinned fish checksum are unchanged. No permanent tests are added. Planning and detailed evidence remain local.
Agent skill upstream boundary