From 86ef413ebbc69984c2c697b9122b48fa0e5b61c6 Mon Sep 17 00:00:00 2001 From: Andrew Tolbert Date: Thu, 2 Aug 2018 15:08:40 -0500 Subject: [PATCH 1/3] Use ubuntu/bionic64/python-driver bionic image on jenkins --- build.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/build.yaml b/build.yaml index d5c114e1e2..722485fd9a 100644 --- a/build.yaml +++ b/build.yaml @@ -99,7 +99,7 @@ python: - 3.6 os: - - ubuntu/trusty64 + - ubuntu/bionic64/python-driver cassandra: - '2.1' @@ -122,9 +122,7 @@ build: pip install --upgrade pip pip install -U setuptools - pip install git+https://github.com/pcmanus/ccm.git - # Install dependencies - sudo apt-get install -y libev4 libev-dev libssl-dev + pip install git+https://github.com/riptano/ccm.git pip install -r test-requirements.txt pip install nose-ignore-docstring @@ -146,8 +144,6 @@ build: echo "Installing simulacron" pushd ~ - SIMULACRON_JAR=`find \`pwd\` -name "simulacron-standalone-*.jar"` - echo "SIMULACRON_JAR: $SIMULACRON_JAR" popd @@ -170,6 +166,7 @@ build: echo "Running with event loop manager: $EVENT_LOOP_MANAGER" echo "==========RUNNING SIMULACRON TESTS==========" + SIMULACRON_JAR="$HOME/simulacron.jar" SIMULACRON_JAR=$SIMULACRON_JAR EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER CASSANDRA_DIR=$CCM_INSTALL_DIR DSE_VERSION=$CCM_CASSANDRA_VERSION VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=simulacron_results.xml tests/integration/simulacron/ || true echo "Running with event loop manager: $EVENT_LOOP_MANAGER" From 88b23b3f15eadd6f799f0bcd4b1b514e2ef1888f Mon Sep 17 00:00:00 2001 From: Andrew Tolbert Date: Thu, 2 Aug 2018 15:09:45 -0500 Subject: [PATCH 2/3] Cleanup --- build.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/build.yaml b/build.yaml index 722485fd9a..c38d370c71 100644 --- a/build.yaml +++ b/build.yaml @@ -141,13 +141,6 @@ build: python setup.py build_ext --inplace --no-cython fi - echo "Installing simulacron" - pushd ~ - - - popd - - echo "JUST_UPGRADE: $JUST_UPGRADE" if [[ $JUST_UPGRADE == 'True' ]]; then EVENT_LOOP_MANAGER=$EVENT_LOOP_MANAGER VERIFY_CYTHON=$FORCE_CYTHON nosetests -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=upgrade_results.xml tests/integration/upgrade || true From 7e92d2fc876ad1d4513bfa65e4fed740b39f477f Mon Sep 17 00:00:00 2001 From: Andrew Tolbert Date: Mon, 6 Aug 2018 17:32:35 -0500 Subject: [PATCH 3/3] Fix spelling error for AsyncioConnection --- tests/unit/io/test_asyncioreactor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/io/test_asyncioreactor.py b/tests/unit/io/test_asyncioreactor.py index 3458ecbcbc..be3c2bcd2e 100644 --- a/tests/unit/io/test_asyncioreactor.py +++ b/tests/unit/io/test_asyncioreactor.py @@ -3,7 +3,7 @@ import asynctest ASYNCIO_AVAILABLE = True except (ImportError, SyntaxError): - AysncioConnection = None + AsyncioConnection = None ASYNCIO_AVAILABLE = False from tests import is_monkey_patched, connection_class