2021-06-09 08:13:24 -04:00
|
|
|
name: External Server Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 0 * * *'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-external-standalone:
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-29 12:02:35 -05:00
|
|
|
if: github.event_name != 'schedule' || github.repository == 'redis/redis'
|
2021-06-09 08:13:24 -04:00
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
2022-03-30 09:18:03 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-09 08:13:24 -04:00
|
|
|
- name: Build
|
|
|
|
run: make REDIS_CFLAGS=-Werror
|
|
|
|
- name: Start redis-server
|
2021-12-19 10:41:51 -05:00
|
|
|
run: |
|
|
|
|
./src/redis-server --daemonize yes --save "" --logfile external-redis.log \
|
|
|
|
--enable-protected-configs yes --enable-debug-command yes --enable-module-command yes
|
2021-06-09 08:13:24 -04:00
|
|
|
- name: Run external test
|
|
|
|
run: |
|
|
|
|
./runtest \
|
|
|
|
--host 127.0.0.1 --port 6379 \
|
|
|
|
--tags -slow
|
2021-11-11 06:04:02 -05:00
|
|
|
- name: Archive redis log
|
|
|
|
if: ${{ failure() }}
|
2022-04-12 06:23:41 -04:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-11-11 06:04:02 -05:00
|
|
|
with:
|
|
|
|
name: test-external-redis-log
|
|
|
|
path: external-redis.log
|
2021-06-09 08:13:24 -04:00
|
|
|
|
|
|
|
test-external-cluster:
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-29 12:02:35 -05:00
|
|
|
if: github.event_name != 'schedule' || github.repository == 'redis/redis'
|
2021-06-09 08:13:24 -04:00
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
2022-03-30 09:18:03 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-06-09 08:13:24 -04:00
|
|
|
- name: Build
|
|
|
|
run: make REDIS_CFLAGS=-Werror
|
|
|
|
- name: Start redis-server
|
2021-12-19 10:41:51 -05:00
|
|
|
run: |
|
|
|
|
./src/redis-server --cluster-enabled yes --daemonize yes --save "" --logfile external-redis.log \
|
|
|
|
--enable-protected-configs yes --enable-debug-command yes --enable-module-command yes
|
2021-06-09 08:13:24 -04:00
|
|
|
- name: Create a single node cluster
|
|
|
|
run: ./src/redis-cli cluster addslots $(for slot in {0..16383}; do echo $slot; done); sleep 5
|
|
|
|
- name: Run external test
|
|
|
|
run: |
|
|
|
|
./runtest \
|
|
|
|
--host 127.0.0.1 --port 6379 \
|
|
|
|
--cluster-mode \
|
|
|
|
--tags -slow
|
2021-11-11 06:04:02 -05:00
|
|
|
- name: Archive redis log
|
|
|
|
if: ${{ failure() }}
|
2022-04-12 06:23:41 -04:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-11-11 06:04:02 -05:00
|
|
|
with:
|
|
|
|
name: test-external-cluster-log
|
|
|
|
path: external-redis.log
|
2021-12-19 10:41:51 -05:00
|
|
|
|
|
|
|
test-external-nodebug:
|
|
|
|
runs-on: ubuntu-latest
|
2022-01-29 12:02:35 -05:00
|
|
|
if: github.event_name != 'schedule' || github.repository == 'redis/redis'
|
2021-12-19 10:41:51 -05:00
|
|
|
timeout-minutes: 14400
|
|
|
|
steps:
|
2022-03-30 09:18:03 -04:00
|
|
|
- uses: actions/checkout@v3
|
2021-12-19 10:41:51 -05:00
|
|
|
- name: Build
|
|
|
|
run: make REDIS_CFLAGS=-Werror
|
|
|
|
- name: Start redis-server
|
|
|
|
run: |
|
|
|
|
./src/redis-server --daemonize yes --save "" --logfile external-redis.log
|
|
|
|
- name: Run external test
|
|
|
|
run: |
|
|
|
|
./runtest \
|
|
|
|
--host 127.0.0.1 --port 6379 \
|
|
|
|
--tags "-slow -needs:debug"
|
|
|
|
- name: Archive redis log
|
|
|
|
if: ${{ failure() }}
|
2022-04-12 06:23:41 -04:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-12-19 10:41:51 -05:00
|
|
|
with:
|
|
|
|
name: test-external-redis-log
|
|
|
|
path: external-redis.log
|