Skip to content

Commit e50a73f

Browse files
authored
build: fix docs deployment and monitoring (angular#30373)
The docs deploy job currently tries to inject/install our snapshot builds, but Yarn 2.x doesn't allow it by default. In addition, GitHub actions execute with Ubuntu 24 as of recently, as this requires additional pre-setup to be able to execute Chromium via Pupeteer.
1 parent 7c57f82 commit e50a73f

File tree

5 files changed

+244
-114
lines changed

5 files changed

+244
-114
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,10 @@ jobs:
238238
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
239239
with:
240240
cache-node-modules: true
241+
# See: https://github.com/puppeteer/puppeteer/pull/13196 and
242+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md.
243+
- name: Disable AppArmor
244+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
241245
- name: Setup Bazel
242246
uses: angular/dev-infra/github-actions/bazel/setup@359350bbc10aab1bac85d0eec61a53377078ab82
243247
- name: Setup Bazel RBE

.github/workflows/scheduled-ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@359350bbc10aab1bac85d0eec61a53377078ab82
7575
with:
7676
cache-node-modules: true
77+
# See: https://github.com/puppeteer/puppeteer/pull/13196 and
78+
# https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md.
79+
- name: Disable AppArmor
80+
run: echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
7781
- name: Install node modules
7882
run: yarn install --frozen-lockfile
7983
- name: Check Docs Site

material.angular.io/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"lighthouse-logger": "~1.2.0",
9797
"npm-run-all": "^4.1.5",
9898
"protractor": "^7.0.0",
99-
"puppeteer": "~21.1.0",
99+
"puppeteer": "^24.1.0",
100100
"sass": "^1.70.0",
101101
"shelljs": "^0.8.4",
102102
"ts-node": "^8.10.2",

0 commit comments

Comments
 (0)