Skip to content

Commit 57ae3c5

Browse files
committed
build: update puppeteer to v23
1 parent b9151e2 commit 57ae3c5

File tree

11 files changed

+357
-259
lines changed

11 files changed

+357
-259
lines changed

.aspect/rules/external_repository_action_cache/npm_translate_lock_MzA5NzUwNzMx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Input hashes for repository rule npm_translate_lock(name = "npm2", pnpm_lock = "@//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
44
.npmrc=-2023857461
5-
package.json=684715267
5+
package.json=-997435013
66
packages/angular/cli/package.json=-1878910022
77
packages/angular/pwa/package.json=1108903917
88
packages/angular_devkit/architect/package.json=-1496633956
@@ -13,6 +13,6 @@ packages/angular_devkit/schematics/package.json=673943597
1313
packages/angular_devkit/schematics_cli/package.json=-1663529211
1414
packages/ngtools/webpack/package.json=1463215526
1515
packages/schematics/angular/package.json=251715148
16-
pnpm-lock.yaml=-1421958199
16+
pnpm-lock.yaml=-982617857
1717
pnpm-workspace.yaml=1732591250
18-
yarn.lock=-1426990307
18+
yarn.lock=1511941294

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ yarn-error.log*
5454
.husky/_
5555
.bazelrc.user
5656
.eslintcache
57+
.cache/
5758

5859
# Mac OSX Finder files.
5960
**/.DS_Store

.puppeteerrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const { join } = require('path');
2+
3+
/**
4+
* @type {import("puppeteer").Configuration}
5+
*/
6+
module.exports = {
7+
// Changes the cache location for Puppeteer.
8+
cacheDirectory: join(__dirname, '.cache', 'puppeteer'),
9+
};

BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ copy_to_bin(
5959
],
6060
)
6161

62+
copy_to_bin(
63+
name = "puppeteer_browsers",
64+
srcs = [".puppeteerrc.cjs"] + glob([".cache/puppeteer/**"]),
65+
)
66+
6267
# Detect if the build is running under --stamp
6368
config_setting(
6469
name = "stamp",

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ load("@build_bazel_rules_nodejs//:index.bzl", "yarn_install")
134134
yarn_install(
135135
name = "npm",
136136
data = [
137+
"//:.puppeteerrc.cjs",
137138
"//:.yarn/releases/yarn-4.5.0.cjs",
138139
"//:.yarnrc.yml",
139140
"//:patches/@angular+bazel+19.1.0-next.4.patch",

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"templates": "yarn admin templates",
1919
"validate": "yarn admin validate",
2020
"postinstall": "patch-package && yarn webdriver-update && yarn husky",
21-
"//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version, see https://github.com/GoogleChrome/puppeteer/releases http://chromedriver.chromium.org/downloads",
22-
"webdriver-update": "webdriver-manager update --standalone false --gecko false --versions.chrome 106.0.5249.21",
21+
"//webdriver-update-README": "ChromeDriver version must match Puppeteer Chromium version",
22+
"webdriver-update": "yarn browsers install [email protected] --path=./.cache/puppeteer/",
2323
"public-api:check": "node goldens/public-api/manage.js test",
2424
"ng-dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only node_modules/@angular/ng-dev/bundles/cli.mjs",
2525
"public-api:update": "node goldens/public-api/manage.js accept",
@@ -80,6 +80,7 @@
8080
"@inquirer/confirm": "5.1.3",
8181
"@inquirer/prompts": "7.2.3",
8282
"@listr2/prompt-adapter-inquirer": "2.0.18",
83+
"@puppeteer/browsers": "2.7.0",
8384
"@rollup/plugin-alias": "^5.1.1",
8485
"@rollup/plugin-commonjs": "^28.0.0",
8586
"@rollup/plugin-node-resolve": "^13.0.5",
@@ -176,7 +177,7 @@
176177
"postcss-loader": "8.1.1",
177178
"prettier": "^3.0.0",
178179
"protractor": "~7.0.0",
179-
"puppeteer": "18.2.1",
180+
"puppeteer": "23.1.0",
180181
"quicktype-core": "23.0.171",
181182
"resolve-url-loader": "5.0.0",
182183
"rollup": "4.31.0",

packages/angular/build/src/builders/dev-server/tests/behavior/serve-live-reload-proxies_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describeServeBuilder(
162162
// See: https://github.com/angular/angular-cli/pull/17624
163163
// eslint-disable-next-line max-len
164164
// executablePath: '/Users/<USERNAME>/git/angular-cli/node_modules/puppeteer/.local-chromium/mac-818858/chrome-mac/Chromium.app/Contents/MacOS/Chromium',
165-
ignoreHTTPSErrors: true,
165+
acceptInsecureCerts: true,
166166
args: ['--no-sandbox', '--disable-gpu'],
167167
});
168168
});

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ LARGE_SPECS = {
411411
jasmine_node_test(
412412
name = "build_angular_" + spec + "_test",
413413
size = LARGE_SPECS[spec].get("size", "medium"),
414+
data = ["//:puppeteer_browsers"],
414415
flaky = LARGE_SPECS[spec].get("flaky", False),
415416
shard_count = LARGE_SPECS[spec].get("shards", 2),
416417
# These tests are resource intensive and should not be over-parallized as they will

packages/angular_devkit/build_angular/src/builders/dev-server/tests/behavior/serve-live-reload-proxies_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describeServeBuilder(
162162
// See: https://github.com/angular/angular-cli/pull/17624
163163
// eslint-disable-next-line max-len
164164
// executablePath: '/Users/<USERNAME>/git/angular-cli/node_modules/puppeteer/.local-chromium/mac-818858/chrome-mac/Chromium.app/Contents/MacOS/Chromium',
165-
ignoreHTTPSErrors: true,
165+
acceptInsecureCerts: true,
166166
args: ['--no-sandbox', '--disable-gpu'],
167167
});
168168
});

0 commit comments

Comments
 (0)