From dec65768c99b25ef2c15dd57997bdd10dcb0f916 Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Wed, 29 Jan 2025 15:51:37 -0800 Subject: [PATCH 1/2] [allsearch api] Ruby 3.4.1 with YJIT --- group_vars/allsearch_api/common.yml | 3 ++- group_vars/allsearch_api/staging.yml | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/group_vars/allsearch_api/common.yml b/group_vars/allsearch_api/common.yml index eda28bf5fa..9cdfe75b18 100644 --- a/group_vars/allsearch_api/common.yml +++ b/group_vars/allsearch_api/common.yml @@ -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;" diff --git a/group_vars/allsearch_api/staging.yml b/group_vars/allsearch_api/staging.yml index bf19762124..3de9d2c5ff 100644 --- a/group_vars/allsearch_api/staging.yml +++ b/group_vars/allsearch_api/staging.yml @@ -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 From 8229156ed9efda857d6fe268f88b311309a1776a Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Thu, 30 Jan 2025 10:24:31 -0500 Subject: [PATCH 2/2] [allsearch-api] Update bundler 2.6.3 (#5802) * [allsearch api] Ruby 3.4.1 with YJIT * related to https://github.com/pulibrary/princeton_ansible/pull/5799/files when running the playbook to upgrade to 3.4 bundler version is also updated to 2.6.2 --------- Co-authored-by: Jane Sandberg --- playbooks/allsearch_api.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/playbooks/allsearch_api.yml b/playbooks/allsearch_api.yml index b1ec46e89f..b3d4a10c59 100644 --- a/playbooks/allsearch_api.yml +++ b/playbooks/allsearch_api.yml @@ -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