Skip to content

Commit cb57ada

Browse files
authored
RUST-1654 Enable QEv2 tests on serverless (mongodb#974)
1 parent ef3f49a commit cb57ada

File tree

127 files changed

+374
-340
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+374
-340
lines changed

.evergreen/config.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ post:
3434
- func: "upload-mo-artifacts"
3535
- func: "cleanup"
3636

37-
# Cause a timeout if a task does not complete within 90 minutes. TODO RUST-1721: reduce this.
38-
exec_timeout_secs: 5400
37+
# Cause a timeout if a task does not complete within 150 minutes. TODO RUST-1721: reduce this.
38+
exec_timeout_secs: 9000
3939
# What to do if the timeout is hit. Post-task functions will still run.
4040
timeout:
4141
- command: shell.exec
@@ -324,12 +324,14 @@ buildvariants:
324324
- test-plain-auth
325325

326326
- name: serverless
327-
# TODO RUST-1745: Enable this build variant when the serverless issues are fixed.
328-
disable: true
329327
patchable: false
330328
display_name: "Serverless"
331329
run_on:
332-
- rhel87-small
330+
- rhel80-small
331+
expansions:
332+
LIBMONGOCRYPT_OS: rhel-80-64-bit
333+
AUTH: auth
334+
SSL: ssl
333335
tasks:
334336
- serverless-task-group
335337

@@ -381,16 +383,6 @@ buildvariants:
381383
tasks:
382384
- test-in-use-encryption-openssl
383385

384-
- name: in-use-encryption-serverless
385-
# TODO RUST-1745: Enable this build variant when the serverless issues are fixed.
386-
disable: true
387-
patchable: false
388-
display_name: In-Use Encryption (Serverless)
389-
run_on:
390-
- rhel87-small
391-
tasks:
392-
- test-in-use-encryption-serverless
393-
394386
- name: load-balancer
395387
display_name: "Load Balancer"
396388
run_on:
@@ -414,6 +406,7 @@ task_groups:
414406
- func: "init test-results"
415407
- func: "make files executable"
416408
- func: "install rust"
409+
- func: "install junit dependencies"
417410
- command: shell.exec
418411
params:
419412
shell: "bash"
@@ -445,6 +438,7 @@ task_groups:
445438

446439
tasks:
447440
- "test-serverless"
441+
- "test-in-use-encryption-serverless"
448442

449443
- name: azure-kms-task-group
450444
setup_group_can_fail_task: true
@@ -1652,9 +1646,9 @@ functions:
16521646
params:
16531647
working_dir: src
16541648
shell: bash
1649+
add_expansions_to_env: true
16551650
script: |
16561651
${PREPARE_SHELL}
1657-
${PREPARE_CSFLE}
16581652
16591653
# Exported without xtrace to avoid leaking credentials
16601654
set +o xtrace

src/db.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ impl Database {
394394
};
395395
const SERVER_7_0_0_WIRE_VERSION: i32 = 21;
396396
match max_wire {
397+
None => (),
397398
Some(v) if v >= SERVER_7_0_0_WIRE_VERSION => (),
398399
_ => {
399400
return Err(ErrorKind::IncompatibleServer {

src/test/csfle.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ use super::{
6767
FailPointMode,
6868
TestClient,
6969
CLIENT_OPTIONS,
70-
SERVERLESS,
7170
};
7271

7372
type Result<T> = anyhow::Result<T>;
@@ -2039,10 +2038,6 @@ async fn kms_tls_options() -> Result<()> {
20392038
}
20402039

20412040
async fn fle2v2_ok(name: &str) -> bool {
2042-
if *SERVERLESS {
2043-
log_uncaptured(format!("Skipping {}: not supported on serverless", name));
2044-
return false;
2045-
}
20462041
let setup_client = Client::test_builder().build().await;
20472042
if setup_client.server_version_lt(7, 0) {
20482043
log_uncaptured(format!("Skipping {}: not supported on server < 7.0", name));
@@ -3548,10 +3543,6 @@ async fn fle2_example() -> Result<()> {
35483543
log_uncaptured("skipping fle2 example: cannot run on standalone");
35493544
return Ok(());
35503545
}
3551-
if *SERVERLESS {
3552-
log_uncaptured("skipping fle2 example: cannot run on serverless");
3553-
return Ok(());
3554-
}
35553546

35563547
// Drop data from prior test runs.
35573548
test_client

0 commit comments

Comments
 (0)