Helper script to run integration test from multiple java-drivers against scylla
The reusable workflow .github/workflows/driver-integration-matrix.yml is also
used by this repository's PR CI. By default it runs Apache Cassandra Java driver
against Scylla LATEST, plus Scylla Java driver against LATEST, PRIOR,
LTS-LATEST, and LTS-PRIOR. Set run_apache or run_scylla to false to
disable that driver group. A Scylla release caller can pass a driver commit SHA
and version for patch and ignore selection before the release tag exists.
In the driver's release workflow, add a job before the release job:
jobs:
pre-release-integration:
uses: scylladb/scylla-java-driver-matrix/.github/workflows/driver-integration-matrix.yml@master
with:
driver_ref: ${{ github.sha }}
driver_version: 4.19.2.3
release:
needs: pre-release-integration
# Existing release job configuration follows.The release call uses matrix master. For a re-release, pass the predecessor commit of
the target tag as driver_ref, matching the driver's release checkout.
apt-get install openjdk-8-jdk-headless maven python-virtualenv
virtualenv .ccm-venv
source .ccm-venv/bin/activate
pip install -r scripts/requirements.txt
python3 ./main.py ../java-driver/ --versions 4.3.0 --scylla-version unstable/master:201910020524./scripts/run_test.sh python ./main.py ../java-driver/ --version 4.3.0 --scylla-version unstable/master:201910020524```./scripts/run_test.sh python3 ./main.py ../java-driver/ --tests QueryTraceIT --version 4.1.0 --scylla-version u
nstable/master:201912142059- Create a basic Python configure.
- Working directory value is:
/home/oren/Desktop/github/python-driver-matrix - Script path value is:
main.py - Parameters value are:
/home/oren/Desktop/github/java-driver/ /home/oren/Desktop/github/scylla/ --version 4.x --scylla-version unstable/master/2022-01-03T13_22_36Z # To run a specific test needs to use # --tests # DirectCompressionIT
- To run a specific test needs to use
when doing changes to requirements.txt, or any other change to docker image, it can be uploaded like this:
export UNIT_TEST_DOCKER_IMAGE=scylladb/scylla-cassandra-unit-tests:python3.11-$(date +'%Y%m%d')
docker build ./scripts/ -t ${UNIT_TEST_DOCKER_IMAGE}
docker push ${UNIT_TEST_DOCKER_IMAGE}
echo "${UNIT_TEST_DOCKER_IMAGE}" > scripts/imageNote: you'll need permissions on the scylladb dockerhub organization for uploading images
- fix
ccm node1 pause, a bug in CCM
# running specific tests stright from java-driver dir (on branches 4.x)
mvn -pl infra-tests install
mvn -pl integration-tests -Dtest='SelectOtherClausesIT,ExecutionInfoWarningsIT' test -Dscylla.version=unstable/master:201910020524
# running on java-driver branches 3.x
mvn -pl driver-core test -Dtest.groups='long' -Dtest='*' -Dscylla.version=unstable/master:201910020524