Skip to content

Commit cea6e00

Browse files
authored
PYTHON-1368 Avoid installing DSE deps + executing DSE tests for Python 3.12 (#1188)
1 parent 3ca41e2 commit cea6e00

File tree

1 file changed

+22
-12
lines changed

1 file changed

+22
-12
lines changed

Jenkinsfile

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,14 @@ def initializeEnvironment() {
177177

178178
// Determine if server version is Apache CassandraⓇ or DataStax Enterprise
179179
if (env.CASSANDRA_VERSION.split('-')[0] == 'dse') {
180-
sh label: 'Install DataStax Enterprise requirements', script: '''#!/bin/bash -lex
181-
pip install -r test-datastax-requirements.txt
182-
'''
180+
if (env.PYTHON_VERSION =~ /3\.12\.\d+/) {
181+
echo "Cannot install DSE dependencies for Python 3.12.x. See PYTHON-1368 for more detail."
182+
}
183+
else {
184+
sh label: 'Install DataStax Enterprise requirements', script: '''#!/bin/bash -lex
185+
pip install -r test-datastax-requirements.txt
186+
'''
187+
}
183188
} else {
184189
sh label: 'Install Apache CassandraⓇ requirements', script: '''#!/bin/bash -lex
185190
pip install -r test-requirements.txt
@@ -292,17 +297,22 @@ def executeStandardTests() {
292297
'''
293298

294299
if (env.CASSANDRA_VERSION.split('-')[0] == 'dse' && env.CASSANDRA_VERSION.split('-')[1] != '4.8') {
295-
sh label: 'Execute DataStax Enterprise integration tests', script: '''#!/bin/bash -lex
296-
# Load CCM environment variable
297-
set -o allexport
298-
. ${HOME}/environment.txt
299-
set +o allexport
300-
301-
EVENT_LOOP=${EVENT_LOOP} CASSANDRA_DIR=${CCM_INSTALL_DIR} DSE_VERSION=${DSE_VERSION} ADS_HOME="${HOME}/" VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=dse_results.xml tests/integration/advanced/ || true
302-
'''
300+
if (env.PYTHON_VERSION =~ /3\.12\.\d+/) {
301+
echo "Cannot install DSE dependencies for Python 3.12.x. See PYTHON-1368 for more detail."
302+
}
303+
else {
304+
sh label: 'Execute DataStax Enterprise integration tests', script: '''#!/bin/bash -lex
305+
# Load CCM environment variable
306+
set -o allexport
307+
. ${HOME}/environment.txt
308+
set +o allexport
309+
310+
EVENT_LOOP=${EVENT_LOOP} CASSANDRA_DIR=${CCM_INSTALL_DIR} DSE_VERSION=${DSE_VERSION} ADS_HOME="${HOME}/" VERIFY_CYTHON=${CYTHON_ENABLED} pynose -s -v --logging-format="[%(levelname)s] %(asctime)s %(thread)d: %(message)s" --with-ignore-docstrings --with-xunit --xunit-file=dse_results.xml tests/integration/advanced/ || true
311+
'''
312+
}
303313
}
304314

305-
sh label: 'Execute DataStax Constellation integration tests', script: '''#!/bin/bash -lex
315+
sh label: 'Execute DataStax Astra integration tests', script: '''#!/bin/bash -lex
306316
# Load CCM environment variable
307317
set -o allexport
308318
. ${HOME}/environment.txt

0 commit comments

Comments
 (0)