Daily Arm64 #682
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: Daily Arm64 | |
on: | |
pull_request: | |
branches: | |
# any PR to a release branch. | |
- '[0-9].[0-9]' | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
inputs: | |
skiptests: | |
description: 'tests to skip (delete the ones you wanna keep, do not leave empty)' | |
default: 'redis,modules,sentinel,cluster,unittest' | |
test_args: | |
description: 'extra test arguments' | |
default: '' | |
cluster_test_args: | |
description: 'extra cluster / sentinel test arguments' | |
default: '' | |
use_repo: | |
description: 'repo owner and name' | |
default: 'redis/redis' | |
use_git_ref: | |
description: 'git branch or sha to use' | |
default: 'unstable' | |
env: | |
GITHUB_REPOSITORY: redis/redis | |
GITHUB_HEAD_REF: unstable | |
jobs: | |
test-jemalloc: | |
runs-on: [Linux, ARM64] | |
if: (github.event_name == 'workflow_dispatch' || (github.event_name != 'workflow_dispatch' && github.repository == 'redis/redis-extra-ci')) | |
timeout-minutes: 14400 | |
steps: | |
- name: prep | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV | |
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV | |
echo "skipping: ${{github.event.inputs.skipjobs}} and ${{github.event.inputs.skiptests}}" | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ env.GITHUB_REPOSITORY }} | |
ref: ${{ env.GITHUB_HEAD_REF }} | |
- name: prepare environment | |
run: sudo apt-get install -y build-essential | |
- name: make | |
run: make REDIS_CFLAGS='-Werror -DREDIS_TEST' | |
- name: testprep | |
run: sudo apt-get install -y tcl tclx | |
- name: test | |
if: true && !contains(github.event.inputs.skiptests, 'redis') | |
run: ./runtest --accurate --verbose --dump-logs ${{github.event.inputs.test_args}} | |
- name: module api test | |
if: true && !contains(github.event.inputs.skiptests, 'modules') | |
run: ./runtest-moduleapi --verbose --dump-logs ${{github.event.inputs.test_args}} | |
- name: sentinel tests | |
if: true && !contains(github.event.inputs.skiptests, 'sentinel') | |
run: ./runtest-sentinel ${{github.event.inputs.cluster_test_args}} | |
- name: cluster tests | |
if: true && !contains(github.event.inputs.skiptests, 'cluster') | |
run: ./runtest-cluster ${{github.event.inputs.cluster_test_args}} | |
- name: unittest | |
if: true && !contains(github.event.inputs.skiptests, 'unittest') | |
run: ./src/redis-server test all --accurate | |
test-libc-malloc: | |
runs-on: [Linux, ARM64] | |
if: (github.event_name == 'workflow_dispatch' || (github.event_name != 'workflow_dispatch' && github.repository == 'redis/redis-extra-ci')) | |
timeout-minutes: 14400 | |
steps: | |
- name: prep | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV | |
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV | |
echo "skipping: ${{github.event.inputs.skipjobs}} and ${{github.event.inputs.skiptests}}" | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ env.GITHUB_REPOSITORY }} | |
ref: ${{ env.GITHUB_HEAD_REF }} | |
- name: prepare environment | |
run: sudo apt-get install -y build-essential | |
- name: make | |
run: make MALLOC=libc REDIS_CFLAGS='-Werror' | |
- name: testprep | |
run: sudo apt-get install -y tcl tclx | |
- name: test | |
if: true && !contains(github.event.inputs.skiptests, 'redis') | |
run: ./runtest --accurate --verbose --dump-logs ${{github.event.inputs.test_args}} | |
- name: module api test | |
if: true && !contains(github.event.inputs.skiptests, 'modules') | |
run: ./runtest-moduleapi --verbose --dump-logs ${{github.event.inputs.test_args}} | |
- name: sentinel tests | |
if: true && !contains(github.event.inputs.skiptests, 'sentinel') | |
run: ./runtest-sentinel ${{github.event.inputs.sentinel_test_args}} | |
- name: cluster tests | |
if: true && !contains(github.event.inputs.skiptests, 'cluster') | |
run: ./runtest-cluster ${{github.event.inputs.cluster_test_args}} | |
test-tls: | |
runs-on: [Linux, ARM64] | |
if: (github.event_name == 'workflow_dispatch' || (github.event_name != 'workflow_dispatch' && github.repository == 'redis/redis-extra-ci')) | |
timeout-minutes: 14400 | |
steps: | |
- name: prep | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "GITHUB_REPOSITORY=${{github.event.inputs.use_repo}}" >> $GITHUB_ENV | |
echo "GITHUB_HEAD_REF=${{github.event.inputs.use_git_ref}}" >> $GITHUB_ENV | |
echo "skipping: ${{github.event.inputs.skipjobs}} and ${{github.event.inputs.skiptests}}" | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ env.GITHUB_REPOSITORY }} | |
ref: ${{ env.GITHUB_HEAD_REF }} | |
- name: prepare environment | |
run: sudo apt-get install -y build-essential libssl-dev | |
- name: make | |
run: | | |
make BUILD_TLS=yes REDIS_CFLAGS='-Werror' | |
- name: testprep | |
run: | | |
sudo apt-get install -y tcl8.6 tclx tcl-tls | |
./utils/gen-test-certs.sh | |
- name: test | |
if: true && !contains(github.event.inputs.skiptests, 'redis') | |
run: | | |
./runtest --accurate --verbose --tls --dump-logs ${{github.event.inputs.test_args}} | |
- name: module api test | |
if: true && !contains(github.event.inputs.skiptests, 'modules') | |
run: | | |
./runtest-moduleapi --verbose --tls --dump-logs ${{github.event.inputs.test_args}} | |
- name: sentinel tests | |
if: true && !contains(github.event.inputs.skiptests, 'sentinel') | |
run: | | |
./runtest-sentinel --tls ${{github.event.inputs.sentinel_test_args}} | |
- name: cluster tests | |
if: true && !contains(github.event.inputs.skiptests, 'cluster') | |
run: | | |
./runtest-cluster --tls ${{github.event.inputs.cluster_test_args}} |