Skip to content

Drain LibMR threads to a safe point before fork() (MOD-15307) #400

Drain LibMR threads to a safe point before fork() (MOD-15307)

Drain LibMR threads to a safe point before fork() (MOD-15307) #400

Workflow file for this run

name: Test ubuntu latest
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
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
run: make run_tests_ssl
env:
PYTHON: python
- name: Valgrind tests
run: make run_tests_valgrind
env:
PYTHON: python