Skip to content

Commit

Permalink
Add Ruby 3.2 support (#5644) (#5648)
Browse files Browse the repository at this point in the history
* Add Ruby 3.2 support (#5644)

* Bring egos back

* Revert "Bring egos back"

This reverts commit 6367f1f.

* Bump shared

* Remove mentions of Bignum and Fixnum. These were combined into Integer in Ruby 2.4 (#5470)

Co-authored-by: shields <[email protected]>

* Remove rspec-mock-diag

* Update specs

---------

Co-authored-by: Johnny Shields <[email protected]>
Co-authored-by: shields <[email protected]>
  • Loading branch information
3 people authored Jun 29, 2023
1 parent 6885e31 commit c95c485
Show file tree
Hide file tree
Showing 14 changed files with 1,036 additions and 392 deletions.
143 changes: 88 additions & 55 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,6 @@ functions:
git submodule update --init --recursive
"fetch egos":
- command: shell.exec
params:
working_dir: "src"
script: |
set -ex
curl -sfLo egos https://raw.githubusercontent.com/p-mongo/egos/master/egos
chmod +x ./egos
"create expansions":
# Make an evergreen exapanstion file with dynamic values
- command: shell.exec
Expand Down Expand Up @@ -282,7 +272,8 @@ functions:
DRIVER="${DRIVER}" \
I18N="${I18N}" \
TEST_I18N_FALLBACKS="${TEST_I18N_FALLBACKS}" \
./egos .evergreen/run-tests-docker.sh
FLE="${FLE}" \
.evergreen/run-tests-docker.sh
"fix absolute paths":
- command: shell.exec
Expand All @@ -305,7 +296,6 @@ functions:
pre:
- func: "fetch source"
- func: "fetch egos"
- func: "create expansions"
- func: "fix absolute paths"
- func: "install dependencies"
Expand All @@ -325,10 +315,18 @@ axes:
- id: "mongodb-version"
display_name: MongoDB Version
values:
- id: "latest"
display_name: "MongoDB Latest"
variables:
VERSION: "latest"
- id: "7.0"
display_name: "MongoDB 7.0"
variables:
VERSION: "7.0"
- id: "6.0"
display_name: "MongoDB 6.0"
variables:
VERSION: "5.0"
VERSION: "6.0"
- id: "5.3"
display_name: "MongoDB 5.3"
variables:
Expand Down Expand Up @@ -414,6 +412,10 @@ axes:
display_name: ruby-3.1
variables:
RVM_RUBY: "ruby-3.1"
- id: "ruby-3.2"
display_name: ruby-3.2
variables:
RVM_RUBY: "ruby-3.2"
- id: "ruby-head"
display_name: ruby-head
variables:
Expand All @@ -430,29 +432,24 @@ axes:
- id: "os"
display_name: OS
values:
- id: ubuntu-16.04
display_name: "Ubuntu 16.04"
run_on: ubuntu1604-small
variables:
DOCKER_DISTRO: ubuntu1604
- id: ubuntu-18.04
display_name: "Ubuntu 18.04"
run_on: ubuntu1804-small
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: ubuntu1804
- id: ubuntu-20.04
- id: ubuntu-22.04
display_name: "Ubuntu 20.04"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: ubuntu2004
- id: rhel70
display_name: "RHEL 7.0"
run_on: rhel70-small
DOCKER_DISTRO: ubuntu2204
- id: debian11
display_name: "Debian 11"
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: rhel70
DOCKER_DISTRO: debian11
- id: rhel80
display_name: "RHEL 8.0"
run_on: rhel80-small
run_on: ubuntu2004-small
variables:
DOCKER_DISTRO: rhel80

Expand Down Expand Up @@ -553,25 +550,48 @@ axes:
display_name: Yes
variables:
APP_TESTS: yes

- id: "fle"
display_name: FLE
values:
- id: "helper"
display_name: via LMC helper
variables:
FLE: helper
- id: "path"
display_name: via LMC path
variables:
FLE: path
buildvariants:
- matrix_name: "ruby-3.1"
- matrix_name: "ruby-3.2"
matrix_spec:
ruby: ["ruby-3.1"]
ruby: ["ruby-3.2"]
driver: ["current"]
topology: '*'
mongodb-version: ['6.0']
os: ubuntu-20.04
os: debian11
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"

- matrix_name: "mongodb-latest"
matrix_spec:
ruby: ["ruby-3.2"]
driver: ["current"]
topology: '*'
mongodb-version: ['latest']
os: debian11
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"

- matrix_name: "mongodb-5.3"
- matrix_name: "ruby-3.1"
matrix_spec:
ruby: ["ruby-3.1"]
driver: ["current"]
topology: '*'
mongodb-version: ['5.3']
os: ubuntu-20.04
mongodb-version: ['6.0']
os: ubuntu-22.04
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -582,7 +602,7 @@ buildvariants:
driver: ["current"]
topology: ['replica-set']
mongodb-version: ['5.0']
os: ubuntu-20.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -593,7 +613,7 @@ buildvariants:
driver: ["current"]
topology: ['replica-set', 'sharded-cluster']
mongodb-version: '5.0'
os: ubuntu-18.04
os: rhel80
display_name: "${jruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -604,7 +624,7 @@ buildvariants:
driver: ["current"]
topology: '*'
mongodb-version: ['4.4']
os: ubuntu-18.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -615,18 +635,18 @@ buildvariants:
driver: ["current"]
topology: ['replica-set']
mongodb-version: ['4.0']
os: ubuntu-16.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"

- matrix_name: "driver-upcoming"
matrix_spec:
driver: [master, stable]
ruby: ["ruby-3.1"]
mongodb-version: "5.0"
ruby: ["ruby-3.2"]
mongodb-version: "6.0"
topology: ['replica-set', 'sharded-cluster']
os: ubuntu-20.04
os: debian11
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -637,7 +657,7 @@ buildvariants:
ruby: ["ruby-2.6"]
mongodb-version: "4.0"
topology: ['replica-set', 'sharded-cluster']
os: ubuntu-18.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -648,19 +668,19 @@ buildvariants:
ruby: ["ruby-2.6"]
mongodb-version: "3.6"
topology: "standalone"
os: ubuntu-16.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"

- matrix_name: "rails-7"
matrix_spec:
ruby: ["ruby-3.0"]
ruby: ["ruby-3.2"]
driver: ["current"]
mongodb-version: "5.0"
mongodb-version: "6.0"
topology: "standalone"
rails: ['7.0']
os: ubuntu-20.04
os: debian11
display_name: "${rails}, ${driver}, ${mongodb-version}"
tasks:
- name: "test"
Expand All @@ -671,7 +691,7 @@ buildvariants:
ruby: ["ruby-2.7"]
mongodb-version: "5.0"
topology: "standalone"
os: ubuntu-18.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -682,7 +702,7 @@ buildvariants:
ruby: ["ruby-3.0"]
mongodb-version: "5.0"
topology: "standalone"
os: ubuntu-18.04
os: rhel80
display_name: "${ruby}, ${driver}, ${mongodb-version}, ${topology}"
tasks:
- name: "test"
Expand All @@ -692,10 +712,10 @@ buildvariants:
matrix_spec:
ruby: ["ruby-3.0"]
driver: ["current"]
mongodb-version: "5.0"
mongodb-version: "6.0"
topology: "standalone"
rails: ['6.0', '6.1']
os: ubuntu-20.04
os: rhel80
display_name: "${rails}, ${driver}, ${mongodb-version}"
tasks:
- name: "test"
Expand All @@ -707,7 +727,7 @@ buildvariants:
mongodb-version: "4.0"
topology: "standalone"
rails: ['5.2']
os: ubuntu-18.04
os: rhel80
display_name: "${rails}, ${driver}, ${mongodb-version}"
tasks:
- name: "test"
Expand All @@ -719,7 +739,7 @@ buildvariants:
mongodb-version: "4.4"
topology: "standalone"
i18n: '1.0'
os: ubuntu-18.04
os: rhel80
display_name: "i18n-1.0 ${rails}, ${driver}, ${mongodb-version}"
tasks:
- name: "test"
Expand All @@ -732,20 +752,20 @@ buildvariants:
topology: "standalone"
i18n: '*'
test-i18n-fallbacks: yes
os: ubuntu-18.04
os: rhel80
display_name: "i18n fallbacks ${rails}, ${driver}, ${mongodb-version}, ${i18n}"
tasks:
- name: "test"

- matrix_name: app-tests-ruby-3
matrix_spec:
ruby: ["ruby-3.0", "ruby-3.1"]
ruby: ["ruby-3.0", "ruby-3.1", "ruby-3.2"]
driver: ["current"]
mongodb-version: '5.0'
mongodb-version: '6.0'
topology: standalone
app-tests: yes
rails: ['6.0', '6.1', '7.0']
os: ubuntu-20.04
os: rhel80
display_name: "app tests ${driver}, ${ruby}, ${rails}"
tasks:
- name: "test"
Expand All @@ -758,7 +778,7 @@ buildvariants:
topology: standalone
app-tests: yes
rails: ['5.2']
os: ubuntu-18.04
os: rhel80
display_name: "app tests ${driver}, ${ruby}, ${rails}"
tasks:
- name: "test"
Expand All @@ -775,3 +795,16 @@ buildvariants:
display_name: "app tests ${driver}, ${jruby}"
tasks:
- name: "test"

- matrix_name: "auto-encryption"
matrix_spec:
ruby: ruby-3.1
driver: current
topology: replica-set
mongodb-version: ['6.0']
os: ubuntu-22.04
rails: ['7.0']
fle: helper
display_name: "FLE: ${rails}, ${driver}, ${mongodb-version}"
tasks:
- name: "test"
Loading

0 comments on commit c95c485

Please sign in to comment.