Skip to content

Commit bfb32d4

Browse files
greggdonovanclaude
andcommitted
Fix: add --build_tag_filters to test command
--test_tag_filters only filters which tests RUN, not which targets are ANALYZED. bazel test //... still analyzes all targets. Need --build_tag_filters=-oci to prevent analysis of OCI targets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 0e80a42 commit bfb32d4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.bcr/presubmit.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ bcr_test_module_macos:
3131
test_targets:
3232
- "//..."
3333
test_flags:
34+
# OCI targets use select() for linux/amd64 which fails on arm64
35+
- "--build_tag_filters=-oci"
3436
# Docker not available on GitHub macOS runners
3537
# https://github.com/actions/runner/issues/1456
3638
- "--test_tag_filters=-docker,-oci"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ jobs:
5757
USE_BAZEL_VERSION: ${{ matrix.bazel }}
5858

5959
- name: Test (excluding OCI/docker tests)
60-
run: bazel test //... --test_tag_filters=-docker,-oci
60+
run: bazel test //... --build_tag_filters=-oci --test_tag_filters=-docker,-oci
6161
env:
6262
USE_BAZEL_VERSION: ${{ matrix.bazel }}

0 commit comments

Comments
 (0)