module: release 1.5.2 #3956
Workflow file for this run
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: Run tests | |
on: | |
push: | |
pull_request: | |
jobs: | |
run-tests-ce: | |
if: | | |
github.event_name == 'push' || | |
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository | |
strategy: | |
matrix: | |
# We test old metrics with Tarantool 2.10 because since Tarantool 2.11.1 | |
# it uses its own metrics package. | |
# We test old metrics with Cartridge 2.7.9 because since 2.8.0 it | |
# requires metrics 1.0.0. | |
tarantool-version: ["2.8", "2.10", "2.11"] | |
metrics-version: [""] | |
cartridge-version: ["2.8.0"] | |
external-tuple-merger-version: [""] | |
external-tuple-keydef-version: [""] | |
include: | |
- tarantool-version: "2.7" | |
cartridge-version: "2.8.0" | |
- tarantool-version: "2.10" | |
metrics-version: "0.10.0" | |
cartridge-version: "2.7.9" | |
- tarantool-version: "2.11" | |
metrics-version: "1.0.0" | |
cartridge-version: "2.8.0" | |
- tarantool-version: "2.11" | |
metrics-version: "1.0.0" | |
vshard-version: "0.1.25" | |
- tarantool-version: "2.11" | |
external-merger-version: "0.0.5" | |
external-keydef-version: "0.0.4" | |
- tarantool-version: "3.0" | |
vshard-version: "0.1.25" | |
- tarantool-version: "master" | |
vshard-version: "0.1.26" | |
fail-fast: false | |
# Can't install older versions on 22.04, | |
# see https://github.com/tarantool/setup-tarantool/issues/36 | |
runs-on: [self-hosted, Linux, x86_64, regular] | |
container: | |
image: ubuntu:20.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Prepare env | |
uses: ./.github/actions/prepare-env | |
with: | |
tarantool-version: '${{ matrix.tarantool-version }}' | |
- name: Install requirements for community | |
run: | | |
tarantool --version | |
./deps.sh | |
env: | |
CARTRIDGE_VERSION: ${{ matrix.cartridge-version }} | |
VSHARD_VERSION: ${{ matrix.vshard-version }} | |
- name: Install metrics | |
if: matrix.metrics-version != '' | |
run: tt rocks install metrics ${{ matrix.metrics-version }} | |
- name: Install external tuple-merger | |
if: matrix.external-tuple-merger-version != '' | |
run: tt rocks install tuple-merger ${{ matrix.external-tuple-merger-version }} | |
- name: Install external tuple-keydef | |
if: matrix.external-tuple-keydef-version != '' | |
run: tt rocks install tuple-keydef ${{ matrix.external-tuple-keydef-version }} | |
# This server starts and listen on 8084 port that is used for tests | |
- name: Stop Mono server | |
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true | |
- run: cmake -S . -B build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run tests | |
if: matrix.coveralls != true # See https://github.com/actions/runner/issues/1173 | |
run: make -C build luatest-no-coverage | |
run-tests-ee: | |
if: github.event_name == 'push' | |
strategy: | |
matrix: | |
tarantool-version: | |
- folder: "2.11" | |
bundle: "tarantool-enterprise-sdk-nogc64-2.11.2-0-r609.linux.x86_64" | |
metrics-version: ["", "1.0.0"] | |
cartridge-version: ["2.8.0"] | |
include: | |
- tarantool-version: | |
folder: "3.0" | |
bundle: "tarantool-enterprise-sdk-gc64-3.0.0-0-gf58f7d82a-r23.linux.x86_64" | |
vshard-version: "0.1.25" | |
fail-fast: false | |
runs-on: [self-hosted, Linux, x86_64, regular] | |
container: | |
image: ubuntu:22.04 | |
steps: | |
- uses: actions/checkout@master | |
- name: Set tzdata | |
run: | | |
ln -fs /usr/share/zoneinfo/Europe/Moscow /etc/localtime | |
echo "DEBIAN_FRONTEND=noninteractive" >> $GITHUB_ENV | |
echo "TZ=Europe/Moscow" >> $GITHUB_ENV | |
shell: bash | |
- name: Install basic tools | |
run: | | |
apt-get -y update | |
apt-get --allow-releaseinfo-change update | |
apt-get -y install sudo git curl gcc make cmake unzip sudo \ | |
zip gawk cpio pkg-config build-essential ninja-build tzdata \ | |
liblz4-dev autoconf automake libtool lsb-release rsync libunwind-dev \ | |
shell: bash | |
- name: Install requirements | |
run: | | |
ARCHIVE_NAME=tarantool-enterprise-${{ matrix.tarantool.bundle }}.tar.gz | |
curl -O -L https://${{ secrets.SDK_DOWNLOAD_TOKEN }}@download.tarantool.io/enterprise/release/linux/x86_64/${{ matrix.tarantool-version.folder }}/${{ matrix.tarantool-version.bundle }}.tar.gz | |
tar -xzf ${{ matrix.tarantool-version.bundle }}.tar.gz | |
rm -f ${{ matrix.tarantool-version.bundle }}.tar.gz | |
sudo cp tarantool-enterprise/tarantool /usr/bin/tarantool | |
source tarantool-enterprise/env.sh | |
tarantool --version | |
./deps.sh | |
shell: bash | |
env: | |
CARTRIDGE_VERSION: ${{ matrix.cartridge-version }} | |
VSHARD_VERSION: ${{ matrix.vshard-version }} | |
- name: Install metrics | |
if: matrix.metrics-version != '' | |
run: | | |
source tarantool-enterprise/env.sh | |
tt init | |
tt rocks install metrics ${{ matrix.metrics-version }} | |
shell: bash | |
# This server starts and listen on 8084 port that is used for tests | |
- name: Stop Mono server | |
run: sudo kill -9 $(sudo lsof -t -i tcp:8084) || true | |
- run: cmake -S . -B build | |
- name: Run tests | |
run: make -C build luatest-no-coverage |