Skip to content

scylla_repository: patch systemctl calls out of install.sh #839

scylla_repository: patch systemctl calls out of install.sh

scylla_repository: patch systemctl calls out of install.sh #839

name: CCM Integration tests
on:
push:
branches:
- master
- next*
pull_request:
branches:
- next*
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements-test.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: '8'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y rpm2cpio
pip install -U pip setuptools
python setup.py install
if [ -f requirements-test.txt ]; then pip install -r requirements-test.txt; fi
- name: Cache binary versions
id: cache-versions
uses: actions/cache@v2
with:
path: |
~/.ccm/repository
~/.ccm/scylla-repository
key: ${{ runner.os }}-binaries
- name: Download versions
if: steps.cache-versions.outputs.cache-hit != 'true'
run: |
if [ ! -f ~/.ccm/scylla-repository/unstable/master/2021-11-18T04_00_29Z ]; then
RELOC_VERSION="2021-11-18T04:00:29Z"
AWS_BASE=s3://downloads.scylladb.com/unstable/scylla/master/relocatable/${RELOC_VERSION}
aws s3 --only-show-errors --no-sign-request cp ${AWS_BASE}/scylla-x86_64-package.tar.gz .
aws s3 --only-show-errors --no-sign-request cp ${AWS_BASE}/scylla-tools-package.tar.gz .
aws s3 --only-show-errors --no-sign-request cp ${AWS_BASE}/scylla-jmx-package.tar.gz .
./ccm create temp -n 1 --scylla --version unstable/master:${RELOC_VERSION} \
--scylla-core-package-uri=./scylla-x86_64-package.tar.gz \
--scylla-tools-java-package-uri=./scylla-tools-package.tar.gz \
--scylla-jmx-package-uri=./scylla-jmx-package.tar.gz
./ccm remove
fi
./ccm create temp-cas -n 1 --version 3.11.4 > /dev/null
./ccm remove
docker pull scylladb/scylla-nightly:666.development-0.20201015.8068272b466
- name: Test with pytest
run: |
python -m pytest ./tests -x
- name: Copy logs/results
if: contains(github.event.pull_request.labels.*.name, 'PR-upload-log')
uses: actions/upload-artifact@v2
with:
name: ccm-tests-log
path: tests/test_results/