8000 Cleanup Bundler ENV variable introduced in Bundler 2.4 by deivid-rodriguez · Pull Request #229 · thoughtbot/appraisal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cleanup Bundler ENV variable introduced in Bundler 2.4 #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

deivid-rodriguez
Copy link
Contributor
@deivid-rodriguez deivid-rodriguez commented Aug 20, 2024

See rubygems/rubygems#6025.

This gets most specs passing with the latest version of Bundler.

Closes #218.

@n-rodriguez
Copy link
Contributor

@deivid-rodriguez thank you! ❤️

@n-rodriguez n-rodriguez mentioned this pull request Aug 20, 2024
@n-rodriguez
Copy link
Contributor

ping @nickcharlton

@n-rodriguez
Copy link
Contributor

ping @neilvcarvalho

@tisba
Copy link
Contributor
tisba commented Aug 30, 2024

I'm not sure I follow why the referenced Rubygems PR should fix #218. I get the same errors when running this changeset locally I got with #218.

@n-rodriguez
Copy link
Contributor
n-rodriguez commented Aug 30, 2024

I'm not sure I follow why the referenced Rubygems PR should fix #218. I get the same errors when running this changeset locally I got with #218.

@tisba The referenced PR is for history. Actually bundler has been patched to fix the issue (rubygems/rubygems#7925). The fix has been released with bundler 2.5.18. Now we need this patch to fix another issue (see: rubygems/rubygems#7925 (comment)).

@n-rodriguez
Copy link
Contributor

I've made a PR based on this one (#230) that implements CI with GithubActions.

You can check the result here : https://github.com/thoughtbot/appraisal/actions/runs/10570162976/job/29284184720?pr=230

@n-rodriguez
Copy link
Contributor

ping @nickcharlton

@tisba
Copy link
Contributor
tisba commented Sep 19, 2024

When I checkout this PR, using bundler 2.5.19, rubygems 3.5.19 on ruby 3.3.5 (arm64-darwin23), I get two broken tests when running rspec:

$ rspec
..Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
.Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
.Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
........Bundler can't satisfy your Gemfile's dependencies.
Install missing gems with `bundle install`.
.................warning: re-init: ignored --initial-branch=master
.......F.F.........................................................................

Failures:

  1) Appraisal::AppraisalFile#customize_gemfiles when a block is given when the block returns a hash with :heading key sets the heading
     Failure/Error:
       def self.heading(gemfile)
         @@heading ||= nil
         customize(@@heading, gemfile)
       end

     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./lib/appraisal/customize.rb:8:in `heading'
     # ./spec/appraisal/appraisal_file_spec.rb:38:in `block (6 levels) in <top (required)>'
     # ./spec/appraisal/appraisal_file_spec.rb:38:in `block (5 levels) in <top (required)>'

  2) Appraisal::AppraisalFile#customize_gemfiles when a block is given when the block returns a hash with :heading and :single_quotes keys sets the heading and single_quotes
     Failure/Error:
       def self.heading(gemfile)
         @@heading ||= nil
         customize(@@heading, gemfile)
       end

     ArgumentError:
       wrong number of arguments (given 0, expected 1)
     # ./lib/appraisal/customize.rb:8:in `heading'
     # ./spec/appraisal/appraisal_file_spec.rb:63:in `block (5 levels) in <top (required)>'

Finished in 57.5 seconds (files took 0.21106 seconds to load)
112 examples, 2 failures

Failed examples:

rspec ./spec/appraisal/appraisal_file_spec.rb:37 # Appraisal::AppraisalFile#customize_gemfiles when a block is given when the block returns a hash with :heading key sets the heading
rspec ./spec/appraisal/appraisal_file_spec.rb:61 # Appraisal::AppraisalFile#customize_gemfiles when a block is given when the block returns a hash with :heading and :single_quotes keys sets the heading and single_quotes

Unfortunately I don't really have much time to dig in more - hope it helps anyway.

@deivid-rodriguez
Copy link
Contributor Author

Did you get specs to pass previously and this is something that broke in Bundler 2.5.19 /RubyGems 3.5.19 or it's the first time you tried this PR?

Ideally we'd get this merged and a CI back on track to be able to troubleshoot these things more easily from now on.

@n-rodriguez
Copy link
Contributor

@tisba this errors has nothing to do with bundler. The issue is that def self.heading(gemfile) signature has changed and the tests were not updated.

@n-rodriguez
Copy link
Contributor

@nickcharlton I would really appreciate if you could merge this PR (and this one #230) to get appraisal gem back in green CI. Thank you!

@n-rodriguez
Copy link
Contributor
n-rodriguez commented Sep 19, 2024

@nickcharlton
Copy link
Member

Thanks for doing this!

@n-rodriguez, I appreciate the pings, thank you! (Even though I basically didn't do anything about it until now 😅)

@nickcharlton nickcharlton force-pushed the unset-bundler-2.4-new-env branch from 7087fbf to be67a08 Compare September 23, 2024 15:38
@nickcharlton nickcharlton merged commit cc074a6 into thoughtbot:main Sep 23, 2024
1 check passed
@n-rodriguez
Copy link
Contributor

@nickcharlton awesome! thank you!

@deivid-rodriguez deivid-rodriguez deleted the unset-bundler-2.4-new-env branch September 23, 2024 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running appraisal specs with Bundler >= 2.4.0 broken
4 participants
0