Skip to content

Commit 92a45f1

Browse files
ci: expose suite option, use exhaustive for cron (#20972)
1 parent 911fce4 commit 92a45f1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/logql-correctness.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ on:
2222
required: false
2323
default: true
2424
type: "boolean"
25+
suite:
26+
description: "Test suite to run (each option includes its predecessors)"
27+
required: false
28+
default: "regression"
29+
type: "choice"
30+
options:
31+
- fast
32+
- regression
33+
- exhaustive
2534
permissions: {}
2635
jobs:
2736
generate-testdata:
@@ -95,11 +104,16 @@ jobs:
95104
- name: Run tests
96105
shell: bash # Use bash shell to propagate pipe failures
97106
run: |
107+
case "${{ inputs.suite || (github.event_name == 'schedule' && 'exhaustive') || 'regression' }}" in
108+
exhaustive) SUITE="fast|regression|exhaustive" ;;
109+
regression) SUITE="fast|regression" ;;
110+
*) SUITE="fast" ;;
111+
esac
98112
go test \
99113
-o results/bench.test \
100114
-v -slow-tests -remote-transport=${{ matrix.remote_transport }} -timeout=60m \
101115
-cpuprofile=results/cpu.pprof -memprofile=results/mem.pprof \
102-
-run='TestStorageEquality/(fast|regression)/.*/kind=.+/store=${{ matrix.store }}$' \
116+
-run="TestStorageEquality/(${SUITE})/.*/kind=.+/store=${{ matrix.store }}$" \
103117
${{ matrix.range_type == 'instant' && '-range-type=instant' || '' }} \
104118
${{ inputs.failfast == true && '-failfast' || '' }} \
105119
| tee results/results.txt

0 commit comments

Comments
 (0)