Skip to content

Commit f955fd5

Browse files
authored
Merge pull request #9229 from rabbitmq/rin/re-tag-exclusive-tests
Use the no-remote-exec instead of exclusive tag for some tests
2 parents e2416e5 + ac2d4e6 commit f955fd5

5 files changed

Lines changed: 5 additions & 120 deletions

File tree

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ build:rbe --config=buildbuddy
3333

3434
build:rbe --remote_executor=grpcs://remote.buildbuddy.io
3535

36-
build:rbe --spawn_strategy=remote
36+
build:rbe --spawn_strategy=remote,local
3737
build:rbe --test_strategy=""
3838
build:rbe --jobs=50
3939

.github/workflows/test-erlang-git.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ jobs:
4242
sudo ethtool -K eth0 tso off gso off gro off tx off rx off lro off
4343
bazelisk test //... \
4444
--config=rbe \
45-
--test_tag_filters=-mixed-version-cluster,-exclusive,-aws,-docker \
45+
--test_tag_filters=-mixed-version-cluster,-aws,-docker \
4646
--build_tests_only \
4747
--verbose_failures

.github/workflows/test-mixed-versions.yaml

Lines changed: 1 addition & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -162,69 +162,12 @@ jobs:
162162
sudo ethtool -K eth0 tso off gso off gro off tx off rx off lro off
163163
bazelisk test //... \
164164
--config=rbe-${{ matrix.otp_version_id }} \
165-
--test_tag_filters=mixed-version-cluster,-exclusive,-aws,-docker \
165+
--test_tag_filters=mixed-version-cluster,-aws,-docker \
166166
--build_tests_only \
167167
--verbose_failures
168-
test-exclusive-mixed-versions:
169-
name: Test (Exclusive Tests with Mixed Version Cluster)
170-
runs-on: ubuntu-20.04
171-
needs: ensure-mixed-version-archive
172-
strategy:
173-
matrix:
174-
include:
175-
- erlang_version: "25.3"
176-
elixir_version: 1.14.5
177-
timeout-minutes: 60
178-
steps:
179-
- name: CHECKOUT REPOSITORY
180-
uses: actions/checkout@v3
181-
- name: CONFIGURE OTP & ELIXIR
182-
uses: erlef/setup-beam@v1.16
183-
with:
184-
otp-version: ${{ matrix.erlang_version }}
185-
elixir-version: ${{ matrix.elixir_version }}
186-
- name: MOUNT BAZEL CACHE
187-
uses: actions/cache@v3.3.1
188-
with:
189-
path: "/home/runner/repo-cache/"
190-
key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
191-
restore-keys: |
192-
${{ runner.os }}-repo-cache-
193-
- name: CONFIGURE BAZEL
194-
run: |
195-
ERLANG_HOME="$(dirname $(dirname $(which erl)))"
196-
ELIXIR_HOME="$(dirname $(dirname $(which iex)))"
197-
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then
198-
cat << EOF >> user.bazelrc
199-
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }}
200-
EOF
201-
fi
202-
cat << EOF >> user.bazelrc
203-
build:buildbuddy --build_metadata=ROLE=CI
204-
build:buildbuddy --build_metadata=VISIBILITY=PRIVATE
205-
build:buildbuddy --repository_cache=/home/runner/repo-cache/
206-
build:buildbuddy --color=yes
207-
build:buildbuddy --disk_cache=
208-
209-
build --@rules_erlang//:erlang_version=${{ matrix.erlang_version }}
210-
build --@rules_erlang//:erlang_home=${ERLANG_HOME}
211-
build --//:elixir_home=${ELIXIR_HOME}
212-
EOF
213-
#! - name: Setup tmate session
214-
#! uses: mxschmitt/action-tmate@v3
215-
- name: RUN EXCLUSIVE TESTS
216-
run: |
217-
MIXED_EXCLUSIVE_TESTS=$(bazel query 'attr(tags, "mixed-version-cluster", attr(tags, "exclusive", tests(//...)))')
218-
bazelisk test $MIXED_EXCLUSIVE_TESTS \
219-
--config=buildbuddy \
220-
--test_tag_filters=-aws,-docker \
221-
--build_tests_only \
222-
--test_env RABBITMQ_CT_HELPERS_DELETE_UNUSED_NODES=true \
223-
--verbose_failures
224168
summary-mixed-versions:
225169
needs:
226170
- test-mixed-versions
227-
- test-exclusive-mixed-versions
228171
runs-on: ubuntu-latest
229172
steps:
230173
- name: SUMMARY

