build: run tests depending on webdriver-manager locally

This commit is contained in:
Greg Magolan 2020-04-16 12:08:19 -07:00 committed by Douglas Parker
parent da46bf9f5f
commit 52d7b012d3
2 changed files with 12 additions and 1 deletions

View File

@ -125,6 +125,11 @@ build:remote --bes_results_url="https://source.cloud.google.com/results/invocati
# Set remote caching settings
build:remote --remote_accept_cached=true
# Force remote executions to consider the entire run as linux.
# This is required for OSX cross-platform RBE.
build:remote --cpu=k8
build:remote --host_cpu=k8
###############################
# NodeJS rules settings
# These settings are required for rules_nodejs

View File

@ -261,6 +261,8 @@ LARGE_SPECS = {
"@npm//puppeteer",
"@npm//ts-node",
],
# NB: must be run locally because webdriver manager uses an absolute path to chromedriver
"tags": ["local"],
},
"dev-server": {
"extra_deps": [
@ -288,6 +290,10 @@ LARGE_SPECS = {
"@npm//puppeteer",
"@npm//ts-node",
],
# NB: must be run locally because webdriver manager uses an absolute path to chromedriver
"tags": ["local"],
# NB: multiple shards will compete for port 4200 so limiting to 1
"shards": 1,
},
"tslint": {
"extra_deps": [
@ -363,7 +369,7 @@ LARGE_SPECS = {
# These tests are resource intensive and should not be over-parallized as they will
# compete for the resources of other parallel tests slowing everything down.
# Ask Bazel to allocate multiple CPUs for these tests with "cpu:n" tag.
tags = ["cpu:2"],
tags = ["cpu:2"] + LARGE_SPECS[spec].get("tags", []),
templated_args = ["--nobazel_patch_module_resolver"],
deps = [":build_angular_" + spec + "_test_lib"],
)