Skip to content

Commit a444188

Browse files
committed
testing to fix ScyllaCloudConfigTests failing in CI
1 parent a67a727 commit a444188

File tree

2 files changed

+8
-17
lines changed

2 files changed

+8
-17
lines changed

ci/run_integration_test.sh

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (( aio_max_nr != aio_max_nr_recommended_value )); then
1515
fi
1616
fi
1717

18-
BRANCH='branch-5.0'
18+
SCYLLA_RELEASE='release:5.0'
1919

2020
python3 -m venv .test-venv
2121
source .test-venv/bin/activate
@@ -32,27 +32,15 @@ pip install awscli
3232
pip install https://github.com/scylladb/scylla-ccm/archive/master.zip
3333

3434
# download version
35-
LATEST_MASTER_JOB_ID=`aws --no-sign-request s3 ls downloads.scylladb.com/unstable/scylla/${BRANCH}/relocatable/ | tr -s ' ' | cut -d ' ' -f 3 | tr -d '\/' | sort -g | tail -n 1`
36-
AWS_BASE=s3://downloads.scylladb.com/unstable/scylla/${BRANCH}/relocatable/${LATEST_MASTER_JOB_ID}
37-
38-
aws s3 --no-sign-request cp ${AWS_BASE}/scylla-package.tar.gz . &
39-
aws s3 --no-sign-request cp ${AWS_BASE}/scylla-tools-package.tar.gz . &
40-
aws s3 --no-sign-request cp ${AWS_BASE}/scylla-jmx-package.tar.gz . &
41-
wait
42-
43-
ccm create scylla-driver-temp -n 1 --scylla --version unstable/${BRANCH}:$LATEST_MASTER_JOB_ID \
44-
--scylla-core-package-uri=./scylla-package.tar.gz \
45-
--scylla-tools-java-package-uri=./scylla-tools-package.tar.gz \
46-
--scylla-jmx-package-uri=./scylla-jmx-package.tar.gz
4735

36+
ccm create scylla-driver-temp -n 1 --scylla --version ${SCYLLA_RELEASE}
4837
ccm remove
4938

5039
# run test
5140

52-
echo "export SCYLLA_VERSION=unstable/${BRANCH}:${LATEST_MASTER_JOB_ID}"
41+
echo "export SCYLLA_VERSION=${SCYLLA_RELEASE}"
5342
echo "PROTOCOL_VERSION=4 EVENT_LOOP_MANAGER=asyncio pytest --import-mode append tests/integration/standard/"
54-
export SCYLLA_VERSION=unstable/${BRANCH}:${LATEST_MASTER_JOB_ID}
43+
export SCYLLA_VERSION=${SCYLLA_RELEASE}
5544
export MAPPED_SCYLLA_VERSION=3.11.4
56-
PROTOCOL_VERSION=4 EVENT_LOOP_MANAGER=asyncio pytest -rf --import-mode append $*
57-
45+
PROTOCOL_VERSION=4 EVENT_LOOP_MANAGER=libev pytest -rf --import-mode append $*
5846

tests/integration/standard/test_scylla_cloud.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import logging
12
import os.path
23
from unittest import TestCase
34
from ccmlib.utils.ssl_utils import generate_ssl_stores
@@ -54,6 +55,7 @@ def test_1_node_cluster(self):
5455

5556
for config in [config_path_yaml, config_data_yaml]:
5657
for connection_class in supported_connection_classes:
58+
logging.warning('testing with class: %s', connection_class.__name__)
5759
cluster = Cluster(scylla_cloud=config, connection_class=connection_class)
5860
with cluster.connect() as session:
5961
res = session.execute("SELECT * FROM system.local")
@@ -68,6 +70,7 @@ def test_3_node_cluster(self):
6870

6971
for config in [config_path_yaml, config_data_yaml]:
7072
for connection_class in supported_connection_classes:
73+
logging.warning('testing with class: %s', connection_class.__name__)
7174
cluster = Cluster(scylla_cloud=config, connection_class=connection_class)
7275
with cluster.connect() as session:
7376
res = session.execute("SELECT * FROM system.local")

0 commit comments

Comments
 (0)