Skip to content

Fix specs on CI against TruffleRuby 22.3.1 - #1105

Closed
andrykonchin wants to merge 2 commits into
omniauth:masterfrom
andrykonchin:ak/fix-specs-on-truffle-22-3-1
Closed

andrykonchin wants to merge 2 commits into
omniauth:masterfrom
andrykonchin:ak/fix-specs-on-truffle-22-3-1

Conversation

@andrykonchin

@andrykonchin andrykonchin commented Feb 17, 2023 •

Copy link
Copy Markdown
Contributor

Changes:

  • use the latest bundler version

It should be merged after #1104 to not force using an old bundler version

Notes

Looks like there was an issue in bundler version vendored with TruffleRuby 22.3.1.

It leads to spec failures on omniauth CI (build):

An error occurred while loading ./spec/omniauth/auth_hash_spec.rb. - Did you mean?
                    rspec ./spec/omniauth/strategy_spec.rb
                    rspec ./spec/omniauth/builder_spec.rb

Failure/Error: require 'hashie/mash'

LoadError:
  cannot load such file -- hashie/mash
# ./lib/omniauth/key_store.rb:1:in `<top (required)>'
# ./lib/omniauth/auth_hash.rb:1:in `<top (required)>'
# ./lib/omniauth.rb:4[7](https://github.com/omniauth/omniauth/actions/runs/4205385104/jobs/7298340176#step:5:8):in `defaults'
# ./lib/omniauth.rb:53:in `initialize'
# /home/runner/.rubies/truffleruby-22.3.1/lib/mri/singleton.rb:[12](https://github.com/omniauth/omniauth/actions/runs/4205385104/jobs/7298340176#step:5:13)7:in `block in instance'
# /home/runner/.rubies/truffleruby-22.3.1/lib/mri/singleton.rb:125:in `synchronize'
# /home/runner/.rubies/truffleruby-22.3.1/lib/mri/singleton.rb:125:in `instance'
# ./lib/omniauth.rb:[13](https://github.com/omniauth/omniauth/actions/runs/4205385104/jobs/7298340176#step:5:14)1:in `config'
# ./spec/helper.rb:27:in `<top (required)>'
# ./spec/omniauth/auth_hash_spec.rb:1:in `<top (required)>'

The issue looks like was fixed in bundler and running specs with current version works fine.

@andrykonchin
andrykonchin force-pushed the ak/fix-specs-on-truffle-22-3-1 branch from 3f6a16e to 72342e4 Compare February 22, 2023 17:14
@andrykonchin

andrykonchin commented Feb 22, 2023 •

Copy link
Copy Markdown
Contributor Author

Tests against TruffleRuby 22.3 passed successfully.

@andrykonchin

andrykonchin commented Feb 22, 2023 •

Copy link
Copy Markdown
Contributor Author

It makes sense to revert changes in this PR (as well as #1104) when TruffleRuby 23 is released (with fixed bundler version). I will take care of this.

@andrykonchin

Copy link
Copy Markdown
Contributor Author

Is there anything I could do to have this PR reviewed?

@nschonni

Copy link
Copy Markdown
Contributor

This was fixed in #1109

@andrykonchin

Copy link
Copy Markdown
Contributor Author

It seems the issue wasn't fixed. And a new one was created.

The TruffleRuby (22.3) build now fails with error:

Installing webrick 1.7.0
Fetching yard 0.9.28
Installing yard 0.9.28
--- ERROR REPORT TEMPLATE -------------------------------------------------------

NoMethodError: undefined method `full_name' for nil:NilClass
  /home/runner/.rubies/truffleruby-22.3.1/lib/mri/bundler/installer/parallel_installer.rb:124:in `block (2 levels) in 

https://github.com/omniauth/omniauth/actions/runs/4390423324/jobs/7691925000

A similar issue was fixed in #1104 by removing (temporary) the option bundler-cache: true, that was reintroduced recently in #1109.

@nschonni

Copy link
Copy Markdown
Contributor

@andrykonchin TruffleRuby isn't failing on the main branch anymore, that failing build you pointed to was from before the other PR landed

@andrykonchin

andrykonchin commented May 31, 2023 •

Copy link
Copy Markdown
Contributor Author

Ah, I see. Right, CI builds on the TruffleRuby released version are now successful.

I suppose the issue is solved because of running against truffleruby-23.0.0-preview1, but not the last released version 22.3. TruffleRuby 22.3 contains a bundler gem version with some issues that caused the failures mentioned above. TruffleRuby 23.0 is vendoring a fixed bundler version.

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.

3 participants