2020-05-03 02:31:50 -04:00
|
|
|
name: Daily
|
|
|
|
|
|
|
|
on:
|
2020-07-20 06:57:54 -04:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
# any PR to a release branch.
|
|
|
|
- '[0-9].[0-9]'
|
2020-05-03 02:31:50 -04:00
|
|
|
schedule:
|
2020-07-12 06:55:26 -04:00
|
|
|
- cron: '0 0 * * *'
|
2020-05-03 02:31:50 -04:00
|
|
|
|
|
|
|
jobs:
|
2020-05-24 01:00:12 -04:00
|
|
|
|
2020-07-30 06:25:10 -04:00
|
|
|
test-ubuntu-jemalloc:
|
2020-05-03 02:31:50 -04:00
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-12 06:55:26 -04:00
|
|
|
timeout-minutes: 14400
|
2020-05-03 02:31:50 -04:00
|
|
|
steps:
|
2020-07-20 02:22:24 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-03 02:31:50 -04:00
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
sudo apt-get install tcl8.5
|
|
|
|
./runtest --accurate --verbose
|
|
|
|
- name: module api test
|
|
|
|
run: ./runtest-moduleapi --verbose
|
2020-07-12 06:55:26 -04:00
|
|
|
- name: sentinel tests
|
|
|
|
run: ./runtest-sentinel
|
|
|
|
- name: cluster tests
|
|
|
|
run: ./runtest-cluster
|
2020-05-03 02:31:50 -04:00
|
|
|
|
2020-07-30 06:25:10 -04:00
|
|
|
test-ubuntu-libc-malloc:
|
2020-05-03 02:31:50 -04:00
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-12 06:55:26 -04:00
|
|
|
timeout-minutes: 14400
|
2020-05-03 02:31:50 -04:00
|
|
|
steps:
|
2020-07-20 02:22:24 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-03 02:31:50 -04:00
|
|
|
- name: make
|
|
|
|
run: make MALLOC=libc
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
sudo apt-get install tcl8.5
|
|
|
|
./runtest --accurate --verbose
|
|
|
|
- name: module api test
|
|
|
|
run: ./runtest-moduleapi --verbose
|
2020-07-12 06:55:26 -04:00
|
|
|
- name: sentinel tests
|
|
|
|
run: ./runtest-sentinel
|
|
|
|
- name: cluster tests
|
|
|
|
run: ./runtest-cluster
|
2020-05-03 02:31:50 -04:00
|
|
|
|
2020-07-30 06:25:10 -04:00
|
|
|
test-ubuntu-32bit:
|
2020-05-24 01:00:12 -04:00
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-12 06:55:26 -04:00
|
|
|
timeout-minutes: 14400
|
2020-05-24 01:00:12 -04:00
|
|
|
steps:
|
2020-07-20 02:22:24 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-24 01:00:12 -04:00
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
sudo apt-get update && sudo apt-get install libc6-dev-i386
|
|
|
|
make 32bit
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
sudo apt-get install tcl8.5
|
|
|
|
./runtest --accurate --verbose
|
|
|
|
- name: module api test
|
2020-05-27 11:09:09 -04:00
|
|
|
run: |
|
|
|
|
make -C tests/modules 32bit # the script below doesn't have an argument, we must build manually ahead of time
|
|
|
|
./runtest-moduleapi --verbose
|
2020-07-12 06:55:26 -04:00
|
|
|
- name: sentinel tests
|
|
|
|
run: ./runtest-sentinel
|
|
|
|
- name: cluster tests
|
|
|
|
run: ./runtest-cluster
|
2020-05-24 01:00:12 -04:00
|
|
|
|
2020-07-30 06:25:10 -04:00
|
|
|
test-ubuntu-tls:
|
2020-05-25 10:25:23 -04:00
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-12 06:55:26 -04:00
|
|
|
timeout-minutes: 14400
|
2020-05-25 10:25:23 -04:00
|
|
|
steps:
|
2020-07-20 02:22:24 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-25 10:25:23 -04:00
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make BUILD_TLS=yes
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
sudo apt-get install tcl8.5 tcl-tls
|
|
|
|
./utils/gen-test-certs.sh
|
|
|
|
./runtest --accurate --verbose --tls
|
2020-08-17 10:36:50 -04:00
|
|
|
./runtest --accurate --verbose
|
2020-05-25 10:25:23 -04:00
|
|
|
- name: module api test
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-moduleapi --verbose --tls
|
|
|
|
./runtest-moduleapi --verbose
|
2020-07-12 06:55:26 -04:00
|
|
|
- name: sentinel tests
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-sentinel --tls
|
|
|
|
./runtest-sentinel
|
2020-07-12 06:55:26 -04:00
|
|
|
- name: cluster tests
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-cluster --tls
|
|
|
|
./runtest-cluster
|
2020-05-25 10:25:23 -04:00
|
|
|
|
2021-01-17 08:48:48 -05:00
|
|
|
test-ubuntu-io-threads:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: github.repository == 'redis/redis'
|
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
sudo apt-get install tcl8.5 tcl-tls
|
|
|
|
./runtest --config io-threads 4 --config io-threads-do-reads yes --accurate --verbose --tags network
|
|
|
|
- name: cluster tests
|
|
|
|
run: |
|
|
|
|
./runtest-cluster --config io-threads 4 --config io-threads-do-reads yes
|
|
|
|
|
2020-05-03 02:31:50 -04:00
|
|
|
test-valgrind:
|
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-05-03 02:31:50 -04:00
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
2020-07-20 02:22:24 -04:00
|
|
|
- uses: actions/checkout@v2
|
2020-05-03 02:31:50 -04:00
|
|
|
- name: make
|
|
|
|
run: make valgrind
|
|
|
|
- name: test
|
|
|
|
run: |
|
2020-09-13 06:51:21 -04:00
|
|
|
sudo apt-get update
|
2020-05-03 02:31:50 -04:00
|
|
|
sudo apt-get install tcl8.5 valgrind -y
|
|
|
|
./runtest --valgrind --verbose --clients 1
|
|
|
|
- name: module api test
|
|
|
|
run: ./runtest-moduleapi --valgrind --verbose --clients 1
|
2020-07-30 06:25:10 -04:00
|
|
|
|
|
|
|
test-centos7-jemalloc:
|
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-30 06:25:10 -04:00
|
|
|
container: centos:7
|
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: make
|
|
|
|
run: |
|
Implement redisAtomic to replace _Atomic C11 builtin (#7707)
Redis 6.0 introduces I/O threads, it is so cool and efficient, we use C11
_Atomic to establish inter-thread synchronization without mutex. But the
compiler that must supports C11 _Atomic can compile redis code, that brings a
lot of inconvenience since some common platforms can't support by default such
as CentOS7, so we want to implement redis atomic type to make it more portable.
We have implemented our atomic variable for redis that only has 'relaxed'
operations in src/atomicvar.h, so we implement some operations with
'sequentially-consistent', just like the default behavior of C11 _Atomic that
can establish inter-thread synchronization. And we replace all uses of C11
_Atomic with redis atomic variable.
Our implementation of redis atomic variable uses C11 _Atomic, __atomic or
__sync macros if available, it supports most common platforms, and we will
detect automatically which feature we use. In Makefile we use a dummy file to
detect if the compiler supports C11 _Atomic. Now for gcc, we can compile redis
code theoretically if your gcc version is not less than 4.1.2(starts to support
__sync_xxx operations). Otherwise, we remove use mutex fallback to implement
redis atomic variable for performance and test. You will get compiling errors
if your compiler doesn't support all features of above.
For cover redis atomic variable tests, we add other CI jobs that build redis on
CentOS6 and CentOS7 and workflow daily jobs that run the tests on them.
For them, we just install gcc by default in order to cover different compiler
versions, gcc is 4.4.7 by default installation on CentOS6 and 4.8.5 on CentOS7.
We restore the feature that we can test redis with Helgrind to find data race
errors. But you need install Valgrind in the default path configuration firstly
before running your tests, since we use macros in helgrind.h to tell Helgrind
inter-thread happens-before relationship explicitly for avoiding false positives.
Please open an issue on github if you find data race errors relate to this commit.
Unrelated:
- Fix redefinition of typedef 'RedisModuleUserChangedFunc'
For some old version compilers, they will report errors or warnings, if we
re-define function type.
2020-09-17 09:01:45 -04:00
|
|
|
yum -y install gcc make
|
|
|
|
make
|
2020-07-30 06:25:10 -04:00
|
|
|
- name: test
|
|
|
|
run: |
|
Implement redisAtomic to replace _Atomic C11 builtin (#7707)
Redis 6.0 introduces I/O threads, it is so cool and efficient, we use C11
_Atomic to establish inter-thread synchronization without mutex. But the
compiler that must supports C11 _Atomic can compile redis code, that brings a
lot of inconvenience since some common platforms can't support by default such
as CentOS7, so we want to implement redis atomic type to make it more portable.
We have implemented our atomic variable for redis that only has 'relaxed'
operations in src/atomicvar.h, so we implement some operations with
'sequentially-consistent', just like the default behavior of C11 _Atomic that
can establish inter-thread synchronization. And we replace all uses of C11
_Atomic with redis atomic variable.
Our implementation of redis atomic variable uses C11 _Atomic, __atomic or
__sync macros if available, it supports most common platforms, and we will
detect automatically which feature we use. In Makefile we use a dummy file to
detect if the compiler supports C11 _Atomic. Now for gcc, we can compile redis
code theoretically if your gcc version is not less than 4.1.2(starts to support
__sync_xxx operations). Otherwise, we remove use mutex fallback to implement
redis atomic variable for performance and test. You will get compiling errors
if your compiler doesn't support all features of above.
For cover redis atomic variable tests, we add other CI jobs that build redis on
CentOS6 and CentOS7 and workflow daily jobs that run the tests on them.
For them, we just install gcc by default in order to cover different compiler
versions, gcc is 4.4.7 by default installation on CentOS6 and 4.8.5 on CentOS7.
We restore the feature that we can test redis with Helgrind to find data race
errors. But you need install Valgrind in the default path configuration firstly
before running your tests, since we use macros in helgrind.h to tell Helgrind
inter-thread happens-before relationship explicitly for avoiding false positives.
Please open an issue on github if you find data race errors relate to this commit.
Unrelated:
- Fix redefinition of typedef 'RedisModuleUserChangedFunc'
For some old version compilers, they will report errors or warnings, if we
re-define function type.
2020-09-17 09:01:45 -04:00
|
|
|
yum -y install which tcl
|
|
|
|
./runtest --accurate --verbose
|
|
|
|
- name: module api test
|
|
|
|
run: ./runtest-moduleapi --verbose
|
|
|
|
- name: sentinel tests
|
|
|
|
run: ./runtest-sentinel
|
|
|
|
- name: cluster tests
|
|
|
|
run: ./runtest-cluster
|
|
|
|
|
2020-07-30 06:25:10 -04:00
|
|
|
test-centos7-tls:
|
|
|
|
runs-on: ubuntu-latest
|
2020-08-11 03:59:47 -04:00
|
|
|
if: github.repository == 'redis/redis'
|
2020-07-30 06:25:10 -04:00
|
|
|
container: centos:7
|
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
yum -y install centos-release-scl epel-release
|
|
|
|
yum -y install devtoolset-7 openssl-devel openssl
|
2020-07-31 06:55:57 -04:00
|
|
|
scl enable devtoolset-7 "make BUILD_TLS=yes"
|
2020-07-30 06:25:10 -04:00
|
|
|
- name: test
|
|
|
|
run: |
|
|
|
|
yum -y install tcl tcltls
|
|
|
|
./utils/gen-test-certs.sh
|
|
|
|
./runtest --accurate --verbose --tls
|
2020-08-17 10:36:50 -04:00
|
|
|
./runtest --accurate --verbose
|
2020-07-30 06:25:10 -04:00
|
|
|
- name: module api test
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-moduleapi --verbose --tls
|
|
|
|
./runtest-moduleapi --verbose
|
2020-07-30 06:25:10 -04:00
|
|
|
- name: sentinel tests
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-sentinel --tls
|
|
|
|
./runtest-sentinel
|
2020-07-30 06:25:10 -04:00
|
|
|
- name: cluster tests
|
2020-08-17 10:36:50 -04:00
|
|
|
run: |
|
|
|
|
./runtest-cluster --tls
|
|
|
|
./runtest-cluster
|
2020-07-30 06:25:10 -04:00
|
|
|
|
2020-09-08 03:59:25 -04:00
|
|
|
test-macos-latest:
|
|
|
|
runs-on: macos-latest
|
|
|
|
if: github.repository == 'redis/redis'
|
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: make
|
|
|
|
run: make
|
|
|
|
- name: test
|
|
|
|
run: |
|
2020-10-22 04:10:53 -04:00
|
|
|
./runtest --accurate --verbose --no-latency
|
2020-09-08 03:59:25 -04:00
|
|
|
- name: module api test
|
|
|
|
run: ./runtest-moduleapi --verbose
|
|
|
|
- name: sentinel tests
|
|
|
|
run: ./runtest-sentinel
|
|
|
|
- name: cluster tests
|
|
|
|
run: ./runtest-cluster
|
|
|
|
|
2021-01-20 07:07:09 -05:00
|
|
|
test-freebsd:
|
|
|
|
runs-on: macos-latest
|
|
|
|
if: github.repository == 'redis/redis'
|
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: test
|
2021-02-03 10:35:28 -05:00
|
|
|
uses: vmactions/freebsd-vm@v0.1.2
|
2021-01-20 07:07:09 -05:00
|
|
|
with:
|
|
|
|
usesh: true
|
2021-02-03 10:35:28 -05:00
|
|
|
sync: rsync
|
|
|
|
prepare: pkg install -y bash gmake lang/tcl86
|
|
|
|
run: >
|
|
|
|
gmake &&
|
|
|
|
./runtest --accurate --verbose --no-latency &&
|
|
|
|
MAKE=gmake ./runtest-moduleapi --verbose &&
|
|
|
|
./runtest-sentinel &&
|
2021-01-20 07:07:09 -05:00
|
|
|
./runtest-cluster
|