Skip to content

Commit ce63732

Browse files
committed
ci: force ipv4 resolutions first in Node.js
Backport of #32042
1 parent 948869d commit ce63732

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
@@ -300,6 +300,10 @@ jasmine_test(
300300
name = "dev-server_integration_tests",
301301
size = "medium",
302302
data = [":dev-server_integration_test_lib"],
303+
env = {
304+
# Force IPv4 to resolve RBE resolution issues
305+
"NODE_OPTIONS": "--dns-result-order=ipv4first",
306+
},
303307
flaky = True,
304308
shard_count = 10,
305309
)

packages/angular_devkit/build_angular/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,9 @@ LARGE_SPECS = {
425425
"//modules/testing/builder:node_modules/@angular-devkit/build-angular",
426426
],
427427
env = {
428+
# Force IPv4 to resolve RBE resolution issues
429+
"NODE_OPTIONS": "--dns-result-order=ipv4first",
430+
428431
# TODO: Replace Puppeteer downloaded browsers with Bazel-managed browsers,
429432
# or standardize to avoid complex configuration like this!
430433
"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)