MOTOR-1314 Test against 8.0 builds (#287)

This commit is contained in:
Steven Silvester 2024-06-20 08:02:19 -05:00 committed by GitHub
parent cac2145109
commit 5ef6a15dc6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 36 additions and 3 deletions

View File

@ -691,6 +691,33 @@ tasks:
TOPOLOGY: "sharded_cluster"
- func: "run tox"
- name: "test-8.0-standalone"
tags: [ "8.0", "standalone" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "8.0"
TOPOLOGY: "server"
- func: "run tox"
- name: "test-8.0-replica_set"
tags: [ "8.0", "replica_set" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "8.0"
TOPOLOGY: "replica_set"
- func: "run tox"
- name: "test-8.0-sharded_cluster"
tags: [ "8.0", "sharded_cluster" ]
commands:
- func: "bootstrap mongo-orchestration"
vars:
VERSION: "8.0"
TOPOLOGY: "sharded_cluster"
- func: "run tox"
- name: "test-latest-standalone"
tags: ["latest", "standalone"]
commands:
@ -921,6 +948,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".8.0"
- ".7.0"
- ".6.0"
- ".5.0"
@ -952,6 +980,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".8.0"
- ".7.0"
- ".6.0"
- ".5.0"
@ -969,6 +998,7 @@ buildvariants:
tasks:
- ".rapid"
- ".latest"
- ".8.0"
- ".7.0"
- ".6.0"

View File

@ -101,7 +101,8 @@ extras =
encryption
test
commands =
pip install git+https://github.com/mongodb/mongo-python-driver.git@master
# TODO: Use "master" as part of MOTOR-1330
pip install git+https://github.com/mongodb/mongo-python-driver.git@v4.8
pip install -q --pre --prefer-binary pymongocrypt
python --version
python -c "import pymongo; print('PyMongo %s' % (pymongo.version,))"
@ -115,7 +116,8 @@ allowlist_externals =
setenv =
PYTHONPATH = {envtmpdir}/mongo-python-driver
commands =
git clone --depth 1 --branch master https://github.com/mongodb/mongo-python-driver.git {envtmpdir}/mongo-python-driver
# TODO: Use "master" as part of MOTOR-1330
git clone --depth 1 --branch v4.8 https://github.com/mongodb/mongo-python-driver.git {envtmpdir}/mongo-python-driver
python -m pip install -e {envtmpdir}/mongo-python-driver
python -m synchro.synchrotest {envtmpdir}/mongo-python-driver -v {posargs}
@ -130,7 +132,8 @@ passenv =
setenv =
PYTHONPATH = {envtmpdir}/mongo-python-driver
commands =
git clone --depth 1 --branch master https://github.com/mongodb/mongo-python-driver.git {envtmpdir}/mongo-python-driver
# TODO: Use "master" as part of MOTOR-1330
git clone --depth 1 --branch v4.8 https://github.com/mongodb/mongo-python-driver.git {envtmpdir}/mongo-python-driver
python -m pip install -e {envtmpdir}/mongo-python-driver
python -m synchro.synchrotest {envtmpdir}/mongo-python-driver -v test/test_auth.py