|
6 | 6 | load("@npm//@bazel/jasmine:index.bzl", "jasmine_node_test") |
7 | 7 | load("//tools:defaults.bzl", "pkg_npm", "ts_library") |
8 | 8 | load("//tools:ts_json_schema.bzl", "ts_json_schema") |
9 | | -load("//tools:toolchain_info.bzl", "TOOLCHAINS_NAMES", "TOOLCHAINS_VERSIONS") |
10 | 9 | load("@npm//@angular/build-tooling/bazel/api-golden:index.bzl", "api_golden_test_npm_package") |
11 | 10 |
|
12 | 11 | licenses(["notice"]) |
@@ -234,18 +233,10 @@ ts_library( |
234 | 233 | ], |
235 | 234 | ) |
236 | 235 |
|
237 | | -[ |
238 | | - jasmine_node_test( |
239 | | - name = "build_angular_test_" + toolchain_name, |
240 | | - srcs = [":build_angular_test_lib"], |
241 | | - tags = [toolchain_name], |
242 | | - toolchain = toolchain, |
243 | | - ) |
244 | | - for toolchain_name, toolchain in zip( |
245 | | - TOOLCHAINS_NAMES, |
246 | | - TOOLCHAINS_VERSIONS, |
247 | | - ) |
248 | | -] |
| 236 | +jasmine_node_test( |
| 237 | + name = "build_angular_test", |
| 238 | + srcs = [":build_angular_test_lib"], |
| 239 | +) |
249 | 240 |
|
250 | 241 | genrule( |
251 | 242 | name = "license", |
@@ -426,26 +417,18 @@ LARGE_SPECS = { |
426 | 417 | ] |
427 | 418 |
|
428 | 419 | [ |
429 | | - [ |
430 | | - jasmine_node_test( |
431 | | - name = "build_angular_" + spec + "_test_" + toolchain_name, |
432 | | - size = LARGE_SPECS[spec].get("size", "medium"), |
433 | | - flaky = LARGE_SPECS[spec].get("flaky", False), |
434 | | - shard_count = LARGE_SPECS[spec].get("shards", 2), |
435 | | - # These tests are resource intensive and should not be over-parallized as they will |
436 | | - # compete for the resources of other parallel tests slowing everything down. |
437 | | - # Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag. |
438 | | - tags = [ |
439 | | - "cpu:2", |
440 | | - toolchain_name, |
441 | | - ] + LARGE_SPECS[spec].get("tags", []), |
442 | | - toolchain = toolchain, |
443 | | - deps = [":build_angular_" + spec + "_test_lib"], |
444 | | - ) |
445 | | - for spec in LARGE_SPECS |
446 | | - ] |
447 | | - for toolchain_name, toolchain in zip( |
448 | | - TOOLCHAINS_NAMES, |
449 | | - TOOLCHAINS_VERSIONS, |
| 420 | + jasmine_node_test( |
| 421 | + name = "build_angular_" + spec + "_test", |
| 422 | + size = LARGE_SPECS[spec].get("size", "medium"), |
| 423 | + flaky = LARGE_SPECS[spec].get("flaky", False), |
| 424 | + shard_count = LARGE_SPECS[spec].get("shards", 2), |
| 425 | + # These tests are resource intensive and should not be over-parallized as they will |
| 426 | + # compete for the resources of other parallel tests slowing everything down. |
| 427 | + # Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag. |
| 428 | + tags = [ |
| 429 | + "cpu:2", |
| 430 | + ] + LARGE_SPECS[spec].get("tags", []), |
| 431 | + deps = [":build_angular_" + spec + "_test_lib"], |
450 | 432 | ) |
| 433 | + for spec in LARGE_SPECS |
451 | 434 | ] |
0 commit comments