Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/logql-correctness.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ on:
required: false
default: true
type: "boolean"
suite:
description: "Test suite to run (each option includes its predecessors)"
required: false
default: "regression"
type: "choice"
options:
- fast
- regression
- exhaustive
permissions: {}
jobs:
generate-testdata:
Expand Down Expand Up @@ -95,11 +104,16 @@ jobs:
- name: Run tests
shell: bash # Use bash shell to propagate pipe failures
run: |
case "${{ inputs.suite || (github.event_name == 'schedule' && 'exhaustive') || 'regression' }}" in
exhaustive) SUITE="fast|regression|exhaustive" ;;
regression) SUITE="fast|regression" ;;
*) SUITE="fast" ;;
esac
go test \
-o results/bench.test \
-v -slow-tests -remote-transport=${{ matrix.remote_transport }} -timeout=60m \
-cpuprofile=results/cpu.pprof -memprofile=results/mem.pprof \
-run='TestStorageEquality/(fast|regression)/.*/kind=.+/store=${{ matrix.store }}$' \
-run="TestStorageEquality/(${SUITE})/.*/kind=.+/store=${{ matrix.store }}$" \
${{ matrix.range_type == 'instant' && '-range-type=instant' || '' }} \
${{ inputs.failfast == true && '-failfast' || '' }} \
| tee results/results.txt
Expand Down