Skip to content

Commit a1c8faa

Browse files
RUBY-3726 Use new toolchain (#2958)
--------- Co-authored-by: Dmitry Rybakov <dmitry@rybakov.eu>
1 parent 9ce8f90 commit a1c8faa

20 files changed

+197
-111
lines changed

.evergreen/config.yml

Lines changed: 18 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ functions:
179179
export AWS_DEFAULT_REGION="${fle_aws_region}"
180180
fi
181181
export CSOT_SPEC_TESTS=1
182-
TEST_CMD="bundle exec rspec spec/spec_tests/client_side_operations_timeout_spec.rb" \
182+
TEST_CMD="bundle exec rspec spec/spec_tests/client_side_operations_timeout_spec.rb --format Rfc::Riff --format RspecJunitFormatter --out tmp/rspec.xml" \
183183
.evergreen/run-tests.sh
184184
185185
"export FLE credentials":
@@ -341,7 +341,7 @@ functions:
341341
"upload test results":
342342
- command: attach.xunit_results
343343
params:
344-
file: ./src/rspec.xml
344+
file: ./src/tmp/*.xml
345345

346346
"delete private environment":
347347
- command: shell.exec
@@ -430,7 +430,7 @@ post:
430430
# Removed, causing timeouts
431431
# - func: "upload working dir"
432432
- func: "upload mo artifacts"
433-
# - func: "upload test results"
433+
- func: "upload test results"
434434
- func: "upload test results to s3"
435435

436436
task_groups:
@@ -761,11 +761,6 @@ axes:
761761
- id: "mongodb-version"
762762
display_name: MongoDB Version
763763
values:
764-
- id: "latest"
765-
display_name: "latest"
766-
variables:
767-
MONGODB_VERSION: "latest"
768-
CRYPT_SHARED_VERSION: "latest"
769764
- id: "8.0"
770765
display_name: "8.0"
771766
variables:
@@ -1064,7 +1059,7 @@ axes:
10641059
values:
10651060
- id: mmapv1
10661061
display_name: MMAPv1
1067-
run_on: ubuntu1804-small
1062+
run_on: ubuntu2004-small
10681063
variables:
10691064
MMAPV1: 'true'
10701065

@@ -1179,7 +1174,7 @@ buildvariants:
11791174
matrix_spec:
11801175
auth-and-ssl: ["auth-and-ssl", "noauth-and-nossl"]
11811176
ruby: "ruby-3.3"
1182-
mongodb-version: ["latest", "8.0", "7.0"]
1177+
mongodb-version: ["8.0", "7.0"]
11831178
topology: ["standalone", "replica-set", "sharded-cluster"]
11841179
os: ubuntu2204
11851180
display_name: ${auth-and-ssl} ${ruby} db-${mongodb-version} ${topology}
@@ -1189,7 +1184,7 @@ buildvariants:
11891184
- matrix_name: "mongo-recent"
11901185
matrix_spec:
11911186
ruby: ["ruby-3.3", "ruby-3.2", "jruby-9.4"]
1192-
mongodb-version: ["latest", "8.0", "7.0"]
1187+
mongodb-version: ["8.0", "7.0"]
11931188
topology: ["standalone", "replica-set", "sharded-cluster"]
11941189
os: ubuntu2204
11951190
display_name: "${mongodb-version} ${os} ${topology} ${auth-and-ssl} ${ruby}"
@@ -1208,28 +1203,18 @@ buildvariants:
12081203

12091204
- matrix_name: "mongo-5.x"
12101205
matrix_spec:
1211-
ruby: ["ruby-3.3", "ruby-3.2", "jruby-9.4"]
1206+
ruby: ["ruby-3.3", "ruby-3.2"]
12121207
mongodb-version: ['5.0']
12131208
topology: ["standalone", "replica-set", "sharded-cluster"]
1214-
os: ubuntu1804
1209+
os: ubuntu2004
12151210
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
12161211
tasks:
12171212
- name: "test-mlaunch"
12181213

12191214
- matrix_name: "mongo-4.x"
12201215
matrix_spec:
12211216
ruby: ["ruby-3.0", "ruby-2.7"]
1222-
mongodb-version: ['4.4', '4.2', '4.0']
1223-
topology: ["standalone", "replica-set", "sharded-cluster"]
1224-
os: ubuntu1804
1225-
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
1226-
tasks:
1227-
- name: "test-mlaunch"
1228-
1229-
- matrix_name: "mongo-3.6"
1230-
matrix_spec:
1231-
ruby: "ruby-2.7"
1232-
mongodb-version: ['3.6']
1217+
mongodb-version: ['4.4', '4.2']
12331218
topology: ["standalone", "replica-set", "sharded-cluster"]
12341219
os: ubuntu1804
12351220
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
@@ -1301,17 +1286,6 @@ buildvariants:
13011286
tasks:
13021287
- name: "test-mlaunch"
13031288

1304-
- matrix_name: mmapv1
1305-
matrix_spec:
1306-
ruby: "ruby-2.7"
1307-
mongodb-version: ['3.6', '4.0']
1308-
topology: ["standalone", "replica-set", "sharded-cluster"]
1309-
storage-engine: mmapv1
1310-
os: ubuntu1804
1311-
display_name: "${mongodb-version} ${topology} mmapv1 ${ruby}"
1312-
tasks:
1313-
- name: "test-mlaunch"
1314-
13151289
- matrix_name: "lint"
13161290
matrix_spec:
13171291
lint: on
@@ -1349,7 +1323,7 @@ buildvariants:
13491323
matrix_spec:
13501324
stress: on
13511325
ruby: "ruby-2.7"
1352-
mongodb-version: ['4.2', '4.0', '3.6']
1326+
mongodb-version: ['4.4', '4.2']
13531327
topology: replica-set
13541328
os: ubuntu1804
13551329
display_name: "${mongodb-version} ${topology} stress ${ruby}"
@@ -1798,10 +1772,11 @@ buildvariants:
17981772
tasks:
17991773
- name: test-atlas
18001774

1801-
- matrix_name: "aws-lambda"
1802-
matrix_spec:
1803-
ruby: 'ruby-3.2'
1804-
os: ubuntu2204
1805-
display_name: "AWS Lambda"
1806-
tasks:
1807-
- name: test_aws_lambda_task_group
1775+
# https://jira.mongodb.org/browse/RUBY-3311
1776+
# - matrix_name: "aws-lambda"
1777+
# matrix_spec:
1778+
# ruby: 'ruby-3.2'
1779+
# os: ubuntu2204
1780+
# display_name: "AWS Lambda"
1781+
# tasks:
1782+
# - name: test_aws_lambda_task_group

.evergreen/config/axes.yml.erb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ axes:
1313
- id: "mongodb-version"
1414
display_name: MongoDB Version
1515
values:
16-
- id: "latest"
17-
display_name: "latest"
18-
variables:
19-
MONGODB_VERSION: "latest"
20-
CRYPT_SHARED_VERSION: "latest"
2116
- id: "8.0"
2217
display_name: "8.0"
2318
variables:
@@ -314,7 +309,7 @@ axes:
314309
values:
315310
- id: mmapv1
316311
display_name: MMAPv1
317-
run_on: ubuntu1804-small
312+
run_on: ubuntu2004-small
318313
variables:
319314
MMAPV1: 'true'
320315

.evergreen/config/common.yml.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ functions:
176176
export AWS_DEFAULT_REGION="${fle_aws_region}"
177177
fi
178178
export CSOT_SPEC_TESTS=1
179-
TEST_CMD="bundle exec rspec spec/spec_tests/client_side_operations_timeout_spec.rb" \
179+
TEST_CMD="bundle exec rspec spec/spec_tests/client_side_operations_timeout_spec.rb --format Rfc::Riff --format RspecJunitFormatter --out tmp/rspec.xml" \
180180
.evergreen/run-tests.sh
181181

182182
"export FLE credentials":
@@ -338,7 +338,7 @@ functions:
338338
"upload test results":
339339
- command: attach.xunit_results
340340
params:
341-
file: ./src/rspec.xml
341+
file: ./src/tmp/*.xml
342342

343343
"delete private environment":
344344
- command: shell.exec
@@ -427,7 +427,7 @@ post:
427427
# Removed, causing timeouts
428428
# - func: "upload working dir"
429429
- func: "upload mo artifacts"
430-
# - func: "upload test results"
430+
- func: "upload test results"
431431
- func: "upload test results to s3"
432432

433433
task_groups:

.evergreen/config/standard.yml.erb

Lines changed: 17 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
# these are used for testing against a few recent ruby versions
99
recent_rubies = %w( ruby-3.3 ruby-3.2 jruby-9.4 )
1010

11-
# this is a list of the most most recent 3.x and 2.x MRI ruby versions
11+
recent_mri_rubies = %w( ruby-3.3 ruby-3.2 )
12+
13+
# this is a list of the most recent 3.x and 2.x MRI ruby versions
1214
sample_mri_rubies = %w( ruby-3.3 ruby-2.7 )
1315

1416
# as above, but including the most recent JRuby release
@@ -33,12 +35,8 @@
3335
# The latest stable version of MongoDB
3436
latest_stable_mdb = "8.0".inspect # so it gets quoted as a string
3537

36-
# A few of the most recent MongoDB versions
37-
actual_and_upcoming_mdb = %w( latest 8.0 7.0 )
3838

3939
recent_mdb = %w( 8.0 7.0 )
40-
41-
all_dbs = %w(latest 8.0 7.0 6.0 5.0 4.4 4.2 4.0 3.6)
4240
%>
4341

4442
buildvariants:
@@ -56,7 +54,7 @@ buildvariants:
5654
matrix_spec:
5755
auth-and-ssl: ["auth-and-ssl", "noauth-and-nossl"]
5856
ruby: <%= latest_ruby %>
59-
mongodb-version: <%= actual_and_upcoming_mdb %>
57+
mongodb-version: <%= recent_mdb %>
6058
topology: <%= topologies %>
6159
os: ubuntu2204
6260
display_name: ${auth-and-ssl} ${ruby} db-${mongodb-version} ${topology}
@@ -66,7 +64,7 @@ buildvariants:
6664
- matrix_name: "mongo-recent"
6765
matrix_spec:
6866
ruby: <%= recent_rubies %>
69-
mongodb-version: <%= actual_and_upcoming_mdb %>
67+
mongodb-version: <%= recent_mdb %>
7068
topology: <%= topologies %>
7169
os: ubuntu2204
7270
display_name: "${mongodb-version} ${os} ${topology} ${auth-and-ssl} ${ruby}"
@@ -85,28 +83,18 @@ buildvariants:
8583

8684
- matrix_name: "mongo-5.x"
8785
matrix_spec:
88-
ruby: <%= recent_rubies %>
86+
ruby: <%= recent_mri_rubies %>
8987
mongodb-version: ['5.0']
9088
topology: <%= topologies %>
91-
os: ubuntu1804
89+
os: ubuntu2004
9290
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
9391
tasks:
9492
- name: "test-mlaunch"
9593

9694
- matrix_name: "mongo-4.x"
9795
matrix_spec:
9896
ruby: <%= older_rubies %>
99-
mongodb-version: ['4.4', '4.2', '4.0']
100-
topology: <%= topologies %>
101-
os: ubuntu1804
102-
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
103-
tasks:
104-
- name: "test-mlaunch"
105-
106-
- matrix_name: "mongo-3.6"
107-
matrix_spec:
108-
ruby: <%= supported_mri_ruby_2 %>
109-
mongodb-version: ['3.6']
97+
mongodb-version: ['4.4', '4.2']
11098
topology: <%= topologies %>
11199
os: ubuntu1804
112100
display_name: "${mongodb-version} ${topology} ${auth-and-ssl} ${ruby}"
@@ -178,17 +166,6 @@ buildvariants:
178166
tasks:
179167
- name: "test-mlaunch"
180168

181-
- matrix_name: mmapv1
182-
matrix_spec:
183-
ruby: <%= supported_mri_ruby_2 %>
184-
mongodb-version: ['3.6', '4.0']
185-
topology: <%= topologies %>
186-
storage-engine: mmapv1
187-
os: ubuntu1804
188-
display_name: "${mongodb-version} ${topology} mmapv1 ${ruby}"
189-
tasks:
190-
- name: "test-mlaunch"
191-
192169
- matrix_name: "lint"
193170
matrix_spec:
194171
lint: on
@@ -226,7 +203,7 @@ buildvariants:
226203
matrix_spec:
227204
stress: on
228205
ruby: <%= supported_mri_ruby_2 %>
229-
mongodb-version: ['4.2', '4.0', '3.6']
206+
mongodb-version: ['4.4', '4.2']
230207
topology: replica-set
231208
os: ubuntu1804
232209
display_name: "${mongodb-version} ${topology} stress ${ruby}"
@@ -523,10 +500,11 @@ buildvariants:
523500
tasks:
524501
- name: test-atlas
525502

526-
- matrix_name: "aws-lambda"
527-
matrix_spec:
528-
ruby: 'ruby-3.2'
529-
os: ubuntu2204
530-
display_name: "AWS Lambda"
531-
tasks:
532-
- name: test_aws_lambda_task_group
503+
# https://jira.mongodb.org/browse/RUBY-3311
504+
# - matrix_name: "aws-lambda"
505+
# matrix_spec:
506+
# ruby: 'ruby-3.2'
507+
# os: ubuntu2204
508+
# display_name: "AWS Lambda"
509+
# tasks:
510+
# - name: test_aws_lambda_task_group

.evergreen/run-tests-atlas-full.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,27 @@ set -ex
88

99
set_env_vars
1010
set_env_python
11-
set_env_ruby
11+
12+
# Install rbenv and download the requested ruby version
13+
rm -rf ~/.rbenv
14+
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
15+
rm -rf ~/.rbenv/versions/
16+
curl --retry 3 -fL http://boxes.10gen.com/build/toolchain-drivers/mongo-ruby-toolchain/library/`host_distro`/$RVM_RUBY.tar.xz |tar -xC $HOME/.rbenv/ -Jf -
17+
export PATH="$HOME/.rbenv/bin:$PATH"
18+
eval "$(rbenv init - bash)"
19+
export FULL_RUBY_VERSION=$(ls ~/.rbenv/versions | head -n1)
20+
rbenv global $FULL_RUBY_VERSION
21+
22+
export JAVA_HOME=/opt/java/jdk21
23+
export JAVACMD=$JAVA_HOME/bin/java
1224

1325
bundle_install
1426

1527
ATLAS_URI=$MONGODB_URI \
1628
KILL_ALL_SERVER_SESSIONS=0 \
1729
EXAMPLE_TIMEOUT=600 \
18-
bundle exec rspec -fd spec/integration/search_indexes_prose_spec.rb
30+
bundle exec rspec -fd spec/integration/search_indexes_prose_spec.rb \
31+
--format Rfc::Riff --format RspecJunitFormatter --out tmp/rspec.xml
1932

2033
test_status=$?
2134

.evergreen/run-tests-atlas.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,25 @@ set -ex
88

99
set_env_vars
1010
set_env_python
11-
set_env_ruby
11+
12+
# Install rbenv and download the requested ruby version
13+
rm -rf ~/.rbenv
14+
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
15+
rm -rf ~/.rbenv/versions/
16+
curl --retry 3 -fL http://boxes.10gen.com/build/toolchain-drivers/mongo-ruby-toolchain/library/`host_distro`/$RVM_RUBY.tar.xz |tar -xC $HOME/.rbenv/ -Jf -
17+
export PATH="$HOME/.rbenv/bin:$PATH"
18+
eval "$(rbenv init - bash)"
19+
export FULL_RUBY_VERSION=$(ls ~/.rbenv/versions | head -n1)
20+
rbenv global $FULL_RUBY_VERSION
21+
22+
export JAVA_HOME=/opt/java/jdk21
23+
export JAVACMD=$JAVA_HOME/bin/java
1224

1325
bundle_install
1426

1527
echo "Running specs"
1628

1729
export ATLAS_TESTING=1
1830

19-
bundle exec rspec spec/atlas -fd
31+
bundle exec rspec spec/atlas \
32+
--format Rfc::Riff --format RspecJunitFormatter --out tmp/rspec.xml

.evergreen/run-tests-azure.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,19 @@ set -ex
88

99
set_env_vars
1010
set_env_python
11-
set_env_ruby
11+
12+
# Install rbenv and download the requested ruby version
13+
rm -rf ~/.rbenv
14+
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
15+
rm -rf ~/.rbenv/versions/
16+
curl --retry 3 -fL http://boxes.10gen.com/build/toolchain-drivers/mongo-ruby-toolchain/library/`host_distro`/$RVM_RUBY.tar.xz |tar -xC $HOME/.rbenv/ -Jf -
17+
export PATH="$HOME/.rbenv/bin:$PATH"
18+
eval "$(rbenv init - bash)"
19+
export FULL_RUBY_VERSION=$(ls ~/.rbenv/versions | head -n1)
20+
rbenv global $FULL_RUBY_VERSION
21+
22+
export JAVA_HOME=/opt/java/jdk21
23+
export JAVACMD=$JAVA_HOME/bin/java
1224

1325
sudo apt-get -y install libyaml-dev cmake
1426

0 commit comments

Comments
 (0)