Skip to content

Commit 10fcf8f

Browse files
authored
Disable slow tests by default (#2205)
1 parent 12312a5 commit 10fcf8f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Diff for: .bazelrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
common --enable_platform_specific_config
22
build --verbose_failures
33
build --build_tag_filters=-off-by-default
4-
test --test_tag_filters=-off-by-default
4+
test --test_tag_filters=-off-by-default,-slow
5+
6+
test:enable-slow-tests --test_tag_filters=-off-by-default
57

68
# Not using bzlmod for dependencies yet
79
common --noenable_bzlmod

Diff for: .github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ jobs:
128128
build:asan --config=limit-storage
129129
build:debug --config=limit-storage
130130
EOF
131-
- name: Disable slow tests if applicable
131+
- name: Enable slow tests if applicable
132132
# Some tests (like Python import tests) take a long time to run and don't benefit much
133133
# from multi-platform testing. For that reason, we only run them in a single configuration
134134
# to minimize effect on CI pipeline runtime.
135-
if: matrix.os.name != 'linux' || matrix.config.suffix != ''
135+
if: matrix.os.name == 'linux' && matrix.config.suffix != ''
136136
shell: bash
137137
run: |
138138
cat <<EOF >> .bazelrc
139-
test --test_tag_filters=-slow,-off-by-default
139+
test --config=enable-slow-tests
140140
EOF
141141
- name: Configure git hooks
142142
# Configure git to quell an irrelevant warning for runners (they never commit / push).

0 commit comments

Comments
 (0)