External Server Tests #29
This file contains hidden or 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: External Server Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/00-RELEASENOTES' | |
| - '**/COPYING' | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| - '**/00-RELEASENOTES' | |
| - '**/COPYING' | |
| schedule: | |
| - cron: '0 2 * * *' | |
| concurrency: | |
| group: external-${{ github.head_ref || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-external-standalone: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' | |
| timeout-minutes: 1440 | |
| steps: | |
| - name: Install libbacktrace | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: ianlancetaylor/libbacktrace | |
| ref: b9e40069c0b47a722286b94eb5231f7f05c08713 | |
| path: libbacktrace | |
| - run: cd libbacktrace && ./configure && make && sudo make install | |
| - name: Checkout Valkey | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Build | |
| run: make SERVER_CFLAGS=-Werror USE_LIBBACKTRACE=yes | |
| - name: Start valkey-server | |
| run: | | |
| ./src/valkey-server --daemonize yes --save "" --logfile external-server.log \ | |
| --enable-protected-configs yes --enable-debug-command yes --enable-module-command yes | |
| - name: Run external test | |
| run: | | |
| ./runtest \ | |
| --host 127.0.0.1 --port 6379 \ | |
| --verbose \ | |
| --tags -slow | |
| - name: Archive server log | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: test-external-standalone-log | |
| path: external-server.log | |
| test-external-cluster: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' | |
| timeout-minutes: 1440 | |
| steps: | |
| - name: Install libbacktrace | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: ianlancetaylor/libbacktrace | |
| ref: b9e40069c0b47a722286b94eb5231f7f05c08713 | |
| path: libbacktrace | |
| - run: cd libbacktrace && ./configure && make && sudo make install | |
| - name: Checkout Valkey | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Build | |
| run: make SERVER_CFLAGS=-Werror USE_LIBBACKTRACE=yes | |
| - name: Start valkey-server | |
| run: | | |
| ./src/valkey-server --cluster-enabled yes --cluster-databases 16 --daemonize yes \ | |
| --save "" --logfile external-server.log \ | |
| --enable-protected-configs yes --enable-debug-command yes --enable-module-command yes | |
| - name: Create a single node cluster | |
| run: ./src/valkey-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 \ | |
| --verbose \ | |
| --cluster-mode \ | |
| --tags -slow | |
| - name: Archive server log | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: test-external-cluster-log | |
| path: external-server.log | |
| test-external-nodebug: | |
| runs-on: ubuntu-latest | |
| if: github.event_name != 'schedule' || github.repository == 'valkey-io/valkey' | |
| timeout-minutes: 1440 | |
| steps: | |
| - name: Install libbacktrace | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| repository: ianlancetaylor/libbacktrace | |
| ref: b9e40069c0b47a722286b94eb5231f7f05c08713 | |
| path: libbacktrace | |
| - run: cd libbacktrace && ./configure && make && sudo make install | |
| - name: Checkout Valkey | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Build | |
| run: make SERVER_CFLAGS=-Werror USE_LIBBACKTRACE=yes | |
| - name: Start valkey-server | |
| run: | | |
| ./src/valkey-server --daemonize yes --save "" --logfile external-server.log | |
| - name: Run external test | |
| run: | | |
| ./runtest \ | |
| --host 127.0.0.1 --port 6379 \ | |
| --verbose \ | |
| --tags "-slow -needs:debug" | |
| - name: Archive server log | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0 | |
| with: | |
| name: test-external-nodebug-log | |
| path: external-server.log |