jRuby build is failing with jRuby 9.3#1571
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
endWith 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:262But 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:262As 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. |
Description
Is resulting into a failing tests only with jruby 9.3:
spec/cucumber/glue/step_definition_spec.rb:92When 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 --bisectat 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 rubocopreports no offenses