Skip to content

SETUP: fallback for fallocate #164

SETUP: fallback for fallocate

SETUP: fallback for fallocate #164

Workflow file for this run

name: Splinter Tests
permissions:
contents: read
on:
pull_request:
jobs:
format-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libxxhash-dev libaio-dev libconfig-dev gcc clang-19 clang-format-19
- name: format-check
run: ./format-check.sh
run-test-matrix:
strategy:
matrix:
compiler_mode: [clang-msan, gcc-asan, clang, gcc]
build_mode: [debug, release]
target: [run-tests]
tests_function: [cache_tests_1, cache_tests_2, cache_tests_3, functionality_tests, parallel_perf_test_1, parallel_perf_test_2, parallel_perf_test_3, parallel_perf_test_4, perf_tests_1, perf_tests_2, splinter_misc_tests_1, splinter_misc_tests_2, large_insert_stress_tests_1, large_insert_stress_tests_2, large_insert_stress_tests_3, misc_tests, filter_tests, unit_tests]
exclude:
- compiler_mode: gcc-asan
build_mode: debug
target: run-tests
- compiler_mode: clang-msan
build_mode: debug
target: run-tests
# The following tests are excluded because they take too long to run with sanitizers
- build_mode: debug
tests_function: large_insert_stress_tests_2
- build_mode: debug
tests_function: large_insert_stress_tests_3
- compiler_mode: gcc-asan
tests_function: large_insert_stress_tests_2
- compiler_mode: gcc-asan
tests_function: large_insert_stress_tests_3
- compiler_mode: clang-msan
tests_function: large_insert_stress_tests_2
- compiler_mode: clang-msan
tests_function: large_insert_stress_tests_3
include:
- compiler_mode: gcc-asan
build_mode: debug
target: all
- compiler_mode: clang-msan
build_mode: debug
target: all
name: ${{ matrix.compiler_mode }} ${{ matrix.build_mode }} ${{ matrix.target }} ${{ matrix.tests_function }}
runs-on: ubuntu-latest
env:
CC: ${{ startsWith(matrix.compiler_mode, 'gcc') && 'gcc' || 'clang' }}
LD: ${{ startsWith(matrix.compiler_mode, 'gcc') && 'gcc' || 'clang' }}
BUILD_MODE: ${{ matrix.build_mode }}
BUILD_ASAN: ${{ endsWith(matrix.compiler_mode, 'asan') && 1 || 0 }}
BUILD_MSAN: ${{ endsWith(matrix.compiler_mode, 'msan') && 1 || 0 }}
TESTS_FUNCTION: ${{ matrix.tests_function }}
steps:
- name: Maximize build space
uses: rtjohnso/maximize-build-space@v1
with:
root-reserve-mb: 4096
temp-reserve-mb: 4096
swap-size-mb: 1
remove-dotnet: true
remove-android: true
remove-haskell: true
remove-codeql: true
remove-docker-images: false
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: libxxhash-dev libaio-dev libconfig-dev gcc clang-19 clang-format-19
- name: make ${{ matrix.target }}
run: df -h; make ${{ matrix.target }}
all-tests-passed:
runs-on: ubuntu-latest
name: All tests passed
needs: [format-check, run-test-matrix]
steps:
- name: All tests passed
run: echo "All tests passed"