.github/workflows/test.yaml

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -72,70 +72,12 @@ jobs:
7272
sudo ethtool -K eth0 tso off gso off gro off tx off rx off lro off
7373
bazelisk test //... \
7474
--config=rbe-${{ matrix.otp_version_id }} \
75-
--test_tag_filters=-exclusive,-aws,-docker,-mixed-version-cluster \
75+
--test_tag_filters=-aws,-docker,-mixed-version-cluster \
7676
--build_tests_only \
7777
--verbose_failures
78-
test-exclusive:
79-
name: Test (Exclusive Tests)
80-
runs-on: ubuntu-20.04
81-
strategy:
82-
fail-fast: false
83-
matrix:
84-
include:
85-
- erlang_version: "25.3"
86-
elixir_version: 1.14.5
87-
- erlang_version: "26.0"
88-
elixir_version: 1.14.5
89-
timeout-minutes: 60
90-
steps:
91-
- name: CHECKOUT REPOSITORY
92-
uses: actions/checkout@v3
93-
- name: CONFIGURE OTP & ELIXIR
94-
uses: erlef/setup-beam@v1.16
95-
with:
96-
otp-version: ${{ matrix.erlang_version }}
97-
elixir-version: ${{ matrix.elixir_version }}
98-
- name: MOUNT BAZEL CACHE
99-
uses: actions/cache@v3.3.1
100-
with:
101-
path: "/home/runner/repo-cache/"
102-
key: ${{ runner.os }}-repo-cache-${{ hashFiles('MODULE.bazel','WORKSPACE','bazel/bzlmod/secondary_umbrella.bzl') }}
103-
restore-keys: |
104-
${{ runner.os }}-repo-cache-
105-
- name: CONFIGURE BAZEL
106-
run: |
107-
ERLANG_HOME="$(dirname $(dirname $(which erl)))"
108-
ELIXIR_HOME="$(dirname $(dirname $(which iex)))"
109-
if [ -n "${{ secrets.BUILDBUDDY_API_KEY }}" ]; then
110-
cat << EOF >> user.bazelrc
111-
build:buildbuddy --remote_header=x-buildbuddy-api-key=${{ secrets.BUILDBUDDY_API_KEY }}
112-
EOF
113-
fi
114-
cat << EOF >> user.bazelrc
115-
build:buildbuddy --build_metadata=ROLE=CI
116-
build:buildbuddy --build_metadata=VISIBILITY=PUBLIC
117-
build:buildbuddy --repository_cache=/home/runner/repo-cache/
118-
build:buildbuddy --color=yes
119-
build:buildbuddy --disk_cache=
120-
121-
build --@rules_erlang//:erlang_version=${{ matrix.erlang_version }}
122-
build --@rules_erlang//:erlang_home=${ERLANG_HOME}
123-
build --//:elixir_home=${ELIXIR_HOME}
124-
EOF
125-
#! - name: Setup tmate session
126-
#! uses: mxschmitt/action-tmate@v3
127-
- name: RUN EXCLUSIVE TESTS
128-
run: |
129-
bazelisk test //... \
130-
--config=buildbuddy \
131-
--test_tag_filters=exclusive,-aws,-docker,-mixed-version-cluster \
132-
--build_tests_only \
133-
--test_env RABBITMQ_CT_HELPERS_DELETE_UNUSED_NODES=true \
134-
--verbose_failures
13578
summary-test:
13679
needs:
13780
- test
138-
- test-exclusive
13981
runs-on: ubuntu-latest
14082
steps:
14183
- name: SUMMARY

deps/rabbit/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ rabbitmq_integration_suite(
478478
shard_count = 2,
479479
# The enabling_* tests chmod files and then expect writes to be blocked.
480480
# This probably doesn't work because we are root in the remote docker image.
481-
tags = ["exclusive"],
481+
tags = ["no-remote-exec"],
482482
runtime_deps = [
483483
"//deps/rabbit/test/feature_flags_SUITE_data/my_plugin:erlang_app",
484484
],

0 commit comments

Comments
 (0)