ManageIQ / manageiq-rpm_build

Code to build RPMs for ManageIQ appliances and container images
Apache License 2.0
10 stars 25 forks source link

Temporarily lock down to ruby 3.1.2-142 #454

Closed bdunne closed 8 months ago

bdunne commented 8 months ago

3.1.4-143 is now available in ubi-9-appstream. That version of ruby-default-gems includes time-0.2.2 and cgi that match our current gemset gemfile.lock. When we bundle install with 3.1.4, time and cgi are not installed in the gemset location since they are already installed in the system path. If we try to use a gemset that was built with 3.1.4 on an appliance that only has 3.1.2 (since appliances don't have ubi-9-appstream) we fail to load time and cgi.

3.1.4 appears to have been released between 2024-03-29T21:15 and 2024-04-02T06:15 Eastern

[root@localhost ~]# ap
/opt/...-gemset/gems/bundler-2.5.7/lib/bundler/definition.rb:596:in `materialize': Could not find cgi-0.3.6, time-0.2.2 in locally installed gems (Bundler::GemNotFound)
  from /opt/...-gemset/gems/bundler-2.5.7/lib/bundler/definition.rb:203:in `specs'
  from /opt/...-gemset/gems/bundler-2.5.7/lib/bundler/definition.rb:270:in `specs_for'
  from /opt/...-gemset/gems/bundler-2.5.7/lib/bundler/runtime.rb:18:in `setup'
  from /opt/...-gemset/gems/bundler-2.5.7/lib/bundler.rb:162:in `setup'
  from /opt/...-gemset/gems/manageiq-appliance_console-9.0.1/bin/appliance_console:6:in `<top (required)>'
  from /opt/...-gemset/bin/appliance_console:25:in `load'
  from /opt/...-gemset/bin/appliance_console:25:in `<main>'
bdunne commented 8 months ago

I'm running a test build now. Ok, looks like this will work on both pods and appliances.

bdunne commented 8 months ago

cc @jrafanie

Fryguy commented 8 months ago

Backported to radjabov in commit 5b374991f3a9f2de8e8f7f60ce752fdebc894fe7.

commit 5b374991f3a9f2de8e8f7f60ce752fdebc894fe7
Author: Jason Frey <fryguy9@gmail.com>
Date:   Fri Apr 5 10:05:20 2024 -0400

    Merge pull request #454 from bdunne/updated_default_gem_problems

    Temporarily lock down to ruby 3.1.2-142

    (cherry picked from commit 48de4db8c9b5ef1adb6942f4f154886cca6a88cd)