Skip to content

Commit 2135262

Browse files
Backport toolchain 7.5 (#6063)
1 parent b157e74 commit 2135262

File tree

15 files changed

+539
-171
lines changed

15 files changed

+539
-171
lines changed

.evergreen/config.yml

Lines changed: 234 additions & 53 deletions
Large diffs are not rendered by default.

.evergreen/config/axes.yml.erb

Lines changed: 70 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,62 @@ axes:
22
- id: "mongodb-version"
33
display_name: MongoDB Version
44
values:
5+
- id: "latest"
6+
display_name: "MongoDB Latest"
7+
variables:
8+
MONGODB_VERSION: "latest"
59
- id: "8.0"
610
display_name: "MongoDB 8.0"
711
variables:
8-
VERSION: "8.0"
12+
MONGODB_VERSION: "8.0"
913
- id: "7.0"
1014
display_name: "MongoDB 7.0"
1115
variables:
12-
VERSION: "7.0"
16+
MONGODB_VERSION: "7.0"
1317
- id: "6.0"
1418
display_name: "MongoDB 6.0"
1519
variables:
16-
VERSION: "6.0"
20+
MONGODB_VERSION: "6.0"
1721
- id: "5.3"
1822
display_name: "MongoDB 5.3"
1923
variables:
20-
VERSION: "5.3"
24+
MONGODB_VERSION: "5.3"
2125
- id: "5.0"
2226
display_name: "MongoDB 5.0"
2327
variables:
24-
VERSION: "5.0"
28+
MONGODB_VERSION: "5.0"
2529
- id: "4.4"
2630
display_name: "MongoDB 4.4"
2731
variables:
28-
VERSION: "4.4"
32+
MONGODB_VERSION: "4.4"
2933
- id: "4.2"
3034
display_name: "MongoDB 4.2"
3135
variables:
32-
VERSION: "4.2"
36+
MONGODB_VERSION: "4.2"
3337
- id: "4.0"
3438
display_name: "MongoDB 4.0"
3539
variables:
36-
VERSION: "4.0"
40+
MONGODB_VERSION: "4.0"
3741
- id: "3.6"
3842
display_name: "MongoDB 3.6"
3943
variables:
40-
VERSION: "3.6"
44+
MONGODB_VERSION: "3.6"
4145

4246
- id: "topology"
4347
display_name: Topology
4448
values:
45-
- id: "standalone"
49+
- id: "server"
4650
display_name: Standalone
4751
variables:
48-
TOPOLOGY: "standalone"
49-
- id: "replica-set"
52+
TOPOLOGY: "server"
53+
- id: "replica_set"
5054
display_name: Replica Set
5155
variables:
52-
TOPOLOGY: "replica-set"
53-
- id: "sharded-cluster"
56+
TOPOLOGY: "replica_set"
57+
- id: "sharded_cluster"
5458
display_name: Sharded Cluster
5559
variables:
56-
TOPOLOGY: "sharded-cluster"
57-
- id: "load-balanced"
58-
display_name: Load Balanced
59-
variables:
60-
TOPOLOGY: "load-balanced"
60+
TOPOLOGY: "sharded_cluster"
6161

6262
- id: "auth"
6363
display_name: Authentication
@@ -74,7 +74,7 @@ axes:
7474
- id: "ssl"
7575
display_name: SSL
7676
values:
77-
- id: "ssl"
77+
- id: "yes"
7878
display_name: SSL
7979
variables:
8080
SSL: "ssl"
@@ -98,23 +98,36 @@ axes:
9898
display_name: ruby-3.1
9999
variables:
100100
RVM_RUBY: "ruby-3.1"
101+
- id: "ruby-3.2"
102+
display_name: ruby-3.2
103+
variables:
104+
RVM_RUBY: "ruby-3.2"
105+
- id: "ruby-3.3"
106+
display_name: ruby-3.3
107+
variables:
108+
RVM_RUBY: "ruby-3.3"
109+
- id: "ruby-head"
110+
display_name: ruby-head
111+
variables:
112+
RVM_RUBY: "ruby-head"
101113

102114
- id: "jruby"
103115
display_name: JRuby Version
104116
values:
105-
- id: "jruby-9.3"
106-
display_name: jruby-9.3
117+
- id: "jruby-9.4"
118+
display_name: jruby-9.4
107119
variables:
108-
RVM_RUBY: "jruby-9.3"
120+
RVM_RUBY: "jruby-9.4"
109121

110122
- id: "os"
111123
display_name: OS
112124
values:
125+
- id: ubuntu-22.04
126+
display_name: "Ubuntu 22.04"
127+
run_on: ubuntu2204-small
113128
- id: ubuntu-20.04
114129
display_name: "Ubuntu 20.04"
115130
run_on: ubuntu2004-small
116-
variables:
117-
DOCKER_DISTRO: ubuntu2004
118131

119132
- id: "driver"
120133
display_name: Driver Version
@@ -167,6 +180,10 @@ axes:
167180
- id: "rails"
168181
display_name: Rails Version
169182
values:
183+
- id: master
184+
display_name: "Rails master"
185+
variables:
186+
RAILS: "master"
170187
- id: "6.0"
171188
display_name: "Rails 6.0"
172189
variables:
@@ -179,6 +196,14 @@ axes:
179196
display_name: "Rails 7.0"
180197
variables:
181198
RAILS: "7.0"
199+
- id: "7.1"
200+
display_name: "Rails 7.1"
201+
variables:
202+
RAILS: "7.1"
203+
- id: "8.0"
204+
display_name: "Rails 8.0"
205+
variables:
206+
RAILS: "8.0"
182207

183208
- id: "test-i18n-fallbacks"
184209
display_name: Test i18n fallbacks
@@ -187,3 +212,23 @@ axes:
187212
display_name: "i18n-fallbacks"
188213
variables:
189214
TEST_I18N_FALLBACKS: yes
215+
216+
- id: app-tests
217+
display_name: Mongoid application tests
218+
values:
219+
- id: yes
220+
display_name: Yes
221+
variables:
222+
APP_TESTS: yes
223+
224+
- id: "fle"
225+
display_name: FLE
226+
values:
227+
- id: "helper"
228+
display_name: via LMC helper
229+
variables:
230+
FLE: helper
231+
- id: "path"
232+
display_name: via LMC path
233+
variables:
234+
FLE: path

.evergreen/config/commands.yml.erb

Lines changed: 51 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,24 @@ functions:
1212

1313
git submodule update --init --recursive
1414

15+
if [ ! -d .mod ]; then
16+
mkdir -p .mod
17+
cd .mod
18+
git clone https://github.com/mongodb-labs/drivers-evergreen-tools
19+
fi
20+
21+
"fetch egos":
22+
- command: shell.exec
23+
params:
24+
working_dir: "src"
25+
script: |
26+
set -ex
27+
28+
curl -sfLo egos https://raw.githubusercontent.com/p-mongo/egos/master/egos
29+
chmod +x ./egos
30+
1531
"create expansions":
16-
# Make an evergreen exapansion file with dynamic values
32+
# Make an evergreen exapanstion file with dynamic values
1733
- command: shell.exec
1834
params:
1935
working_dir: "src"
@@ -52,7 +68,7 @@ functions:
5268
export PATH="$MONGODB_BINARIES:$PATH"
5369
export PROJECT="${project}"
5470

55-
export MONGODB_VERSION="${VERSION}"
71+
export MONGODB_VERSION="${MONGODB_VERSION}"
5672
export TOPOLOGY="${TOPOLOGY}"
5773
export SINGLE_MONGOS="${SINGLE_MONGOS}"
5874
export AUTH="${AUTH}"
@@ -73,6 +89,24 @@ functions:
7389
params:
7490
file: src/expansion.yml
7591

92+
bootstrap-mongo-orchestration:
93+
- command: shell.exec
94+
params:
95+
shell: "bash"
96+
script: |
97+
set -x
98+
${PREPARE_SHELL}
99+
100+
MONGODB_VERSION=${MONGODB_VERSION} \
101+
TOPOLOGY=${TOPOLOGY} \
102+
AUTH=${AUTH} \
103+
SSL=${SSL} \
104+
ORCHESTRATION_FILE=${ORCHESTRATION_FILE} \
105+
sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh
106+
- command: expansions.update
107+
params:
108+
file: mo-expansion.yml
109+
76110
"exec script" :
77111
- command: shell.exec
78112
type: test
@@ -233,7 +267,7 @@ functions:
233267
"upload test results":
234268
- command: attach.xunit_results
235269
params:
236-
file: ./src/rspec.xml
270+
file: ./src/tmp/*.xml
237271

238272
"run tests":
239273
- command: shell.exec
@@ -251,7 +285,10 @@ functions:
251285
DRIVER="${DRIVER}" \
252286
TEST_I18N_FALLBACKS="${TEST_I18N_FALLBACKS}" \
253287
FLE="${FLE}" \
254-
.evergreen/run-tests-docker.sh
288+
AUTH="${AUTH}" \
289+
SSL="${SSL}" \
290+
APP_TESTS="${APP_TESTS}" \
291+
.evergreen/run-tests.sh
255292

256293
"fix absolute paths":
257294
- command: shell.exec
@@ -262,7 +299,13 @@ functions:
262299
perl -p -i -e "s|ABSOLUTE_PATH_REPLACEMENT_TOKEN|${DRIVERS_TOOLS}|g" $filename
263300
done
264301

265-
"install dependencies":
302+
"setup system":
303+
- command: subprocess.exec
304+
params:
305+
binary: bash
306+
include_expansions_in_env: ["PROJECT_DIRECTORY"]
307+
args:
308+
- "${DRIVERS_TOOLS}/.evergreen/setup.sh"
266309
- command: shell.exec
267310
type: test
268311
params:
@@ -276,13 +319,13 @@ pre:
276319
- func: "fetch source"
277320
- func: "create expansions"
278321
- func: "fix absolute paths"
279-
- func: "install dependencies"
322+
- func: "setup system"
280323

281324
post:
282325
# Removed, causing timeouts
283326
# - func: "upload working dir"
284327
- func: "upload mo artifacts"
285-
# - func: "upload test results"
328+
- func: "upload test results"
286329
- func: "upload test results to s3"
287330

288331
task_groups:
@@ -333,6 +376,7 @@ task_groups:
333376
tasks:
334377
- name: "test"
335378
commands:
379+
- func: bootstrap-mongo-orchestration
336380
- func: "run tests"
337381
- name: "test-full-atlas-task"
338382
commands:

0 commit comments

Comments
 (0)