Skip to content

Self-hosted workflows for coding-agent delivery. Orchestrate CodeBuddy, Codex and Claude Code with scripts and human approval gates. Includes Local workflows for coding assistants.

ci: keep browser jobs running when runners cannot reach the Ubuntu archives (#186)

Robert0622c87694a3d9fe
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index c3606acb..3a1e82cd 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -56,7 +56,7 @@ jobs:
- name: Install Playwright
run: |
python3 -m pip install pyyaml==6.0.3 playwright==1.55.0
- python3 -m playwright install --with-deps chromium
+ bash ../scripts/install-playwright-deps.sh python3 -m playwright
- name: Render the observability dashboard
env:
LOOPFORGE_E2E_BROWSER: "1"
diff --git a/.github/workflows/platform.yml b/.github/workflows/platform.yml
index 31c0a55c..11199e7c 100644
--- a/.github/workflows/platform.yml
+++ b/.github/workflows/platform.yml
@@ -85,7 +85,7 @@ jobs:
working-directory: e2e
- run: npm audit --audit-level=high
working-directory: e2e
- - run: npx playwright install --with-deps chromium
+ - run: bash ../scripts/install-playwright-deps.sh npx playwright
working-directory: e2e
- name: Start clean local installation
run: |
@@ -152,7 +152,7 @@ jobs:
node-version: '22'
- run: npm ci
working-directory: e2e
- - run: npx playwright install --with-deps chromium
+ - run: bash ../scripts/install-playwright-deps.sh npx playwright
working-directory: e2e
- name: Install the pinned release, or build it while that release is not published yet
run: |
diff --git a/scripts/install-playwright-deps.sh b/scripts/install-playwright-deps.sh
new file mode 100755
index 00000000..3041c496
--- /dev/null
+++ b/scripts/install-playwright-deps.sh
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+# Install Chromium for Playwright in CI. Usage:
+# bash scripts/install-playwright-deps.sh npx playwright
+# bash scripts/install-playwright-deps.sh python3 -m playwright
+#
+# GitHub's Ubuntu runners already ship Chromium's shared libraries; apt only
+# adds fonts. When the runners cannot resolve the Ubuntu archives, continue
+# without those fonts as long as Chromium still has every library it links.
+set -euo pipefail
+(($#)) || { echo "usage: $0 <playwright command...>" >&2; exit 2; }
+
+"$@" install chromium
+
+if getent hosts archive.ubuntu.com >/dev/null || getent hosts azure.archive.ubuntu.com >/dev/null; then
+ "$@" install-deps chromium && exit 0
+ echo "::warning::Playwright system dependencies failed to install" >&2
+else
+ echo "::warning::Ubuntu archives do not resolve; skipping Playwright system dependencies" >&2
+fi
+
+shopt -s nullglob
+browsers=("${PLAYWRIGHT_BROWSERS_PATH:-$HOME/.cache/ms-playwright}"/chromium*/chrome-*/{chrome,chrome-headless-shell,headless_shell})
+((${#browsers[@]})) || { echo "Chromium was not installed" >&2; exit 1; }
+missing="$(ldd "${browsers[@]}" | grep 'not found' | sort -u || true)"
+if [[ -n "$missing" ]]; then
+ echo "Chromium is missing shared libraries:" >&2
+ echo "$missing" >&2
+ exit 1
+fi
+echo "Chromium links all of its libraries; continuing without the optional apt fonts"