-
Notifications
You must be signed in to change notification settings - Fork 7
61 lines (59 loc) · 1.7 KB
/
test-flaky.yml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Repeat Flaky
on:
pull_request:
jobs:
# cache-test-bins:
# name: Prepare go test cache
# runs-on: ubuntu-latest
# strategy:
# matrix:
# go:
# - 1.22
# - 1.23
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup Go ${{ matrix.go }}
# uses: actions/setup-go@v5
# with:
# go-version: ${{ matrix.go }}
# cache: false
# - name: Compile tests
# run: go test -c -o f3-tests
# - name: Cache compiled tests
# uses: actions/cache/save@v4
# with:
# path: './f3-tests'
# key: f3-tests-flaky-${{ matrix.go }}
test:
name: ${{ matrix.test }} ${{ matrix.go }}
runs-on: ubuntu-latest
# needs: cache-test-bins
strategy:
fail-fast: false
matrix:
go:
- 1.22
- 1.23
# test:
# - TestF3LateBootstrap
# - TestF3PauseResumeCatchup
# - TestF3WithLookback
# - TestF3FailRecover
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Restore cached built F3 test binaries
# uses: actions/cache/restore@v4
# with:
# path: './f3-tests'
# key: f3-tests-flaky-${{ matrix.go }}
# - name: Repeat ${{ matrix.test }}
# run: ./f3-tests -test.run=${{ matrix.test }} -test.count 100
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- name: Repeat ${{ matrix.test }}
run: go test -v -timeout 30m -count 50 . --tags=theflakybunch