MOD-15862 , MOD-15914 Fix Linux SSL CI hang + testUnevenWork timeout #396
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: Test ubuntu latest | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| redis_version: ["7.2", "7.4", "unstable"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Install system toolchain (LLVM/Clang, OpenSSL, build tools) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y llvm clang libclang-dev pkg-config libssl-dev build-essential automake libtool | |
| - name: Export build environment | |
| run: | | |
| echo "LIBCLANG_PATH=$(llvm-config --libdir)" >> $GITHUB_ENV | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: format | |
| run: cargo fmt -- --check | |
| - name: clippy | |
| run: | | |
| MODULE_NAME=MRTESTSCLIPPY cargo clippy --all-targets --all-features | |
| make clean | |
| - name: Python test deps | |
| run: | | |
| python3 -m pip install -U pip "setuptools<81" | |
| python3 -m pip install git+https://github.com/RedisLabsModules/RLTest@60e3290 gevent "redis>=5" | |
| - name: install redis | |
| run: | | |
| git clone https://github.com/redis/redis | |
| cd redis | |
| git checkout ${{ matrix.redis_version }} | |
| BUILD_TLS=yes make valgrind install | |
| - name: install valgrind | |
| run: | | |
| sudo apt-get update --fix-missing | |
| sudo apt-get install valgrind | |
| - name: Build the dependencies | |
| run: make build_deps | |
| - name: Default tests | |
| run: make run_tests | |
| env: | |
| PYTHON: python | |
| - name: SSL tests | |
| timeout-minutes: 25 | |
| run: make run_tests_ssl | |
| env: | |
| PYTHON: python | |
| PYTHONUNBUFFERED: "1" | |
| RLTEST_EXTRA_ARGS: "--test-timeout 300" | |
| - name: Valgrind tests | |
| run: make run_tests_valgrind | |
| env: | |
| PYTHON: python | |
| - name: Upload test logs on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-logs-${{ matrix.redis_version }} | |
| path: tests/mr_test_module/logs/ | |
| if-no-files-found: ignore | |
| retention-days: 7 |