-
Notifications
You must be signed in to change notification settings - Fork 118
Update all workflows to runs-on: ubuntu-24.04 and Consolidate Capybara Config
#3487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- This change modifies the regex to capture the full versions for Ruby and Bundler.
The following error was being encountered in https://github.com/DMPRoadmap/roadmap/actions/runs/13907418160/job/38913596385?pr=3487: ``` Run actions/setup-ruby@v1 ------------------------ NOTE: This action is deprecated and is no longer maintained. Please, migrate to https://github.com/ruby/setup-ruby, which is being actively maintained. ------------------------ Error: Version 3.0.4 not found ```
71dc6c5 to
46389a1
Compare
- `imagemagick` is not pre-installed with `ubuntu-24.04`. However, it is required to resolve the following test failures:
```
Failures:
1) OrgsController PUT /org/admin/:id/admin_update succeeds for feedback changes
Failure/Error: return if logo.nil? || logo.height == 100
Dragonfly::Shell::CommandFailed:
Command failed: identify -ping -format \%m\ \%w\ \%h /tmp/RackMultipart20250324-4505-2x6nam.png, exit status: 127, error: sh: 1: identify: not found
# ./app/models/org.rb:357:in `resize_image'
# ./app/controllers/orgs_controller.rb:81:in `admin_update'
# ./spec/controllers/orgs_controller_spec.rb:60:in `block (3 levels) in <main>'
2) OrgsController PUT /org/admin/:id/admin_update updates the shibboleth entityID if super_admin and enabled
Failure/Error: return if logo.nil? || logo.height == 100
Dragonfly::Shell::CommandFailed:
Command failed: identify -ping -format \%m\ \%w\ \%h /tmp/RackMultipart20250324-4505-gp3t74.png, exit status: 127, error: sh: 1: identify: not found
# ./app/models/org.rb:357:in `resize_image'
# ./app/controllers/orgs_controller.rb:81:in `admin_update'
# ./spec/controllers/orgs_controller_spec.rb:73:in `block (3 levels) in <main>'
3) OrgsController PUT /org/admin/:id/admin_update succeeds
Failure/Error: return if logo.nil? || logo.height == 100
Dragonfly::Shell::CommandFailed:
Command failed: identify -ping -format \%m\ \%w\ \%h /tmp/RackMultipart20250324-4505-42hnxo.png, exit status: 127, error: sh: 1: identify: not found
# ./app/models/org.rb:357:in `resize_image'
# ./app/controllers/orgs_controller.rb:81:in `admin_update'
# ./spec/controllers/orgs_controller_spec.rb:43:in `block (3 levels) in <main>'
```
- Moved the `spec/rails_helper.rb` Capybara config to `spec/support/capybara.rb` - Rather than pasting the `Capybara.register_driver :headless_chrome` code, the extra `options.add_argument` code was added to `Capybara.register_driver :selenium_chrome_headless_custom`. - Renamed `:selenium_chrome_headless_add_window_size` to `:selenium_chrome_headless_custom`
runs-on: ubuntu-22.04runs-on: ubuntu-24.04
runs-on: ubuntu-24.04runs-on: ubuntu-24.04 and Consolidate Capybara Config
johnpinto1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like in does the job for the longer term. I use Linux Mint which uses 22.04, so I don't see any issues with this change locally.
johnpinto1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like some of the changes I made to get the Selenium test to work in one f my PRs. So that is good. I will need to rebase that PR one we have a release.
Fixes #3484
Changes proposed in this PR:
Updates from
runs-on: ubuntu-20.04toruns-on: ubuntu-24.04within all.github/workflowsfilesPrior to the
ubuntu-24.04update, all of the workflows were bumped toubuntu-22.04. The22.04update resulted in the Danger GitHub Action failing with the following output:actions/setup-ruby@v1has been replaced withruby/setup-ruby@v1. Additionally, the regex has been modified to capture the full Ruby and Bundler versions.Bumping the Postgres workflow from
runs-on: ubuntu-22.04toruns-on: ubuntu-22.04required the following extra steps:imagemagickis required for some of the tests but is not packaged withubuntu-24.04by default/featurestests: https://github.com/DMPRoadmap/roadmap/actions/runs/14041753874/job/39313346863