Skip to content

Commit 455a00b

Browse files
ci(cassandra): skip python 3.9 and 3.10 tests (#3929) (#3941)
Cassandra tests hang and then timeout in python 3.10: https://app.circleci.com/pipelines/github/DataDog/dd-trace-py/18539/workflows/46570928-4859-4916-9645-00d0c108aa02/jobs/1254874. Since cassandra-driver does not officially support 3.10 we should just avoid testing on these versions. (cherry picked from commit 766702e) Co-authored-by: Munir Abdinur <[email protected]>
1 parent f7f982b commit 455a00b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

riotfile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,20 +1355,20 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION):
13551355
Venv(
13561356
name="cassandra",
13571357
venvs=[
1358-
# Python 3.9 requires a more recent release.
1358+
# cassandra-driver does not officially support 3.10
1359+
# TODO: fix sporadically failing tests in cassandra-driver v3.25.0 and py3.10
13591360
Venv(
1360-
pys=select_pys(min_version="3.9"),
1361+
pys=["3.9"],
13611362
pkgs={"cassandra-driver": latest},
13621363
),
13631364
# releases 3.7 and 3.8 are broken on Python >= 3.7
13641365
# (see https://github.com/r4fek/django-cassandra-engine/issues/104)
1365-
Venv(
1366-
pys=["3.7", "3.8"],
1367-
pkgs={"cassandra-driver": ["~=3.6.0", "~=3.15.0", latest]},
1368-
),
1366+
Venv(pys=["3.7", "3.8"], pkgs={"cassandra-driver": ["~=3.6.0", "~=3.15.0", "~=3.24.0", latest]}),
13691367
Venv(
13701368
pys=select_pys(max_version="3.6"),
1371-
pkgs={"cassandra-driver": [("~=3.%d.0" % m) for m in range(6, 9)] + ["~=3.15.0", latest]},
1369+
pkgs={
1370+
"cassandra-driver": [("~=3.%d.0" % m) for m in range(6, 9)] + ["~=3.15.0", "~=3.24.0", latest]
1371+
},
13721372
),
13731373
],
13741374
command="pytest {cmdargs} tests/contrib/cassandra",

0 commit comments

Comments
 (0)