Skip to content

Commit 89322a2

Browse files
committed
Add tests-8-qe to evergreen buildvariants
1 parent 598d002 commit 89322a2

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.evergreen/config.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ functions:
5555
params:
5656
binary: bash
5757
working_dir: "src"
58-
include_expansions_in_env: ["DRIVERS_TOOLS", "MONGODB_URI"]
58+
include_expansions_in_env: ["DRIVERS_TOOLS", "MONGODB_URI", "DJANGO_SETTINGS_MODULE", "CRYPT_SHARED_LIB_PATH"]
5959
args:
6060
- ./.evergreen/run-tests.sh
6161

@@ -124,3 +124,13 @@ buildvariants:
124124
SSL: "ssl"
125125
tasks:
126126
- name: run-tests
127+
128+
- name: tests-8-qe
129+
display_name: Run Tests 8.0 QE
130+
run_on: rhel94-perf-atlas
131+
expansions:
132+
MONGODB_VERSION: "8.2"
133+
TOPOLOGY: replica_set
134+
DJANGO_SETTINGS_MODULE: "encrypted_settings"
135+
tasks:
136+
- name: run-tests

.evergreen/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -eux
66
/opt/python/3.10/bin/python3 -m venv venv
77
. venv/bin/activate
88
python -m pip install -U pip
9-
pip install -e .
9+
pip install -e '.[encryption]'
1010

1111
# Install django and test dependencies
1212
git clone --branch mongodb-5.2.x https://github.com/mongodb-forks/django django_repo

.github/workflows/encrypted_settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Settings for django_mongodb_backend/tests when encryption is supported.
22
import os
3+
from pathlib import Path
34

45
from mongodb_settings import * # noqa: F403
56
from pymongo.encryption import AutoEncryptionOpts
67

7-
os.environ["LD_LIBRARY_PATH"] = os.environ["GITHUB_WORKSPACE"] + "/lib/"
8+
os.environ["LD_LIBRARY_PATH"] = str(Path(os.environ["CRYPT_SHARED_LIB_PATH"]).parent)
89

910
DATABASES["encrypted"] = { # noqa: F405
1011
"ENGINE": "django_mongodb_backend",
@@ -13,7 +14,7 @@
1314
"auto_encryption_opts": AutoEncryptionOpts(
1415
key_vault_namespace="djangotests_encrypted.__keyVault",
1516
kms_providers={"local": {"key": os.urandom(96)}},
16-
crypt_shared_lib_path=os.environ["GITHUB_WORKSPACE"] + "/lib/mongo_crypt_v1.so",
17+
crypt_shared_lib_path=os.environ["CRYPT_SHARED_LIB_PATH"],
1718
),
1819
"directConnection": True,
1920
},

.github/workflows/test-python-atlas.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,4 @@ jobs:
6262
contents: read
6363
env:
6464
DJANGO_SETTINGS_MODULE: "encrypted_settings"
65+
CRYPT_SHARED_LIB_PATH: "${{ github.workspace }}/lib/mongo_crypt_v1.so"

0 commit comments

Comments
 (0)