Skip to content

Commit 588f3b8

Browse files
committed
ci: force ipv4 resolutions first in Node.js
This addresses an issue with RBE.
1 parent 9d48693 commit 588f3b8

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

packages/angular/build/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ jasmine_test(
292292
name = "dev-server_integration_tests",
293293
size = "medium",
294294
data = [":dev-server_integration_test_lib"],
295+
env = {
296+
# Force IPv4 to resolve RBE resolution issues
297+
"NODE_OPTIONS": "--dns-result-order=ipv4first",
298+
},
295299
flaky = True,
296300
shard_count = 10,
297301
)

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,9 @@ LARGE_SPECS = {
422422
"//modules/testing/builder:node_modules/@angular-devkit/build-angular",
423423
],
424424
env = {
425+
# Force IPv4 to resolve RBE resolution issues
426+
"NODE_OPTIONS": "--dns-result-order=ipv4first",
427+
425428
# TODO: Replace Puppeteer downloaded browsers with Bazel-managed browsers,
426429
# or standardize to avoid complex configuration like this!
427430
"PUPPETEER_DOWNLOAD_PATH": "../../../node_modules/puppeteer/downloads",

packages/angular_devkit/build_webpack/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ jasmine_test(
9090
"//:node_modules/typescript",
9191
"//:node_modules/zone.js",
9292
],
93+
env = {
94+
# Force IPv4 to resolve RBE resolution issues
95+
"NODE_OPTIONS": "--dns-result-order=ipv4first",
96+
},
9397
)
9498

9599
genrule(

0 commit comments

Comments
 (0)