Skip to content

Commit 583d1bc

Browse files
committed
[build] tag filters do not inherit, the last specified is what is used
1 parent 4b76c91 commit 583d1bc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.bazelrc.remote

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ build:remote --disk_cache=
3131
build:remote --incompatible_enable_cc_toolchain_resolution
3232
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
3333
test:remote --test_env=DISPLAY=:99.0
34-
test:remote --test_tag_filters=-skip-remote,-remote
34+
test:remote --test_tag_filters=-exclusive-if-local,-skip-remote,-remote
3535

3636
# Env vars we can hard code
3737
build:remote --action_env=HOME=/home/dev

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ Tests can also be filtered by tag like:
283283
bazel test //<language>/... --test_tag_filters=this,-not-this
284284
```
285285

286+
If there are multiple `--test_tag_filters`, only the last one is considered,
287+
so be careful if also using an inherited config
288+
286289
### Java
287290

288291
<details>

scripts/github-actions/ci-build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ set -x
88
# so this should be fine
99
# shellcheck disable=SC2046
1010
bazel test --config=remote-ci --build_tests_only \
11-
--test_tag_filters=-exclusive-if-local,-skip-remote \
1211
--keep_going --flaky_test_attempts=2 \
1312
//... -- $(cat .skipped-tests | tr '\n' ' ')
1413

0 commit comments

Comments
 (0)