Skip to content

Commit

Permalink
Merge branch 'master' into pr-5061
Browse files Browse the repository at this point in the history
* 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)
  • Loading branch information
p committed Jan 21, 2022
2 parents 1069e27 + f863870 commit aac2245
Show file tree
Hide file tree
Showing 32 changed files with 2,073 additions and 497 deletions.
101 changes: 78 additions & 23 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,10 @@ axes:
display_name: ruby-3.0
variables:
RVM_RUBY: "ruby-3.0"
- id: "ruby-3.1"
display_name: ruby-3.1
variables:
RVM_RUBY: "ruby-3.1"
- id: "ruby-head"
display_name: ruby-head
variables:
Expand All @@ -440,10 +444,15 @@ axes:
- id: ubuntu-18.04
display_name: "Ubuntu 18.04"
run_on: ubuntu1804-small

- id: ubuntu-20.04
display_name: "Ubuntu 20.04"
run_on: ubuntu2004-small
- id: rhel70
display_name: "RHEL 7.0"
run_on: rhel70-small
- id: rhel80
display_name: "RHEL 8.0"
run_on: rhel80-small
- id: "driver"
display_name: Driver Version
values:
Expand Down Expand Up @@ -483,6 +492,10 @@ axes:
display_name: "Driver-min (JRuby)"
variables:
DRIVER: "min-jruby"
- id: bson-min
display_name: "BSON-min"
variables:
DRIVER: "bson-min"
- id: "rails"
display_name: Rails Version
values:
Expand All @@ -506,6 +519,10 @@ axes:
display_name: "Rails 6.1"
variables:
RAILS: "6.1"
- id: "7.0"
display_name: "Rails 7.0"
variables:
RAILS: "7.0"
- id: "i18n"
display_name: I18n version
values:
Expand All @@ -531,15 +548,27 @@ axes:
APP_TESTS: yes

buildvariants:
- matrix_name: "ruby-3.1"
matrix_spec:
ruby: ["ruby-3.1"]
driver: ["current"]
topology: '*'
mongodb-version: ['5.0']
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
- ubuntu2004-small
tasks:
- name: "test"

- matrix_name: "ruby-3.0"
matrix_spec:
ruby: ["ruby-3.0"]
driver: ["current"]
topology: '*'
topology: ['replica-set']
mongodb-version: ['5.0']
display_name: "${ruby}, ${driver}, ${rails}, ${mongodb-version}, ${topology}"
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
- ubuntu1804-small
- ubuntu2004-small
tasks:
- name: "test"

Expand Down Expand Up @@ -571,19 +600,19 @@ buildvariants:
matrix_spec:
ruby: ["ruby-2.6"]
driver: ["current"]
topology: '*'
topology: ['replica-set']
mongodb-version: ['4.0']
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
- ubuntu1804-small
- ubuntu1604-small
tasks:
- name: "test"

- matrix_name: "ruby-2.5"
matrix_spec:
ruby: ["ruby-2.5"]
driver: ["current"]
topology: '*'
topology: ['replica-set']
mongodb-version: ['3.6']
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
Expand All @@ -594,12 +623,12 @@ buildvariants:
- matrix_name: "driver-upcoming"
matrix_spec:
driver: [master, stable]
ruby: ["ruby-3.0"]
ruby: ["ruby-3.1"]
mongodb-version: "5.0"
topology: ['replica-set', 'sharded-cluster']
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
- rhel70-small
- rhel80-small
tasks:
- name: "test"

Expand Down Expand Up @@ -627,6 +656,31 @@ buildvariants:
tasks:
- name: "test"

- matrix_name: "rails-7"
matrix_spec:
ruby: ["ruby-3.0"]
driver: ["current"]
mongodb-version: "5.0"
topology: "standalone"
rails: ['7.0']
display_name: "${rails}, ${driver}, ${mongodb-version}"
run_on:
- rhel70-small
tasks:
- name: "test"

- matrix_name: "bson-min"
matrix_spec:
driver: [min]
ruby: ["ruby-2.7"]
mongodb-version: "5.0"
topology: "standalone"
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
run_on:
- ubuntu1804-small
tasks:
- name: "test"

- matrix_name: "rails-6"
matrix_spec:
ruby: ["ruby-3.0"]
Expand All @@ -636,7 +690,7 @@ buildvariants:
rails: ['6.0', '6.1']
display_name: "${rails}, ${driver}, ${mongodb-version}"
run_on:
- rhel70-small
- rhel80-small
tasks:
- name: "test"

Expand Down Expand Up @@ -680,19 +734,20 @@ buildvariants:
tasks:
- name: "test"

