-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
jRuby build is failing with jRuby 9.3 #1571
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
|
jRuby 9.3 seems to add, sometimes, an extra caller location in that specific scenario. If patching def patch_location_onto(block)
puts Core::Test::Location.of_caller(0)
puts Core::Test::Location.of_caller(1)
puts Core::Test::Location.of_caller(2)
puts Core::Test::Location.of_caller(3)
puts Core::Test::Location.of_caller(4)
puts Core::Test::Location.of_caller(5)
puts Core::Test::Location.of_caller(6)
puts Core::Test::Location.of_caller(7)
location = Core::Test::Location.of_caller(5)
block.define_singleton_method(:source_location) { [location.file, location.line] }
block
end With anything else than jruby 9.3 with the specific execution order, the output is the following lib/cucumber/glue/step_definition.rb:38
lib/cucumber/glue/step_definition.rb:28
lib/cucumber/glue/registry_and_more.rb:88
lib/cucumber/glue/dsl.rb:31
lib/cucumber/glue/dsl.rb:152
spec/cucumber/glue/step_definition_spec.rb:93
rspec-core-3.10.1/lib/rspec/core/example.rb:262
rspec-core-3.10.1/lib/rspec/core/example.rb:262 But with the specified test suite, with jruby 9.3, the result is the following: lib/cucumber/glue/step_definition.rb:38
lib/cucumber/glue/step_definition.rb:28
lib/cucumber/glue/step_definition.rb:26
lib/cucumber/glue/registry_and_more.rb:88
lib/cucumber/glue/dsl.rb:31
lib/cucumber/glue/dsl.rb:152
spec/cucumber/glue/step_definition_spec.rb:93
rspec-core-3.10.1/lib/rspec/core/example.rb:262 As soon as we change the minimal reproduction rspec command with jruby 9.3, or we use anything else than jruby 9.3, the caller |
From jruby/jruby#6858 (comment) The issue will be fixed with jruby 9.3.1. |
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.
LGTM
Description
Is resulting into a failing tests only with jruby 9.3:
spec/cucumber/glue/step_definition_spec.rb:92
When executing only that test, or spec file, or even all the spec in
spec/cucumber/glue
, the test is properly passing.I am running
rspec --bisect
at the moment. Still waiting for it to finish.Type of change
Please delete options that are not relevant.
Please add an entry to the relevant section of CHANGELOG.md as part of this pull request.
Checklist:
Your PR is ready for review once the following checklist is
complete. You can also add some checks if you want to.
bundle exec rubocop
reports no offenses