diff options
author | Oran Agra <oran@redislabs.com> | 2022-02-13 17:43:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 17:43:19 +0200 |
commit | 1193e96d0275470e11ae6b6b6d9ffedecf99958b (patch) | |
tree | cdd363d759a7d112e1ba7e1772559a1a3b7f055b /.github | |
parent | 62c8be28ee7d15f90103f52bcf4a4c91f9ba7396 (diff) | |
download | redis-1193e96d0275470e11ae6b6b6d9ffedecf99958b.tar.gz |
Add workflow_dispatch filters for daily CI. (#10289)
sometimes you just wanna run one test on one system (e.g. memefficiency
on macos), so you want all other tests to be skipped
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/daily.yml | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 41be3d357..da266fdce 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -11,10 +11,10 @@ on: inputs: skipjobs: description: 'jobs to skip (delete the ones you wanna keep, do not leave empty)' - default: 'valgrind,sanitizer,tls,freebsd,macos,alpine,32bit' + default: 'valgrind,sanitizer,tls,freebsd,macos,alpine,32bit,ubuntu,centos,malloc' skiptests: description: 'tests to skip (delete the ones you wanna keep, do not leave empty)' - default: 'redis,modules,sentinel,cluster' + default: 'redis,modules,sentinel,cluster,unittest' test_args: description: 'extra test arguments' default: '' @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'schedule' && github.repository == 'redis/redis') + (github.event_name == 'schedule' && github.repository == 'redis/redis') && !contains(github.event.inputs.skipjobs, 'ubuntu') timeout-minutes: 14400 steps: - name: prep @@ -65,13 +65,14 @@ jobs: 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-ubuntu-libc-malloc: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'schedule' && github.repository == 'redis/redis') + (github.event_name == 'schedule' && github.repository == 'redis/redis') && !contains(github.event.inputs.skipjobs, 'malloc') timeout-minutes: 14400 steps: - name: prep @@ -104,7 +105,7 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'schedule' && github.repository == 'redis/redis') + (github.event_name == 'schedule' && github.repository == 'redis/redis') && !contains(github.event.inputs.skipjobs, 'malloc') timeout-minutes: 14400 steps: - name: prep @@ -170,6 +171,7 @@ jobs: 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-ubuntu-tls: @@ -273,6 +275,7 @@ jobs: if: true && !contains(github.event.inputs.skiptests, 'modules') run: ./runtest-moduleapi --valgrind --no-latency --verbose --clients 1 --timeout 2400 --dump-logs ${{github.event.inputs.test_args}} - name: unittest + if: true && !contains(github.event.inputs.skiptests, 'unittest') run: | valgrind --track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.txt ./src/redis-server test all if grep -q 0x err.txt; then cat err.txt; exit 1; fi @@ -346,6 +349,7 @@ jobs: 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 test-sanitizer-undefined: @@ -388,13 +392,14 @@ jobs: 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-centos7-jemalloc: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'schedule' && github.repository == 'redis/redis') + (github.event_name == 'schedule' && github.repository == 'redis/redis') && !contains(github.event.inputs.skipjobs, 'centos') container: centos:7 timeout-minutes: 14400 steps: |