From fb07da1c90eb2a7466095395a58209ee8528d9e6 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Thu, 26 Oct 2023 14:38:58 -0400 Subject: [PATCH] Fix rake locale:update_all post zeitwerk * Add qpid to bundle group used by workflow * Ensure store_model_attributes loads rails environment first * Install qpid_proton dependencies and set bundle config with qpid_proton --- .github/workflows/locale_update_all.yaml | 7 +++++++ lib/tasks/locale.rake | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/locale_update_all.yaml b/.github/workflows/locale_update_all.yaml index 93f17d1e90c1..453e7b4b7fc1 100644 --- a/.github/workflows/locale_update_all.yaml +++ b/.github/workflows/locale_update_all.yaml @@ -26,16 +26,23 @@ jobs: RAILS_ENV: i18n SKIP_TEST_RESET: true SKIP_DATABASE_SETUP: true + BUNDLER_GROUPS: "manageiq_default,ui_dependencies,qpid_proton" steps: - uses: actions/checkout@v4 - name: Set up system run: bin/before_install + - name: Install qpid dependency - libcurl4-openssl-dev + run: sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev + - name: Install qpid dependency - libqpid-proton11-dev + run: sudo apt-add-repository --yes 'deb http://us.archive.ubuntu.com/ubuntu lunar universe' && sudo apt-get install -t lunar -y libqpid-proton11-dev - name: Set up Ruby uses: ruby/setup-ruby@v1 with: ruby-version: "3.0" bundler-cache: true timeout-minutes: 30 + - name: Set bundle config with qpid_proton + run: bundle config with qpid_proton - name: Prepare dependencies run: bin/setup - name: Setup database diff --git a/lib/tasks/locale.rake b/lib/tasks/locale.rake index 53e0ffd2e064..29b69c6b51b3 100644 --- a/lib/tasks/locale.rake +++ b/lib/tasks/locale.rake @@ -133,7 +133,7 @@ namespace :locale do end desc "Extract model attribute names and virtual column names" - task "store_model_attributes" do + task "store_model_attributes" => :environment do require 'gettext_i18n_rails/model_attributes_finder' require_relative 'model_attribute_override.rb'