Skip to content

Commit 93a47fd

Browse files
authoredJun 25, 2021
feat(NODE-3191): backport versioned api (#2850)
1 parent 33e8248 commit 93a47fd

File tree

106 files changed

+6850
-563
lines changed

Some content is hidden

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

106 files changed

+6850
-563
lines changed
 

‎.evergreen/config.yml

+26-45
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
stepback: true
22
command_type: system
3-
exec_timeout_secs: 1200
3+
exec_timeout_secs: 1500
44
timeout:
55
- command: shell.exec
66
params:
@@ -79,6 +79,7 @@ functions:
7979
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} \
8080
AUTH=${AUTH} SSL=${SSL} \
8181
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \
82+
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \
8283
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
8384
- command: expansions.update
8485
params:
@@ -111,8 +112,10 @@ functions:
111112
rm -f ./prepare_client_encryption.sh
112113
fi
113114
114-
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} MONGODB_URI="${MONGODB_URI}" \
115-
NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 NO_EXIT=1 \
115+
MONGODB_URI="${MONGODB_URI}" \
116+
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} \
117+
MONGODB_API_VERSION="${MONGODB_API_VERSION}" \
118+
NODE_VERSION=${NODE_VERSION} SKIP_DEPS=${SKIP_DEPS|1} NO_EXIT=${NO_EXIT|1} \
116119
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
117120
run checks:
118121
- command: shell.exec
@@ -496,39 +499,6 @@ post:
496499
ignore:
497500
- '*.md'
498501
tasks:
499-
- name: test-latest-server
500-
tags:
501-
- latest
502-
- server
503-
commands:
504-
- func: install dependencies
505-
- func: bootstrap mongo-orchestration
506-
vars:
507-
VERSION: latest
508-
TOPOLOGY: server
509-
- func: run tests
510-
- name: test-latest-replica_set
511-
tags:
512-
- latest
513-
- replica_set
514-
commands:
515-
- func: install dependencies
516-
- func: bootstrap mongo-orchestration
517-
vars:
518-
VERSION: latest
519-
TOPOLOGY: replica_set
520-
- func: run tests
521-
- name: test-latest-sharded_cluster
522-
tags:
523-
- latest
524-
- sharded_cluster
525-
commands:
526-
- func: install dependencies
527-
- func: bootstrap mongo-orchestration
528-
vars:
529-
VERSION: latest
530-
TOPOLOGY: sharded_cluster
531-
- func: run tests
532502
- name: test-latest-server-unified
533503
tags:
534504
- latest
@@ -1144,6 +1114,23 @@ tasks:
11441114
- func: run tests
11451115
vars:
11461116
UNIFIED: 1
1117+
- name: test-latest-server-v1-api
1118+
tags:
1119+
- latest
1120+
- server
1121+
- v1-api
1122+
commands:
1123+
- func: install dependencies
1124+
- func: bootstrap mongo-orchestration
1125+
vars:
1126+
VERSION: latest
1127+
TOPOLOGY: server
1128+
REQUIRE_API_VERSION: '1'
1129+
- func: run tests
1130+
vars:
1131+
MONGODB_API_VERSION: '1'
1132+
UNIFIED: 1
1133+
NO_EXIT: ''
11471134
- name: test-atlas-connectivity
11481135
tags:
11491136
- atlas-connect
@@ -1562,9 +1549,6 @@ buildvariants:
15621549
expansions:
15631550
NODE_LTS_NAME: fermium
15641551
tasks: &ref_0
1565-
- test-latest-server
1566-
- test-latest-replica_set
1567-
- test-latest-sharded_cluster
15681552
- test-latest-server-unified
15691553
- test-latest-replica_set-unified
15701554
- test-latest-sharded_cluster-unified
@@ -1616,6 +1600,7 @@ buildvariants:
16161600
- test-2.6-server-unified
16171601
- test-2.6-replica_set-unified
16181602
- test-2.6-sharded_cluster-unified
1603+
- test-latest-server-v1-api
16191604
- test-atlas-connectivity
16201605
- test-auth-kerberos-legacy
16211606
- test-auth-kerberos-unified
@@ -1672,9 +1657,6 @@ buildvariants:
16721657
expansions:
16731658
NODE_LTS_NAME: fermium
16741659
tasks: &ref_1
1675-
- test-latest-server
1676-
- test-latest-replica_set
1677-
- test-latest-sharded_cluster
16781660
- test-latest-server-unified
16791661
- test-latest-replica_set-unified
16801662
- test-latest-sharded_cluster-unified
@@ -1726,6 +1708,7 @@ buildvariants:
17261708
- test-2.6-server-unified
17271709
- test-2.6-replica_set-unified
17281710
- test-2.6-sharded_cluster-unified
1711+
- test-latest-server-v1-api
17291712
- test-atlas-connectivity
17301713
- test-auth-kerberos-legacy
17311714
- test-auth-kerberos-unified
@@ -1859,9 +1842,6 @@ buildvariants:
18591842
NODE_LTS_NAME: fermium
18601843
CLIENT_ENCRYPTION: true
18611844
tasks: &ref_3
1862-
- test-latest-server
1863-
- test-latest-replica_set
1864-
- test-latest-sharded_cluster
18651845
- test-latest-server-unified
18661846
- test-latest-replica_set-unified
18671847
- test-latest-sharded_cluster-unified
@@ -1901,6 +1881,7 @@ buildvariants:
19011881
- test-3.2-server-unified
19021882
- test-3.2-replica_set-unified
19031883
- test-3.2-sharded_cluster-unified
1884+
- test-latest-server-v1-api
19041885
- test-atlas-connectivity
19051886
- test-auth-kerberos-legacy
19061887
- test-auth-kerberos-unified

‎.evergreen/config.yml.in

+6-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ command_type: system
1111
# Protect ourself against rogue test case, or curl gone wild, that runs forever
1212
# Good rule of thumb: the averageish length a task takes, times 5
1313
# That roughly accounts for variable system performance for various buildvariants
14-
exec_timeout_secs: 1200
14+
exec_timeout_secs: 1500
1515

1616
# What to do when evergreen hits the timeout (`post:` tasks are run automatically)
1717
timeout:
@@ -96,6 +96,7 @@ functions:
9696
MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} \
9797
AUTH=${AUTH} SSL=${SSL} \
9898
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \
99+
REQUIRE_API_VERSION=${REQUIRE_API_VERSION} \
99100
bash ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
100101
# run-orchestration generates expansion file with the MONGODB_URI for the cluster
101102
- command: expansions.update
@@ -130,8 +131,10 @@ functions:
130131
rm -f ./prepare_client_encryption.sh
131132
fi
132133

133-
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} MONGODB_URI="${MONGODB_URI}" \
134-
NODE_VERSION=${NODE_VERSION} SKIP_DEPS=1 NO_EXIT=1 \
134+
MONGODB_URI="${MONGODB_URI}" \
135+
AUTH=${AUTH} SSL=${SSL} UNIFIED=${UNIFIED} \
136+
MONGODB_API_VERSION="${MONGODB_API_VERSION}" \
137+
NODE_VERSION=${NODE_VERSION} SKIP_DEPS=${SKIP_DEPS|1} NO_EXIT=${NO_EXIT|1} \
135138
bash ${PROJECT_DIRECTORY}/.evergreen/run-tests.sh
136139

137140
"run checks":

0 commit comments

Comments
 (0)
Please sign in to comment.