- matrix_name: app-tests-ruby-3.0
matrix_spec:
ruby: ruby-3.0
driver: ["current"]
mongodb-version: '5.0'
topology: standalone
app-tests: yes
rails: ['6.0', '6.1']
display_name: "app tests ${driver}, ${ruby}, ${rails}"
run_on:
- ubuntu1804-small
tasks:
- name: "test"
# https://jira.mongodb.org/browse/MONGOID-5216
# - matrix_name: app-tests-ruby-3
# matrix_spec:
# ruby: ["ruby-3.0", "ruby-3.1"]
# driver: ["current"]
# mongodb-version: '5.0'
# topology: standalone
# app-tests: yes
# rails: ['6.0', '6.1']
# display_name: "app tests ${driver}, ${ruby}, ${rails}"
# run_on:
# - ubuntu2004-small
# tasks:
# - name: "test"

- matrix_name: app-tests-ruby-2.7
matrix_spec:
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set_env_vars() {
AUTH=${AUTH:-noauth}
SSL=${SSL:-nossl}
MONGODB_URI=${MONGODB_URI:-}
TOPOLOGY=${TOPOLOGY:-server}
TOPOLOGY=${TOPOLOGY:-standalone}
DRIVERS_TOOLS=${DRIVERS_TOOLS:-}

if [ "$AUTH" != "noauth" ]; then
Expand Down
8 changes: 7 additions & 1 deletion .evergreen/make-github-actions
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
# TODO: Support i18n-fallbacks test
# TODO: Support app-tests tests

# Note on topology: server:
# The GH actions use mongo-orchestration, which uses a "server" topology for
# the standalone one. See transform_node! below for the mapping of all
# topologies.

require 'fileutils'
require 'active_support'
require 'active_support/dependencies/autoload'
require 'active_support/core_ext'
require 'yaml'
Expand Down Expand Up @@ -240,7 +246,7 @@ class Transmogrifier

def step_mongodb
{
id: "start-mongodb"
id: "start-mongodb",
name: "start mongodb",
uses: "mongodb-labs/drivers-evergreen-tools@master",
with: {
Expand Down
5 changes: 4 additions & 1 deletion .evergreen/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ elif test "$DRIVER" = "oldstable"; then
elif test "$DRIVER" = "min"; then
bundle install --gemfile=gemfiles/driver_min.gemfile
BUNDLE_GEMFILE=gemfiles/driver_min.gemfile
elif test "$DRIVER" = "bson-min"; then
bundle install --gemfile=gemfiles/bson_min.gemfile
BUNDLE_GEMFILE=gemfiles/bson_min.gemfile
elif test "$DRIVER" = "stable-jruby"; then
bundle install --gemfile=gemfiles/driver_stable_jruby.gemfile
BUNDLE_GEMFILE=gemfiles/driver_stable_jruby.gemfile
Expand Down Expand Up @@ -104,7 +107,7 @@ elif test -n "$APP_TESTS"; then
bash $HOME/n stable
export PATH=$HOME/.n/bin:$PATH
npm -g install yarn

bundle exec rspec spec/integration/app_spec.rb
else
bundle exec rake ci
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,46 @@ jobs:
i18n:
gemfile: gemfiles/driver_min.gemfile
experimental: false
- mongodb: '5.0'
ruby: ruby-3.1
topology: server
os: ubuntu-20.04
task: test
driver: current
rails: '7.0'
i18n:
gemfile: gemfiles/rails-7.0.gemfile
experimental: false
- mongodb: '5.0'
ruby: ruby-3.1
topology: server
os: ubuntu-20.04
task: test
driver: current
rails: '6.1'
i18n:
gemfile: gemfiles/rails-6.1.gemfile
experimental: false
- mongodb: '5.0'
ruby: ruby-3.0
topology: server
os: ubuntu-20.04
task: test
driver: current
rails: '7.0'
i18n:
gemfile: gemfiles/rails-7.0.gemfile
experimental: false
- mongodb: '5.0'
ruby: ruby-3.0
topology: server
os: ubuntu-20.04
task: test
driver: current
rails: '6.1'
i18n:
gemfile: gemfiles/rails-6.1.gemfile
experimental: false
- mongodb: '5.0'
ruby: ruby-3.0
topology: server
Expand Down
4 changes: 3 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ tutorials and the reference.
To build the documentation locally for review, install `sphinx` and
`sphinx-book-theme`, then execute `make html` in this directory:

pip install sphinx sphinx-book-theme
pip install 'sphinx<4.3' sphinx-book-theme
make html

Note: sphinx 4.3 is currently breaking when trying to render Mongoid
documentation.
Loading

0 comments on commit aac2245

Please sign in to comment.