-
Notifications
You must be signed in to change notification settings - Fork 148
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
Fix typecheck CI job #2773
Fix typecheck CI job #2773
Conversation
* Update typecheck/Gemfile.lock to use the Bundler shipped with Ruby 3.3.1.
Mmh https://github.com/ruby/prism/actions/runs/8957377538/job/24600406961?pr=2773 still gives:
And looking at the Gemfile lock there is: prism/gemfiles/typecheck/Gemfile.lock Lines 3 to 4 in e418265
prism/gemfiles/typecheck/Gemfile.lock Lines 54 to 55 in e418265
I wonder where that constraint comes from. |
Removing the Gemfile.lock allows it to get to the next step: |
* Otherwise: rake aborted! TypeError: superclass mismatch for class Prism::ParseResult (Prism::Result is given but was Object) (TypeError) kernel_class.send(:no_warning_require, name) ^^^^^^^^^^^^^^^^^^^^^^^^^ /home/runner/work/prism/prism/lib/prism.rb:82:in `<top (required)>' /home/runner/work/prism/prism/vendor/bundle/ruby/3.3.0/gems/spoom-1.3.2/lib/spoom/deadcode.rb:5:in `<top (required)>' /home/runner/work/prism/prism/vendor/bundle/ruby/3.3.0/gems/spoom-1.3.2/lib/spoom.rb:18:in `<top (required)>' /home/runner/work/prism/prism/vendor/bundle/ruby/3.3.0/gems/tapioca-0.13.3/lib/tapioca/internal.rb:22:in `<top (required)>' /home/runner/work/prism/prism/rakelib/typecheck.rake:19:in `block (2 levels) in <top (required)>' /home/runner/work/prism/prism/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/exe/rake:27:in `<top (required)>' /opt/hostedtoolcache/Ruby/3.3.1/x64/bin/bundle:25:in `load' /opt/hostedtoolcache/Ruby/3.3.1/x64/bin/bundle:25:in `<main>' Tasks: TOP => typecheck:tapioca
Shopify/rbi#298 / Shopify/rbi#297 / Shopify/rbi#266 might solve that constraint issue. |
It passed now: https://github.com/ruby/prism/actions/runs/8957490030/job/24600645943?pr=2773 |
I'm waiting on a new release of RBI, which is used by spoom, which is used by tapioca, which uses prism. I don't want to delete the Gemfile.lock because I'm trying to use the latest versions of these things because we rely on it internally in Shopify. I'll ping the team again today, hopefully this should be done soon. |
Doesn't deleting the Gemfile.lock actually ensures the latest versions are used? |
Given the change in
Which is kind of fun that Bundler/RubyGems doesn't complain about it. |
They've relaxed the version requirements on these things now, which is nice. There's still an RBI failure, but I'm re-enabling the other checks in CI. |
Previous failure: https://github.com/ruby/prism/actions/runs/8943853950/job/24569472569
which I guess it the reason for 926c2bc