Closed d-m-u closed 4 years ago
Totals | |
---|---|
Change from base Build 3663: | -5.7% |
Covered Lines: | 4723 |
Relevant Lines: | 5923 |
Totals | |
---|---|
Change from base Build 3923: | -5.9% |
Covered Lines: | 4754 |
Relevant Lines: | 5942 |
Just kidding.
@d-m-u This one has been in the back of my mind for a while and I think I played with the same change at one point. I assume from the you closing and the previous comment that it is not a simple replace. What results did you get?
@gmcculloug yeah, everything broke and, just as you said, not a trivial change. Will make you chat with me about it next week.
https://travis-ci.com/github/ManageIQ/manageiq-cross_repo-tests/builds/155884456 is my proof that this isn't going to be as problematic as we were originally thinking
copying what we chatted about... this looks great... with_unbundled_env
is the same as with_clean_env
so I think this is good to do.
The original testing we did for with_clean_env
involved testing requiring different gems like this:
Compiled gem in bundle: irb(main):001:0> require 'nokogiri'; puts Nokogiri::VERSION 1.10.9
Pure ruby gem in bundle from gemset: irb(main):002:0> require 'elif'; puts Elif::VERSION 0.1.0
Git based gem in bundle from gemset: irb(main):003:0> require 'manageiq-gems-pending'; puts ManageIQ::Gems::Pending::VERSION 0.1.0
New gem installed on the system: irb(main):004:0> require 'timecop'; puts Timecop::VERSION 0.9.1
Updated version of a gem already in the bundle: irb(main):005:0> require 'faraday'; puts Faraday::VERSION 0.9.2
If those all work in an automate ruby method, I think we can merge this.
this is the version list for before my awful bundler update on an upstream appliance and after:
@jrafanie looks fine can we merge please? :trollface:
before: require 'nokogiri'; puts Nokogiri::VERSION => 1.8.5 require 'faraday'; puts Faraday::VERSION => 0.9.2 require 'elif'; puts Elif::VERSION => 0.1.0 require 'linux_admin'; puts LinuxAdmin::VERSION => 2.0.0
after: XXX nokogiri version: 1.8.5 XXX faraday version: 1.0.1 XXX elif version: 0.1.0 XXX linux_admin version: 2.0.0
LGTM. @simaishi What do you think of upgrading bundler? This PR and https://github.com/ManageIQ/manageiq/pull/20015 would need to go back?
Sounds good to me!
Yes @kbrock, but the question is how far far away is the galaxy.
not to be that person, @gmcculloug, but you're missing a comma
Found it!
Bundler v2.1.4 has this:
[DEPRECATED] 'Bundler.with_clean_env' has been deprecated in favor of 'Bundler.with_unbundled_env'.
See https://github.com/rubygems/bundler/pull/6843