-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (45 loc) · 1.81 KB
/
flaky.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Test flaky
on:
pull_request:
types: [ labeled ]
jobs:
test:
if: contains(github.event.pull_request.labels.*.name, 'flaky_tests')
strategy:
matrix:
go-version: [ 1.20.x ]
os: [ ubuntu-latest ]
# Run the same test 10 x 10 = 100 times => if a test has a failure chance
# < 1% we are probably fine
target: [ test_controllers_vaulttransitengine, test_controllers_vaulttransitengine, test_controllers_vaulttransitengine, test_controllers_vaulttransitengine, test_controllers_vaulttransitengine, test_controllers_vaulttransitengine , test_controllers_vaulttransitengine , test_controllers_vaulttransitengine , test_controllers_vaulttransitengine , test_controllers_vaultbinding ]
runs-on: ${{ matrix.os }}
timeout-minutes: 15
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Access to private Repos
run: git config --global url."https://golang:${ACCESS_TOKEN}@github.com".insteadOf "https://github.com"
env:
ACCESS_TOKEN: ${{ secrets.ORGANIZATION_GITHUB_ACCESS_TOKEN }}
- name: Cache Go Module & Build Cache
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
~/Library/Caches/go-build
%LocalAppData%\go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache Test Env Assets
uses: actions/cache@v4
with:
path: testbin
key: ${{ runner.os }}-testenv-${{ hashFiles('mk/*_test_env.mk') }}
- name: Test
run: hack/flaky.sh --fail-fast "${{ matrix.target }}" 10