From 5511a93aba9e65bb9520d2e74f1f0d895ccc3ce9 Mon Sep 17 00:00:00 2001 From: Nicolas Dupont Date: Tue, 21 Jan 2025 10:24:56 +0100 Subject: [PATCH] Fix CI (#846) Pin Ubuntu to v22.04 in CI to avoid sandbox issues Ubuntu 23.10+ ships with an AppArmor profile that prevents Chrome for Testing binaries (used by Puppeteer) from using user namespaces, causing "No usable sandbox!" errors. See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 259a6b3..8c05467 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,8 +5,9 @@ on: workflow_call: jobs: + # Using Ubuntu 22.04 due to AppArmor restrictions in newer versions (23.10+) that interfere with Puppeteer's sandbox functionality. See https://pptr.dev/troubleshooting#issues-with-apparmor-on-ubuntu validate_schema: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -16,7 +17,7 @@ jobs: - run: npm run test:schema lint: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 @@ -26,7 +27,7 @@ jobs: - run: npm run lint validate_modified_declarations: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: