https://github.com/scylladb/scylla-java-driver-matrix
https://github.com/scylladb/scylla-java-driver-matrix
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/scylladb/scylla-java-driver-matrix
- Owner: scylladb
- Created: 2019-12-08T13:51:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-09-17T05:05:45.000Z (9 months ago)
- Last Synced: 2024-09-17T07:57:17.498Z (9 months ago)
- Language: Groovy
- Size: 101 KB
- Stars: 2
- Watchers: 4
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scylla-java-driver-matrix
Helper script to run integration test from multiple java-drivers against scylla
## Usage
### Running Locally
```bash
apt-get install openjdk-8-jdk-headless maven python-virtualenvvirtualenv .ccm-venv
source .ccm-venv/bin/activatepip install -r scripts/requirements.txt
python3 ./main.py ../java-driver/ --versions 4.3.0 --scylla-version unstable/master:201910020524
```### Running with docker
```bash
./scripts/run_test.sh python ./main.py ../java-driver/ --version 4.3.0 --scylla-version unstable/master:201910020524```
```### Running specific test
```bash
./scripts/run_test.sh python3 ./main.py ../java-driver/ --tests QueryTraceIT --version 4.1.0 --scylla-version u
nstable/master:201912142059
```### Running from PyCharm:
- 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:
```bash
/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## Uploading docker images
when doing changes to requirements.txt, or any other change to docker image, it can be uploaded like this:```bash
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/image
```**Note:** you'll need permissions on the scylladb dockerhub organization for uploading images
## TODOs
* 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```