puppetlabs / puppet-agent

All of the directions for building a puppet agent package.
Other
47 stars 146 forks source link

Pin sqlite3 rubygem to 1.6.9 #2458

Closed joshcooper closed 6 months ago

joshcooper commented 6 months ago

The test started failing on RHEL8 ARM with:

$ env GEM_HOME=/opt/puppetlabs/puppet/lib/ruby/vendor_gems env PATH="/opt/puppetlabs/puppet/bin:${PATH}" gem install sqlite3 -v 1.7.0 -- --enable-system-libraries
  ERROR:  Error installing sqlite3:
    The last version of sqlite3 (= 1.7.0) to support your Ruby & RubyGems was 1.7.0. Try installing it with `gem install sqlite3 -v 1.7.0` and then running the current command again
    sqlite3 requires Ruby version >= 3.0, < 3.4.dev. The current ruby version is 2.7.8.225.

The sqlite3 gem dropped "native gem support for 2.7" in 1.7.0. So pin to the version just prior to that.

joshcooper commented 6 months ago

Manually tested this using:

$ export GEM_SOURCE=https://artifactory.delivery.puppetlabs.net/artifactory/api/gems/rubygems/
$ export SHA=f8acfa7e064fb553bb167d141bfd328f2f3d91bc
$ bundle exec beaker-hostgenerator redhat8-AARCH64a --hypervisor abs --disable-default-role --osinfo-version 1 > hosts.yaml
$ bundle exec rake ci:test:setup HOSTS=hosts.yaml
$ bundle exec beaker exec tests/validate_vendored_ruby.rb