From 8bfef987feb97d7679c47c49057a488d82d055d4 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 17 Dec 2024 16:07:03 -0600 Subject: [PATCH 1/3] ci: fix issue where puppeteer is failing on ubunut-latest --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50a10b143..24d004614 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,4 +61,6 @@ jobs: NODE_ENV=production yarn --cwd packages/react build NODE_ENV=production yarn --cwd packages/styles build - run: yarn build:docs - - run: yarn test:a11y + - run: | + export CHROME_DEVEL_SANDBOX=/opt/google/chrome/chrome-sandbox + yarn test:a11y From 4651889158240ba284b12cd8831b20c758ff3e5c Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 17 Dec 2024 16:10:32 -0600 Subject: [PATCH 2/3] chmod --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 24d004614..7e40ebdb4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,4 +63,5 @@ jobs: - run: yarn build:docs - run: | export CHROME_DEVEL_SANDBOX=/opt/google/chrome/chrome-sandbox + sudo chmod 4755 /opt/google/chrome/chrome-sandbox yarn test:a11y From 31a80625881b8abc563279e2a119e810bb099f52 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 17 Dec 2024 16:15:55 -0600 Subject: [PATCH 3/3] comment --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7e40ebdb4..9da94aee7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,6 +61,9 @@ jobs: NODE_ENV=production yarn --cwd packages/react build NODE_ENV=production yarn --cwd packages/styles build - run: yarn build:docs + # Newer versions of Ubuntu have increased security restrictions in which + # puppeteer is unable to launch without additional configuration + # See: https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md - run: | export CHROME_DEVEL_SANDBOX=/opt/google/chrome/chrome-sandbox sudo chmod 4755 /opt/google/chrome/chrome-sandbox