Skip to content

Commit 9a79180

Browse files
committed
Bytes to bson
1 parent e1a2162 commit 9a79180

File tree

3 files changed

+39
-67
lines changed

3 files changed

+39
-67
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2554,6 +2554,21 @@ tasks:
25542554
- func: attach benchmark test results
25552555
- func: send dashboard data
25562556
tags: [perf]
2557+
- name: perf-8.0-standalone-ssl-rust
2558+
commands:
2559+
- func: run server
2560+
vars:
2561+
VERSION: v8.0-perf
2562+
SSL: ssl
2563+
- func: run tests
2564+
vars:
2565+
TEST_NAME: perf
2566+
SUB_TEST_NAME: rust
2567+
PYMONGO_BUILD_RUST: "1"
2568+
PYMONGO_USE_RUST: "1"
2569+
- func: attach benchmark test results
2570+
- func: send dashboard data
2571+
tags: [perf]
25572572
- name: perf-8.0-standalone
25582573
commands:
25592574
- func: run server
@@ -2580,6 +2595,21 @@ tasks:
25802595
- func: attach benchmark test results
25812596
- func: send dashboard data
25822597
tags: [perf]
2598+
- name: perf-8.0-standalone-rust
2599+
commands:
2600+
- func: run server
2601+
vars:
2602+
VERSION: v8.0-perf
2603+
SSL: nossl
2604+
- func: run tests
2605+
vars:
2606+
TEST_NAME: perf
2607+
SUB_TEST_NAME: rust
2608+
PYMONGO_BUILD_RUST: "1"
2609+
PYMONGO_USE_RUST: "1"
2610+
- func: attach benchmark test results
2611+
- func: send dashboard data
2612+
tags: [perf]
25832613

25842614
# Rust extension tests
25852615
- name: test-rust-latest-python3.10-noauth-nossl-standalone

.evergreen/rust-extension.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.evergreen/scripts/generate_config.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -958,18 +958,24 @@ def create_search_index_tasks():
958958

959959
def create_perf_tasks():
960960
tasks = []
961-
for version, ssl, sync in product(["8.0"], ["ssl", "nossl"], ["sync", "async"]):
961+
for version, ssl, sync in product(["8.0"], ["ssl", "nossl"], ["sync", "async", "rust"]):
962962
vars = dict(VERSION=f"v{version}-perf", SSL=ssl)
963963
server_func = FunctionCall(func="run server", vars=vars)
964-
vars = dict(TEST_NAME="perf", SUB_TEST_NAME=sync)
965-
test_func = FunctionCall(func="run tests", vars=vars)
964+
test_vars = dict(TEST_NAME="perf", SUB_TEST_NAME=sync)
965+
# Enable Rust for rust perf tests
966+
if sync == "rust":
967+
test_vars["PYMONGO_BUILD_RUST"] = "1"
968+
test_vars["PYMONGO_USE_RUST"] = "1"
969+
test_func = FunctionCall(func="run tests", vars=test_vars)
966970
attach_func = FunctionCall(func="attach benchmark test results")
967971
send_func = FunctionCall(func="send dashboard data")
968972
task_name = f"perf-{version}-standalone"
969973
if ssl == "ssl":
970974
task_name += "-ssl"
971975
if sync == "async":
972976
task_name += "-async"
977+
elif sync == "rust":
978+
task_name += "-rust"
973979
tags = ["perf"]
974980
commands = [server_func, test_func, attach_func, send_func]
975981
tasks.append(EvgTask(name=task_name, tags=tags, commands=commands))

0 commit comments

Comments
 (0)