Skip to content

Commit

Permalink
Mongoid8 (#1860)
Browse files Browse the repository at this point in the history
* Update config for 2024

* support mongoid8

* only save artifact if one is there

* fix up some unit tests

* additional test updates

* update nokogiri

* update libraries

* only support QRDA III R1 and QRDA I R5.3

* update gems

* point to git for jquery-ui-rails not gem

* update fixtures

* remove obsolete QDM55 tests

* 2020 and 2021 bundle will no longer be supported

* more updates to unit tests

* update fixture for cucumber

* unit test update

* update vcrs

* Workaround for slow valueset loading

* additional workaround step

* remove cqm-execution-service-55 in CI

* remove calls to the cqm-execution-service-55

* with mongo v7
  • Loading branch information
dczulada committed Mar 18, 2024
1 parent 2d49a1b commit e20941e
Show file tree
Hide file tree
Showing 84 changed files with 571 additions and 651 deletions.
70 changes: 30 additions & 40 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ jobs:

runs-on: ubuntu-20.04

services:
mongodb:
image: mongo:7.0.6
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -92,17 +98,9 @@ jobs:
nvm install 16.19
nvm use stable
bundle install
git clone -b cypress_v6 https://github.com/projectcypress/cqm-execution-service.git /tmp/cqm-execution-service
yarn --cwd /tmp/cqm-execution-service install --only=production
yarn --cwd /tmp/cqm-execution-service start &
git clone -b cypress_v7 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service-56
yarn --cwd /tmp/cqm-execution-service-56 install --only=production
yarn --cwd /tmp/cqm-execution-service-56 start &
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz -O /tmp/mongodb.tgz
tar -xvf /tmp/mongodb.tgz
mkdir /tmp/data
${PWD}/mongodb-linux-x86_64-4.0.18/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
cp ./.travis/mongoid.yml ./config/mongoid.yml
- name: Run cucumber
uses: nick-fields/retry@v2
with:
Expand All @@ -122,6 +120,12 @@ jobs:

runs-on: ubuntu-20.04

services:
mongodb:
image: mongo:7.0.6
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -137,17 +141,9 @@ jobs:
nvm install 16.19
nvm use stable
bundle install
git clone -b cypress_v6 https://github.com/projectcypress/cqm-execution-service.git /tmp/cqm-execution-service
yarn --cwd /tmp/cqm-execution-service install --only=production
yarn --cwd /tmp/cqm-execution-service start &
git clone -b cypress_v7 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service-56
yarn --cwd /tmp/cqm-execution-service-56 install --only=production
yarn --cwd /tmp/cqm-execution-service-56 start &
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz -O /tmp/mongodb.tgz
tar -xvf /tmp/mongodb.tgz
mkdir /tmp/data
${PWD}/mongodb-linux-x86_64-4.0.18/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
cp ./.travis/mongoid.yml ./config/mongoid.yml
- name: Run cucumber
uses: nick-fields/retry@v2
with:
Expand All @@ -167,6 +163,12 @@ jobs:

runs-on: ubuntu-latest

services:
mongodb:
image: mongo:7.0.6
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -182,17 +184,9 @@ jobs:
nvm install 16.19
nvm use stable
bundle install
git clone -b cypress_v6 https://github.com/projectcypress/cqm-execution-service.git /tmp/cqm-execution-service
yarn --cwd /tmp/cqm-execution-service install --only=production
yarn --cwd /tmp/cqm-execution-service start &
git clone -b cypress_v7 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service-56
yarn --cwd /tmp/cqm-execution-service-56 install --only=production
yarn --cwd /tmp/cqm-execution-service-56 start &
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz -O /tmp/mongodb.tgz
tar -xvf /tmp/mongodb.tgz
mkdir /tmp/data
${PWD}/mongodb-linux-x86_64-4.0.18/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
cp ./.travis/mongoid.yml ./config/mongoid.yml
- name: Run Rake test
run: |
RUBYOPT="-W0"
Expand All @@ -209,6 +203,12 @@ jobs:

runs-on: ubuntu-latest

services:
mongodb:
image: mongo:7.0.6
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -224,17 +224,9 @@ jobs:
nvm install 16.19
nvm use stable
bundle install
git clone -b cypress_v6 https://github.com/projectcypress/cqm-execution-service.git /tmp/cqm-execution-service
yarn --cwd /tmp/cqm-execution-service install --only=production
yarn --cwd /tmp/cqm-execution-service start &
git clone -b cypress_v7 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service-56
yarn --cwd /tmp/cqm-execution-service-56 install --only=production
yarn --cwd /tmp/cqm-execution-service-56 start &
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz -O /tmp/mongodb.tgz
tar -xvf /tmp/mongodb.tgz
mkdir /tmp/data
${PWD}/mongodb-linux-x86_64-4.0.18/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
cp ./.travis/mongoid.yml ./config/mongoid.yml
- name: Run Rake test:jobs
run: |
RUBYOPT="-W0"
Expand Down Expand Up @@ -269,6 +261,12 @@ jobs:

runs-on: ubuntu-latest

services:
mongodb:
image: mongo:7.0.6
ports:
- 27017:27017

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
Expand All @@ -284,17 +282,9 @@ jobs:
nvm install 16.19
nvm use stable
bundle install
git clone -b cypress_v6 https://github.com/projectcypress/cqm-execution-service.git /tmp/cqm-execution-service
yarn --cwd /tmp/cqm-execution-service install --only=production
yarn --cwd /tmp/cqm-execution-service start &
git clone -b cypress_v7 https://github.com/projecttacoma/cqm-execution-service.git /tmp/cqm-execution-service-56
yarn --cwd /tmp/cqm-execution-service-56 install --only=production
yarn --cwd /tmp/cqm-execution-service-56 start &
wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-4.0.18.tgz -O /tmp/mongodb.tgz
tar -xvf /tmp/mongodb.tgz
mkdir /tmp/data
${PWD}/mongodb-linux-x86_64-4.0.18/bin/mongod --setParameter cursorTimeoutMillis=3600000 --setParameter maxBSONDepth=500 --dbpath /tmp/data --bind_ip 127.0.0.1 &> /dev/null &
cp ./.travis/mongoid.yml ./config/mongoid.yml
- name: Run Rake test
run: |
RUBYOPT="-W0"
Expand Down
15 changes: 8 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ ruby '3.2.2'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 7.0.0'

gem 'delayed_job_mongoid', '~> 2.3.0'
gem 'mongoid', '~> 7.5.0'
gem 'delayed_job_mongoid', '~> 3.0.0'
gem 'mongoid', '~> 8.1.0'

# gem 'mongoid', '~> 4.0.2'
gem 'bson'

gem 'mustache'
gem 'os'

gem 'cqm-models', git: 'https://github.com/projecttacoma/cqm-models', tag: 'cypress_v7.0.0'
gem 'cqm-parsers', '~> 4.1.0.2'
gem 'cqm-reports', git: 'https://github.com/projecttacoma/cqm-reports', tag: 'cypress_v7.2.0'
gem 'cqm-validators', '~> 4.0.4'
gem 'cqm-models', git: 'https://github.com/projecttacoma/cqm-models', branch: 'rails_7_mongoid_8_dsc'
gem 'cqm-parsers', git: 'https://github.com/projecttacoma/cqm-parsers', branch: 'mongoid8'
gem 'cqm-reports', git: 'https://github.com/projecttacoma/cqm-reports', branch: 'master'
gem 'cqm-validators', '~> 4.0.5'

# # Use faker to generate addresses
gem 'faker', '> 1.5.0'
Expand All @@ -30,7 +30,8 @@ gem 'sass-rails', '~> 5.0.4'
gem 'bootstrap-sass', '~> 3.4.1'
gem 'font-awesome-sass', '~> 5.0.13'
gem 'jquery-rails', '~> 4.4.0'
gem 'jquery-ui-rails', '~> 6.0.1'
# TODO: remove or use gem
gem 'jquery-ui-rails', git: 'https://github.com/jquery-ui-rails/jquery-ui-rails', tag: 'v7.0.0'

# Add pagination support
gem 'kaminari-mongoid'
Expand Down
Loading

0 comments on commit e20941e

Please sign in to comment.