Skip to content

Commit

Permalink
Fixed failing integration test in CI (#1565)
Browse files Browse the repository at this point in the history
## Problem

- The [integration test
fails](https://github.com/openSUSE/agama/actions/runs/10630606402/job/29469809489#step:9:411)
- The augeas Ruby gem 0.5.0 from rubygems.org is not compatible with
Ruby 3.3

## Solution

- Configure the bundler to reuse the preinstalled RPM packages. The
rubygem-augeas is already patched in OBS.
- The [test
passes](https://github.com/lslezak/agama/actions/runs/10631867513/job/29473633071#step:9:329)
when running from my fork
  • Loading branch information
lslezak authored Aug 30, 2024
2 parents 13014cd + fac8bb6 commit adc4a6e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ fi
sed -e '/gemspec/a gem "ruby-dbus", path: "/checkout-ruby-dbus"' -i Gemfile
fi

bundle config set --local path 'vendor/bundle'
if [ -n "$CI" ]; then
# in CI reuse the pre-installed system gems from RPMs
bundle config set --local disable_shared_gems 0
else
bundle config set --local path 'vendor/bundle'
fi

bundle install
)

Expand Down

0 comments on commit adc4a6e

Please sign in to comment.