Skip to content

Commit 31e5924

Browse files
committed
Merge remote-tracking branch 'remotes/origin/master' into MONGOID-5336
2 parents c893b8f + 8a9c638 commit 31e5924

File tree

43 files changed

+740
-153
lines changed

Some content is hidden

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

43 files changed

+740
-153
lines changed

.evergreen/config.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ buildvariants:
620620
topology: ['replica-set', 'sharded-cluster']
621621
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
622622
run_on:
623-
- rhel80-small
623+
- ubuntu2004-small
624624
tasks:
625625
- name: "test"
626626

@@ -632,7 +632,7 @@ buildvariants:
632632
topology: ['replica-set', 'sharded-cluster']
633633
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
634634
run_on:
635-
- rhel70-small
635+
- ubuntu1804-small
636636
tasks:
637637
- name: "test"
638638

@@ -657,7 +657,7 @@ buildvariants:
657657
rails: ['7.0']
658658
display_name: "${rails}, ${driver}, ${mongodb-version}"
659659
run_on:
660-
- rhel70-small
660+
- ubuntu2004-small
661661
tasks:
662662
- name: "test"
663663

@@ -695,7 +695,7 @@ buildvariants:
695695
rails: ['6.0', '6.1']
696696
display_name: "${rails}, ${driver}, ${mongodb-version}"
697697
run_on:
698-
- rhel80-small
698+
- ubuntu2004-small
699699
tasks:
700700
- name: "test"
701701

@@ -708,7 +708,7 @@ buildvariants:
708708
rails: ['5.1', '5.2']
709709
display_name: "${rails}, ${driver}, ${mongodb-version}"
710710
run_on:
711-
- rhel70-small
711+
- ubuntu1804-small
712712
tasks:
713713
- name: "test"
714714

@@ -721,7 +721,7 @@ buildvariants:
721721
i18n: '1.0'
722722
display_name: "i18n-1.0 ${rails}, ${driver}, ${mongodb-version}"
723723
run_on:
724-
- rhel70-small
724+
- ubuntu1804-small
725725
tasks:
726726
- name: "test"
727727

@@ -735,24 +735,23 @@ buildvariants:
735735
test-i18n-fallbacks: yes
736736
display_name: "i18n fallbacks ${rails}, ${driver}, ${mongodb-version}, ${i18n}"
737737
run_on:
738-
- rhel70-small
738+
- ubuntu1804-small
739739
tasks:
740740
- name: "test"
741741

742-
# https://jira.mongodb.org/browse/MONGOID-5216
743-
# - matrix_name: app-tests-ruby-3
744-
# matrix_spec:
745-
# ruby: ["ruby-3.0", "ruby-3.1"]
746-
# driver: ["current"]
747-
# mongodb-version: '5.0'
748-
# topology: standalone
749-
# app-tests: yes
750-
# rails: ['6.0', '6.1']
751-
# display_name: "app tests ${driver}, ${ruby}, ${rails}"
752-
# run_on:
753-
# - ubuntu2004-small
754-
# tasks:
755-
# - name: "test"
742+
- matrix_name: app-tests-ruby-3
743+
matrix_spec:
744+
ruby: ["ruby-3.0", "ruby-3.1"]
745+
driver: ["current"]
746+
mongodb-version: '5.0'
747+
topology: standalone
748+
app-tests: yes
749+
rails: ['6.0', '6.1']
750+
display_name: "app tests ${driver}, ${ruby}, ${rails}"
751+
run_on:
752+
- ubuntu2004-small
753+
tasks:
754+
- name: "test"
756755

757756
- matrix_name: app-tests-ruby-2.7
758757
matrix_spec:

.evergreen/run-tests.sh

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ arch=`host_distro`
1717

1818
set_fcv
1919
set_env_vars
20+
set_env_python
21+
set_env_node
2022
set_env_ruby
2123

24+
if test -n "$APP_TESTS"; then
25+
# Node from toolchain
26+
export PATH=/opt/node/bin:$PATH
27+
node -v
28+
fi
29+
2230
prepare_server $arch
2331

2432
install_mlaunch_virtualenv
@@ -34,13 +42,6 @@ launch_server "$dbdir"
3442

3543
uri_options="$URI_OPTIONS"
3644

37-
# This is needed because of ruby 3.0.0.
38-
# We should remove this when moving to 3.0.1
39-
# See https://jira.mongodb.org/browse/MONGOID-5115
40-
if test "$RVM_RUBY" = "ruby-3.0"; then
41-
gem update --system
42-
fi
43-
4445
which bundle
4546
bundle --version
4647

@@ -104,13 +105,10 @@ if test -n "$TEST_CMD"; then
104105
elif test -n "$TEST_I18N_FALLBACKS"; then
105106
bundle exec rspec spec/integration/i18n_fallbacks_spec.rb spec/mongoid/criteria_spec.rb spec/mongoid/contextual/mongo_spec.rb
106107
elif test -n "$APP_TESTS"; then
107-
# Need recent node for rails
108-
export N_PREFIX=$HOME/.n
109-
curl -o $HOME/n --retry 3 https://raw.githubusercontent.com/tj/n/master/bin/n
110-
bash $HOME/n stable
111-
export PATH=$HOME/.n/bin:$PATH
112-
npm -g install yarn
113-
108+
if test -z "$DOCKER_PRELOAD"; then
109+
./spec/shared/bin/install-node
110+
fi
111+
114112
bundle exec rspec spec/integration/app_spec.rb
115113
else
116114
bundle exec rake ci
@@ -124,6 +122,6 @@ if test -f tmp/rspec-all.json; then
124122
mv tmp/rspec-all.json tmp/rspec.json
125123
fi
126124

127-
python2 -m mtools.mlaunch.mlaunch stop --dir "$dbdir"
125+
python3 -m mtools.mlaunch.mlaunch stop --dir "$dbdir"
128126

129127
exit ${test_status}

docs/reference/configuration.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,13 @@ for details on driver options.
220220
# (default: 10)
221221
connect_timeout: 10
222222

223-
# The timeout to wait to execute operations on a socket before raising an error.
224-
# (default: nil)
223+
# How long to wait for a response for each operation sent to the
224+
# server. This timeout should be set to a value larger than the
225+
# processing time for the longest operation that will be executed
226+
# by the application. Note that this is a client-side timeout;
227+
# the server may continue executing an operation after the client
228+
# aborts it with the SocketTimeout exception.
229+
# (default: nil, meaning no timeout)
225230
socket_timeout: 5
226231

227232
# The name of the replica set to connect to. Servers provided as seeds that do

0 commit comments

Comments
 (0)