Skip to content

Commit f732ae6

Browse files
authored
Rework time dilution in F3 tests and refine assertions (#862)
* Rework time dilution in F3 tests and refine assertions Progress the clock during tests independently of condition check. Rework the assertions to use built-in eventual assertion. Use consistent names for the asserting functions. Fixes #818 Fixes #847 * Reduce filality time and fix bugs in isntantiation/assertions * Repeat flaky tests 10 times on CI with/without race detector * Disable fail fast on CI and reduce clock advance by to 500ms * Fix typo in adcance clock step * Every 30 m advance by 1 s * Adjust base manifest * Increase timeouts to accommodate slow race detector tests * Increase timeout further to find what works on CI
1 parent e232882 commit f732ae6

File tree

3 files changed

+310
-240
lines changed

3 files changed

+310
-240
lines changed

.github/workflows/repeat-flaky.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Repeat Flaky Tests
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
test:
8+
name: ${{ matrix.test }} ${{ matrix.go }}
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
go:
14+
- 1.22
15+
- 1.23
16+
test:
17+
- TestF3Simple
18+
- TestF3WithLookback
19+
- TestF3PauseResumeCatchup
20+
- TestF3FailRecover
21+
- TestF3DynamicManifest_WithoutChanges
22+
- TestF3DynamicManifest_WithRebootstrap
23+
- TestF3DynamicManifest_WithPauseAndRebootstrap
24+
- TestF3DynamicManifest_RebootstrapWithCompression
25+
- TestF3LateBootstrap
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
with:
30+
submodules: 'recursive'
31+
- name: Repeat ${{ matrix.test }}
32+
run: go test -timeout 10m -count 10 -v --run='^${{ matrix.test }}' --failfast .
33+
- name: Repeat ${{ matrix.test }} with race detector
34+
run: go test -timeout 10m -count 10 -v --race --run='^${{ matrix.test }}' --failfast .

0 commit comments

Comments
 (0)