-
Notifications
You must be signed in to change notification settings - Fork 41
Lock to bundler < 4 to fix CI #328
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
Conversation
…ean_env which Bundler 4 no longer supports
|
OK this is a weird as heck one. The blacklight_range_limit generator, to try to guess what asset mode is being used, checks if Under bundler 2.7.2, it does. Under bundler 4.0.1 it does not. With no other changes. Same version of rails. 8.0.4 in my current test. ?!?!? |
|
Part of me wants to freeze CI to use bundler 2.7.x only for another little while, but I know if I do that it could last for years like that! |
|
Hm, okay, with bundler 4 only, after the rails generator tries to run The install process continues... but I think maybe that exception actually prevented the generator from completing, and it's a sort of second-order bug that it is rescued somewhere and the install process continues? That MAY be a rubygems and/or Rails bug? See: rails/rails#56234 Which ends up going to rubygems repo, and then back to: rails/rails#56247 I think something has changed with how the Bundler Weirdly, the rails fix uses Possible engine_cart needs to use a |
|
Feedback welcome -- should we just fix blacklight_range_limit CI to use bundler 2.7.x for now? |
|
OK something is happening in Blacklight too. https://github.com/projectblacklight/blacklight/pull/3783/checks eg https://github.com/projectblacklight/blacklight/actions/runs/20079840341/job/57603875568?pr=3783 This failure is different than ours -- that apparently completed the generation (I coudln’t get that far), and then the tests run but fail — I think it’s possible that the generation did not really complete, and that’s why the tests fail. Let's see if we can find the thruster business.... Not thurster, but a similar one, see here: https://github.com/projectblacklight/blacklight/actions/runs/20079840341/job/57603875568?pr=3783#step:6:139 |
|
Follow also at ruby/rubygems#9176 (comment) |
|
OK, we'll follow blacklight's lead and lock to bundler <4 to fix CI. projectblacklight/blacklight#3784 For our very old Rails versions, this is expected and permanent (old Rails is not compat with bundler 4). For newer Rails, it's an incompat with engine_cart, not entirely clear what the bug is where. See at engine_cart cbeer/engine_cart#136 |
42c6b1e to
99ae3b1
Compare
maxkadel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the comment on there not being a bundler 3 - that caught me up when I was looking into fixing this on another project.
CI is broken in weekly scheduled build at https://github.com/projectblacklight/blacklight_range_limit/actions/runs/20050712705/job/57505810337
For TWO reasons, although perhaps both related to recent release of rubygems and bundler 4, which may be auto-used? (note there was no bundler 3.x, they skipped from bundler 2.7.2 to 4, to have a match with rubygems version 4).
On very old Blacklight 7, the BL generator uses
Bundler.with_clean_env, which is no longer avail in bundler 4 (should usewith_unbundled_envinstead). So we just tell CI to use bundler 2.7.2 with BL 7 CI runs?On Rails 8 and following, our asset generator is raising "Could not identify asset_delivery_mode, try supplying --asset-delivery-mode=[importmap-rails|yarn-package]", haven't figured out why, guessing it has something to do with new rubygems/bundler I dunno, investigating.