Skip to content
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

[allsearch api] Ruby 3.4.1 with YJIT #5799

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion group_vars/allsearch_api/common.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
install_ruby_from_source: true
ruby_version_override: "ruby-3.3.6"
ruby_version_override: "ruby-3.4.1"
ruby_yjit: true
passenger_extra_http_config:
- "passenger_preload_bundler on;"

Expand Down
1 change: 0 additions & 1 deletion group_vars/allsearch_api/staging.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
---
rails_app_env: staging
ruby_yjit: true
allsearch_api_secret_key: '{{vault_allsearch_api_staging_secret_key}}'

postgres_host: lib-postgres-staging1.princeton.edu
Expand Down
8 changes: 4 additions & 4 deletions playbooks/allsearch_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@
when: runtime_env | default('staging') == "production"
tasks:
- name: allsearch_api | update rubygems
ansible.builtin.command: gem update --system 3.5.23
ansible.builtin.command: gem update --system 3.6.3
become: true
register: update_rubygems
changed_when: '"Latest version already installed. Done." not in update_rubygems.stdout'
tags: rubygems

- name: allsearch_api | install default bundler
ansible.builtin.command: gem install --default bundler:2.5.23
ansible.builtin.command: gem install --default bundler:2.6.3
become: true
register: install_default_bundler
changed_when: '"Fetching bundler-2.5.23.gem" in install_default_bundler.stdout'
changed_when: '"Fetching bundler-2.6.3.gem" in install_default_bundler.stdout'
tags: rubygems

- name: allsearch_api | remove old default bundler
ansible.builtin.file:
path: /usr/local/lib/ruby/gems/3.3.0/specifications/default/bundler-2.5.13.gemspec
path: /usr/local/lib/ruby/gems/3.3.0/specifications/default/bundler-2.5.23.gemspec
state: absent
tags: rubygems

Expand Down