Skip to content

Commit c3f4835

Browse files
authored
RUST-1941 Test against server 8.0 (#1110)
1 parent d3cc97e commit c3f4835

File tree

5 files changed

+321
-242
lines changed

5 files changed

+321
-242
lines changed

.evergreen/config.yml

Lines changed: 5 additions & 242 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ command_type: system
1313
# If any of the pre tasks fails, the task will be marked as a failure.
1414
pre_error_fails_task: true
1515

16+
include:
17+
- filename: .evergreen/suite-tasks.yml
18+
1619
# Functions to run before all tasks (except those in task groups).
1720
pre:
1821
- func: "fetch source"
@@ -709,248 +712,8 @@ tasks:
709712
commands:
710713
- func: "check rustdoc"
711714

712-
- name: test-3.6-standalone
713-
tags: [3.6, standalone]
714-
commands:
715-
- func: "bootstrap mongo-orchestration"
716-
vars:
717-
MONGODB_VERSION: 3.6
718-
TOPOLOGY: server
719-
- func: "run driver test suite"
720-
721-
- name: test-4.0-standalone
722-
tags: [4.0, standalone]
723-
commands:
724-
- func: "bootstrap mongo-orchestration"
725-
vars:
726-
MONGODB_VERSION: 4.0
727-
TOPOLOGY: server
728-
- func: "run driver test suite"
729-
730-
- name: test-4.2-standalone
731-
tags: [4.2, standalone]
732-
commands:
733-
- func: "bootstrap mongo-orchestration"
734-
vars:
735-
MONGODB_VERSION: 4.2
736-
TOPOLOGY: server
737-
- func: "run driver test suite"
738-
739-
- name: test-4.4-standalone
740-
tags: [4.4, standalone]
741-
commands:
742-
- func: "bootstrap mongo-orchestration"
743-
vars:
744-
MONGODB_VERSION: 4.4
745-
TOPOLOGY: server
746-
- func: "run driver test suite"
747-
748-
- name: test-5.0-standalone
749-
tags: [5.0, standalone]
750-
commands:
751-
- func: "bootstrap mongo-orchestration"
752-
vars:
753-
MONGODB_VERSION: 5.0
754-
TOPOLOGY: server
755-
- func: "run driver test suite"
756-
757-
- name: test-6.0-standalone
758-
tags: [6.0, standalone]
759-
commands:
760-
- func: "bootstrap mongo-orchestration"
761-
vars:
762-
MONGODB_VERSION: 6.0
763-
TOPOLOGY: server
764-
- func: "run driver test suite"
765-
766-
- name: test-7.0-standalone
767-
tags: [7.0, standalone]
768-
commands:
769-
- func: "bootstrap mongo-orchestration"
770-
vars:
771-
MONGODB_VERSION: 7.0
772-
TOPOLOGY: server
773-
- func: "run driver test suite"
774-
775-
- name: test-rapid-standalone
776-
tags: [rapid, standalone]
777-
commands:
778-
- func: "bootstrap mongo-orchestration"
779-
vars:
780-
MONGODB_VERSION: rapid
781-
TOPOLOGY: server
782-
- func: "run driver test suite"
783-
784-
- name: test-latest-standalone
785-
tags: [latest, standalone]
786-
commands:
787-
- func: "bootstrap mongo-orchestration"
788-
vars:
789-
MONGODB_VERSION: latest
790-
TOPOLOGY: server
791-
- func: "run driver test suite"
792-
793-
- name: test-3.6-replicaset
794-
tags: [3.6, replicaset]
795-
commands:
796-
- func: "bootstrap mongo-orchestration"
797-
vars:
798-
MONGODB_VERSION: 3.6
799-
TOPOLOGY: replica_set
800-
- func: "run driver test suite"
801-
802-
- name: test-4.0-replicaset
803-
tags: [4.0, replicaset]
804-
commands:
805-
- func: "bootstrap mongo-orchestration"
806-
vars:
807-
MONGODB_VERSION: 4.0
808-
TOPOLOGY: replica_set
809-
- func: "run driver test suite"
810-
811-
- name: test-4.2-replicaset
812-
tags: [4.2, replicaset]
813-
commands:
814-
- func: "bootstrap mongo-orchestration"
815-
vars:
816-
MONGODB_VERSION: 4.2
817-
TOPOLOGY: replica_set
818-
- func: "run driver test suite"
819-
820-
- name: test-4.4-replicaset
821-
tags: [4.4, replicaset]
822-
commands:
823-
- func: "bootstrap mongo-orchestration"
824-
vars:
825-
MONGODB_VERSION: 4.4
826-
TOPOLOGY: replica_set
827-
- func: "run driver test suite"
828-
829-
- name: test-5.0-replicaset
830-
tags: [5.0, replicaset]
831-
commands:
832-
- func: "bootstrap mongo-orchestration"
833-
vars:
834-
MONGODB_VERSION: 5.0
835-
TOPOLOGY: replica_set
836-
- func: "run driver test suite"
837-
838-
- name: test-6.0-replicaset
839-
tags: [6.0, replicaset]
840-
commands:
841-
- func: "bootstrap mongo-orchestration"
842-
vars:
843-
MONGODB_VERSION: 6.0
844-
TOPOLOGY: replica_set
845-
- func: "run driver test suite"
846-
847-
- name: test-7.0-replicaset
848-
tags: [7.0, replicaset]
849-
commands:
850-
- func: "bootstrap mongo-orchestration"
851-
vars:
852-
MONGODB_VERSION: 7.0
853-
TOPOLOGY: replica_set
854-
- func: "run driver test suite"
855-
856-
- name: test-rapid-replicaset
857-
tags: [rapid, replicaset]
858-
commands:
859-
- func: "bootstrap mongo-orchestration"
860-
vars:
861-
MONGODB_VERSION: rapid
862-
TOPOLOGY: replica_set
863-
- func: "run driver test suite"
864-
865-
- name: test-latest-replicaset
866-
tags: [latest, replicaset]
867-
commands:
868-
- func: "bootstrap mongo-orchestration"
869-
vars:
870-
MONGODB_VERSION: latest
871-
TOPOLOGY: replica_set
872-
- func: "run driver test suite"
873-
874-
- name: test-3.6-sharded
875-
tags: [3.6, sharded]
876-
commands:
877-
- func: "bootstrap mongo-orchestration"
878-
vars:
879-
MONGODB_VERSION: 3.6
880-
TOPOLOGY: sharded_cluster
881-
- func: "run driver test suite"
882-
883-
- name: test-4.0-sharded
884-
tags: [4.0, sharded]
885-
commands:
886-
- func: "bootstrap mongo-orchestration"
887-
vars:
888-
MONGODB_VERSION: 4.0
889-
TOPOLOGY: sharded_cluster
890-
- func: "run driver test suite"
891-
892-
- name: test-4.2-sharded
893-
tags: [4.2, sharded]
894-
commands:
895-
- func: "bootstrap mongo-orchestration"
896-
vars:
897-
MONGODB_VERSION: 4.2
898-
TOPOLOGY: sharded_cluster
899-
- func: "run driver test suite"
900-
901-
- name: test-4.4-sharded
902-
tags: [4.4, sharded]
903-
commands:
904-
- func: "bootstrap mongo-orchestration"
905-
vars:
906-
MONGODB_VERSION: 4.4
907-
TOPOLOGY: sharded_cluster
908-
- func: "run driver test suite"
909-
910-
- name: test-5.0-sharded
911-
tags: [5.0, sharded]
912-
commands:
913-
- func: "bootstrap mongo-orchestration"
914-
vars:
915-
MONGODB_VERSION: 5.0
916-
TOPOLOGY: sharded_cluster
917-
- func: "run driver test suite"
918-
919-
- name: test-6.0-sharded
920-
tags: [6.0, sharded]
921-
commands:
922-
- func: "bootstrap mongo-orchestration"
923-
vars:
924-
MONGODB_VERSION: 6.0
925-
TOPOLOGY: sharded_cluster
926-
- func: "run driver test suite"
927-
928-
- name: test-7.0-sharded
929-
tags: [7.0, sharded]
930-
commands:
931-
- func: "bootstrap mongo-orchestration"
932-
vars:
933-
MONGODB_VERSION: 7.0
934-
TOPOLOGY: sharded_cluster
935-
- func: "run driver test suite"
936-
937-
- name: test-rapid-sharded
938-
tags: [rapid, sharded]
939-
commands:
940-
- func: "bootstrap mongo-orchestration"
941-
vars:
942-
MONGODB_VERSION: rapid
943-
TOPOLOGY: sharded_cluster
944-
- func: "run driver test suite"
945-
946-
- name: test-latest-sharded
947-
tags: [latest, sharded]
948-
commands:
949-
- func: "bootstrap mongo-orchestration"
950-
vars:
951-
MONGODB_VERSION: latest
952-
TOPOLOGY: sharded_cluster
953-
- func: "run driver test suite"
715+
# Driver test suite runs for the full set of versions and topologies are in
716+
# suite-tasks.yml, generated by .evergreen/generate_tasks.
954717

955718
- name: test-zstd-compression
956719
tags: [compression]

.evergreen/generate-tasks/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

.evergreen/generate-tasks/Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "generate-tasks"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]

.evergreen/generate-tasks/src/main.rs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
static VERSIONS: &[&str] = &[
2+
"3.6", "4.0", "4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest",
3+
];
4+
5+
static TOPOLOGIES: &[(&str, &str)] = &[
6+
("standalone", "server"),
7+
("replicaset", "replica_set"),
8+
("sharded", "sharded_cluster"),
9+
];
10+
11+
fn main() {
12+
println!(
13+
"
14+
# Generated by generate-tasks. Do not manually edit!
15+
16+
tasks:"
17+
);
18+
for &(top_name, topology) in TOPOLOGIES.iter() {
19+
for &version in VERSIONS.iter() {
20+
println!(
21+
"
22+
- name: test-{version}-{top_name}
23+
tags: [{version}, {top_name}]
24+
commands:
25+
- func: \"bootstrap mongo-orchestration\"
26+
vars:
27+
MONGODB_VERSION: {version}
28+
TOPOLOGY: {topology}
29+
- func: \"run driver test suite\""
30+
);
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)