From 95ea74549cc454d6d6a7462b366462589cd96712 Mon Sep 17 00:00:00 2001 From: Yossi Gottlieb Date: Tue, 23 Feb 2021 12:57:45 +0200 Subject: Fix failed tests on Linux Alpine and add a CI job. (#8532) * Remove linux/version.h dependency. This introduces unnecessary dependencies, and generally not a good idea as the platform we build on may be different than the platform we run on. To determine if sync_file_range exists we can simply rely on header file hints. * Fix setproctitle() on libmusl. The previous ifdef checks were a bit too strict for no apparent reason. * Fix tests failure on Linux with no backtrace. * Add alpine daily CI job. --- .github/workflows/daily.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to '.github') diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 9d7eb65c9..6aa535c5e 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -221,3 +221,23 @@ jobs: MAKE=gmake ./runtest-moduleapi --verbose && ./runtest-sentinel && ./runtest-cluster + + test-alpine: + runs-on: ubuntu-latest + container: alpine:latest + steps: + - uses: actions/checkout@v2 + - name: make + run: | + apk add build-base + make REDIS_CFLAGS='-Werror' + - name: test + run: | + apk add tcl procps + ./runtest --accurate --verbose --dump-logs + - name: module api test + run: ./runtest-moduleapi --verbose + - name: sentinel tests + run: ./runtest-sentinel + - name: cluster tests + run: ./runtest-cluster -- cgit v1.2.1