Skip to content

Commit aac2245

Browse files
committed
Merge branch 'master' into pr-5061
* master: MONGOID-5098 Bug fix: Range.mongoize should mongoize its members (mongodb#5108) MONGOID-5212 Support for Decimal128 type (mongodb#5125) MONGOID-5213 Document changes to BigDecimal type and addition of global flag (mongodb#5126) MONGOID-5209 Document "Custom Field Options" functionality + various docs improvements (mongodb#5120) MONGOID-5193 rails 7 support (mongodb#5122) Fix default topology name - should be standalone (mongodb#5130) Update MRSS (mongodb#5129) MONGOID-5207 Test Ruby 3.1 on Evergreen (mongodb#5123) MONGOID-5186 .with_scope should restore previous scope (mongodb#5127) MONGOID-5161 - [Documentation Only] Clarify the policy for working with . and $ named fields which were introduced in MongoDB 5.0 (mongodb#5051)
2 parents 1069e27 + f863870 commit aac2245

File tree

32 files changed

+2073
-497
lines changed

32 files changed

+2073
-497
lines changed

.evergreen/config.yml

Lines changed: 78 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ axes:
420420
display_name: ruby-3.0
421421
variables:
422422
RVM_RUBY: "ruby-3.0"
423+
- id: "ruby-3.1"
424+
display_name: ruby-3.1
425+
variables:
426+
RVM_RUBY: "ruby-3.1"
423427
- id: "ruby-head"
424428
display_name: ruby-head
425429
variables:
@@ -440,10 +444,15 @@ axes:
440444
- id: ubuntu-18.04
441445
display_name: "Ubuntu 18.04"
442446
run_on: ubuntu1804-small
443-
447+
- id: ubuntu-20.04
448+
display_name: "Ubuntu 20.04"
449+
run_on: ubuntu2004-small
444450
- id: rhel70
445451
display_name: "RHEL 7.0"
446452
run_on: rhel70-small
453+
- id: rhel80
454+
display_name: "RHEL 8.0"
455+
run_on: rhel80-small
447456
- id: "driver"
448457
display_name: Driver Version
449458
values:
@@ -483,6 +492,10 @@ axes:
483492
display_name: "Driver-min (JRuby)"
484493
variables:
485494
DRIVER: "min-jruby"
495+
- id: bson-min
496+
display_name: "BSON-min"
497+
variables:
498+
DRIVER: "bson-min"
486499
- id: "rails"
487500
display_name: Rails Version
488501
values:
@@ -506,6 +519,10 @@ axes:
506519
display_name: "Rails 6.1"
507520
variables:
508521
RAILS: "6.1"
522+
- id: "7.0"
523+
display_name: "Rails 7.0"
524+
variables:
525+
RAILS: "7.0"
509526
- id: "i18n"
510527
display_name: I18n version
511528
values:
@@ -531,15 +548,27 @@ axes:
531548
APP_TESTS: yes
532549

533550
buildvariants:
551+
- matrix_name: "ruby-3.1"
552+
matrix_spec:
553+
ruby: ["ruby-3.1"]
554+
driver: ["current"]
555+
topology: '*'
556+
mongodb-version: ['5.0']
557+
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
558+
run_on:
559+
- ubuntu2004-small
560+
tasks:
561+
- name: "test"
562+
534563
- matrix_name: "ruby-3.0"
535564
matrix_spec:
536565
ruby: ["ruby-3.0"]
537566
driver: ["current"]
538-
topology: '*'
567+
topology: ['replica-set']
539568
mongodb-version: ['5.0']
540-
display_name: "${ruby}, ${driver}, ${rails}, ${mongodb-version}, ${topology}"
569+
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
541570
run_on:
542-
- ubuntu1804-small
571+
- ubuntu2004-small
543572
tasks:
544573
- name: "test"
545574

@@ -571,19 +600,19 @@ buildvariants:
571600
matrix_spec:
572601
ruby: ["ruby-2.6"]
573602
driver: ["current"]
574-
topology: '*'
603+
topology: ['replica-set']
575604
mongodb-version: ['4.0']
576605
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
577606
run_on:
578-
- ubuntu1804-small
607+
- ubuntu1604-small
579608
tasks:
580609
- name: "test"
581610

582611
- matrix_name: "ruby-2.5"
583612
matrix_spec:
584613
ruby: ["ruby-2.5"]
585614
driver: ["current"]
586-
topology: '*'
615+
topology: ['replica-set']
587616
mongodb-version: ['3.6']
588617
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
589618
run_on:
@@ -594,12 +623,12 @@ buildvariants:
594623
- matrix_name: "driver-upcoming"
595624
matrix_spec:
596625
driver: [master, stable]
597-
ruby: ["ruby-3.0"]
626+
ruby: ["ruby-3.1"]
598627
mongodb-version: "5.0"
599628
topology: ['replica-set', 'sharded-cluster']
600629
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
601630
run_on:
602-
- rhel70-small
631+
- rhel80-small
603632
tasks:
604633
- name: "test"
605634

@@ -627,6 +656,31 @@ buildvariants:
627656
tasks:
628657
- name: "test"
629658

659+
- matrix_name: "rails-7"
660+
matrix_spec:
661+
ruby: ["ruby-3.0"]
662+
driver: ["current"]
663+
mongodb-version: "5.0"
664+
topology: "standalone"
665+
rails: ['7.0']
666+
display_name: "${rails}, ${driver}, ${mongodb-version}"
667+
run_on:
668+
- rhel70-small
669+
tasks:
670+
- name: "test"
671+
672+
- matrix_name: "bson-min"
673+
matrix_spec:
674+
driver: [min]
675+
ruby: ["ruby-2.7"]
676+
mongodb-version: "5.0"
677+
topology: "standalone"
678+
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
679+
run_on:
680+
- ubuntu1804-small
681+
tasks:
682+
- name: "test"
683+
630684
- matrix_name: "rails-6"
631685
matrix_spec:
632686
ruby: ["ruby-3.0"]
@@ -636,7 +690,7 @@ buildvariants:
636690
rails: ['6.0', '6.1']
637691
display_name: "${rails}, ${driver}, ${mongodb-version}"
638692
run_on:
639-
- rhel70-small
693+
- rhel80-small
640694
tasks:
641695
- name: "test"
642696

@@ -680,19 +734,20 @@ buildvariants:
680734
tasks:
681735
- name: "test"
682736

683-
- matrix_name: app-tests-ruby-3.0
684-
matrix_spec:
685-
ruby: ruby-3.0
686-
driver: ["current"]
687-
mongodb-version: '5.0'
688-
topology: standalone
689-
app-tests: yes
690-
rails: ['6.0', '6.1']
691-
display_name: "app tests ${driver}, ${ruby}, ${rails}"
692-
run_on:
693-
- ubuntu1804-small
694-
tasks:
695-
- name: "test"
737+
# https://jira.mongodb.org/browse/MONGOID-5216
738+
# - matrix_name: app-tests-ruby-3
739+
# matrix_spec:
740+
# ruby: ["ruby-3.0", "ruby-3.1"]
741+
# driver: ["current"]
742+
# mongodb-version: '5.0'
743+
# topology: standalone
744+
# app-tests: yes
745+
# rails: ['6.0', '6.1']
746+
# display_name: "app tests ${driver}, ${ruby}, ${rails}"
747+
# run_on:
748+
# - ubuntu2004-small
749+
# tasks:
750+
# - name: "test"
696751

697752
- matrix_name: app-tests-ruby-2.7
698753
matrix_spec:

.evergreen/functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set_env_vars() {
99
AUTH=${AUTH:-noauth}
1010
SSL=${SSL:-nossl}
1111
MONGODB_URI=${MONGODB_URI:-}
12-
TOPOLOGY=${TOPOLOGY:-server}
12+
TOPOLOGY=${TOPOLOGY:-standalone}
1313
DRIVERS_TOOLS=${DRIVERS_TOOLS:-}
1414

1515
if [ "$AUTH" != "noauth" ]; then

.evergreen/make-github-actions

100644100755
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
# TODO: Support i18n-fallbacks test
55
# TODO: Support app-tests tests
66

7+
# Note on topology: server:
8+
# The GH actions use mongo-orchestration, which uses a "server" topology for
9+
# the standalone one. See transform_node! below for the mapping of all
10+
# topologies.
11+
712
require 'fileutils'
13+
require 'active_support'
814
require 'active_support/dependencies/autoload'
915
require 'active_support/core_ext'
1016
require 'yaml'
@@ -240,7 +246,7 @@ class Transmogrifier
240246

241247
def step_mongodb
242248
{
243-
id: "start-mongodb"
249+
id: "start-mongodb",
244250
name: "start mongodb",
245251
uses: "mongodb-labs/drivers-evergreen-tools@master",
246252
with: {

.evergreen/run-tests.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ elif test "$DRIVER" = "oldstable"; then
6666
elif test "$DRIVER" = "min"; then
6767
bundle install --gemfile=gemfiles/driver_min.gemfile
6868
BUNDLE_GEMFILE=gemfiles/driver_min.gemfile
69+
elif test "$DRIVER" = "bson-min"; then
70+
bundle install --gemfile=gemfiles/bson_min.gemfile
71+
BUNDLE_GEMFILE=gemfiles/bson_min.gemfile
6972
elif test "$DRIVER" = "stable-jruby"; then
7073
bundle install --gemfile=gemfiles/driver_stable_jruby.gemfile
7174
BUNDLE_GEMFILE=gemfiles/driver_stable_jruby.gemfile
@@ -104,7 +107,7 @@ elif test -n "$APP_TESTS"; then
104107
bash $HOME/n stable
105108
export PATH=$HOME/.n/bin:$PATH
106109
npm -g install yarn
107-
110+
108111
bundle exec rspec spec/integration/app_spec.rb
109112
else
110113
bundle exec rake ci

.github/workflows/test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,46 @@ jobs:
178178
i18n:
179179
gemfile: gemfiles/driver_min.gemfile
180180
experimental: false
181+
- mongodb: '5.0'
182+
ruby: ruby-3.1
183+
topology: server
184+
os: ubuntu-20.04
185+
task: test
186+
driver: current
187+
rails: '7.0'
188+
i18n:
189+
gemfile: gemfiles/rails-7.0.gemfile
190+
experimental: false
191+
- mongodb: '5.0'
192+
ruby: ruby-3.1
193+
topology: server
194+
os: ubuntu-20.04
195+
task: test
196+
driver: current
197+
rails: '6.1'
198+
i18n:
199+
gemfile: gemfiles/rails-6.1.gemfile
200+
experimental: false
201+
- mongodb: '5.0'
202+
ruby: ruby-3.0
203+
topology: server
204+
os: ubuntu-20.04
205+
task: test
206+
driver: current
207+
rails: '7.0'
208+
i18n:
209+
gemfile: gemfiles/rails-7.0.gemfile
210+
experimental: false
211+
- mongodb: '5.0'
212+
ruby: ruby-3.0
213+
topology: server
214+
os: ubuntu-20.04
215+
task: test
216+
driver: current
217+
rails: '6.1'
218+
i18n:
219+
gemfile: gemfiles/rails-6.1.gemfile
220+
experimental: false
181221
- mongodb: '5.0'
182222
ruby: ruby-3.0
183223
topology: server

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ tutorials and the reference.
77
To build the documentation locally for review, install `sphinx` and
88
`sphinx-book-theme`, then execute `make html` in this directory:
99

10-
pip install sphinx sphinx-book-theme
10+
pip install 'sphinx<4.3' sphinx-book-theme
1111
make html
1212

13+
Note: sphinx 4.3 is currently breaking when trying to render Mongoid
14+
documentation.

0 commit comments

Comments
 (0)