Skip to content

Commit 719d04d

Browse files
committed
try querying targets
1 parent 00e4711 commit 719d04d

3 files changed

Lines changed: 50 additions & 7 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Bazel repeat flaky tests
2+
on:
3+
push:
4+
branches:
5+
- 'scpeters/bazel_repeat_tests'
6+
workflow_dispatch:
7+
inputs:
8+
runs_per_test:
9+
default: 10
10+
required: false
11+
type: string
12+
13+
jobs:
14+
call-repeat-tests:
15+
uses: ./.github/workflows/bazel_repeat_tests.yml
16+
with:
17+
flaky: 1
18+
runs_per_test: 10
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Bazel repeat non-flaky tests
2+
on:
3+
push:
4+
branches:
5+
- 'scpeters/bazel_repeat_tests'
6+
workflow_dispatch:
7+
inputs:
8+
runs_per_test:
9+
default: 10
10+
required: false
11+
type: string
12+
13+
jobs:
14+
call-repeat-tests:
15+
uses: ./.github/workflows/bazel_repeat_tests.yml
16+
with:
17+
flaky: 0
18+
runs_per_test: 10
Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
name: Bazel repeat tests
22
on:
3-
push:
4-
branches:
5-
- 'scpeters/bazel_repeat_tests'
63
workflow_call:
74
inputs:
5+
flaky:
6+
default: 0
7+
required: false
8+
type: string
89
runs_per_test:
9-
default: 100
10+
default: 10
1011
required: false
1112
type: string
1213
workflow_dispatch:
1314
inputs:
15+
flaky:
16+
default: 0
17+
required: false
18+
type: string
1419
runs_per_test:
15-
default: 100
20+
default: 10
1621
required: false
1722
type: string
1823

1924
jobs:
20-
test:
25+
repeat-tests:
2126
uses: bazel-contrib/.github/.github/workflows/bazel.yaml@v7.7.0
2227
with:
2328
folders: |
@@ -29,4 +34,6 @@ jobs:
2934
{"folder": ".", "bzlmodEnabled": false}
3035
]
3136
exclude_windows: true
32-
bazel_test_command: 'bazel test //... --runs_per_test=2${{ inputs.runs_per_test }}'
37+
bazel_test_command: |
38+
bazel test --runs_per_test=${{ inputs.runs_per_test }} \
39+
$(bazel query "attr(flaky, ${{ inputs.flaky }}, tests(//...))")

0 commit comments

Comments
 (0)