This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
replication: Cancel correct request type when append fails. #580
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI Tests | |
on: | |
- push | |
- pull_request | |
jobs: | |
build-and-test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
compiler: | |
- gcc | |
- clang | |
tracing: | |
- LIBRAFT_TRACE=1 | |
- NOLIBRAFT_TRACE=1 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq lcov linux-libc-dev liblz4-dev libuv1-dev btrfs-progs xfsprogs zfsutils-linux | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
git clone --depth 1 https://github.com/edlund/amalgamate.git | |
export PATH=$PATH:$PWD/amalgamate | |
autoreconf -i | |
./configure --enable-example --enable-debug --enable-code-coverage --enable-sanitize | |
amalgamate.py --config=amalgamation.json --source=$(pwd) | |
$CC raft.c -c -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -Wall -Wextra -Wpedantic -fpic | |
- name: Test | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
export ${{ matrix.tracing }} | |
./test/lib/fs.sh setup | |
make check $(./test/lib/fs.sh detect) || (cat ./test-suite.log && false) | |
./test/lib/fs.sh teardown | |
- name: Coverage | |
env: | |
CC: ${{ matrix.compiler }} | |
run: if [ "${CC}" = "gcc" ]; then make code-coverage-capture; fi | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v2 | |
with: | |
verbose: true | |
build-and-test-nolz4: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-20.04 | |
- ubuntu-22.04 | |
compiler: | |
- gcc | |
- clang | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup dependencies | |
run: | | |
sudo apt-get update -qq | |
sudo apt-get install -qq lcov linux-libc-dev libuv1-dev btrfs-progs xfsprogs zfsutils-linux | |
- name: Build | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
git clone --depth 1 https://github.com/edlund/amalgamate.git | |
export PATH=$PATH:$PWD/amalgamate | |
autoreconf -i | |
./configure --enable-example --enable-debug --enable-code-coverage --enable-sanitize --disable-lz4 | |
amalgamate.py --config=amalgamation.json --source=$(pwd) | |
$CC raft.c -c -D_GNU_SOURCE -DHAVE_LINUX_AIO_ABI_H -Wall -Wextra -Wpedantic -fpic | |
- name: Test | |
env: | |
CC: ${{ matrix.compiler }} | |
run: | | |
./test/lib/fs.sh setup | |
make check CFLAGS=-O0 $(./test/lib/fs.sh detect) || (cat ./test-suite.log && false) | |
./test/lib/fs.sh teardown | |
- name: Coverage | |
env: | |
CC: ${{ matrix.compiler }} | |
run: if [ "${CC}" = "gcc" ]; then make code-coverage-capture; fi | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
verbose: true |