Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Update Cucumber#1320

Merged
pirj merged 1 commit into4-0-devfrom
update-cucumber
Sep 13, 2021
Merged

Update Cucumber#1320
pirj merged 1 commit into4-0-devfrom
update-cucumber

Conversation

@pirj
Copy link
Copy Markdown
Member

@pirj pirj commented Sep 5, 2021

1.3-2.0 don't work for me locally with a weird error:

undefined method `[]' for nil:NilClass (NoMethodError) /Users/pirj/.rvm/gems/ruby-2.7.1@rspec-core/gems/cucumber-1.3.20/lib/cucumber/core_ext/proc.rb:17:in `file_colon_line'

2.4.0 spits "undefined method with_filtered_backtrace" in some other repository (rspec-core to my best memory)
3.2.0 - "undefined method ok?" in that other repo as well - it was due to the lack of skip_this_scenario.
4.0.1-4.1 depend on diff-lcs (< 1.4, >= 1.3, ~> 1.3), while we depend on = 1.4.4

5.2.0 only supports Ruby > 2.5. we support >=2.3. But it doesn't have a diff-lcs version conflict with its >= 1.4.4 dependency.

2.4 and 5.x+ are incompatible in terms of cucumber.yml, the former expects --tag ~@wip, while the latter --tag 'not @wip'.

I've checked 3.2.0, 4.0.0, 4.1.0, 5.3.0, 6.1.0, and they work (except for 4.1.0).

I vaguely recall we were discussing not running cucumber on older Rubies (2.3-2.4), is this correct?
Otherwise, I'll roll back to 3.2.0. ✔️

Sibling PRs:

@pirj pirj self-assigned this Sep 5, 2021
@pirj pirj force-pushed the update-cucumber branch 4 times, most recently from 73bed2b to f75831e Compare September 5, 2021 14:01
@pirj pirj requested review from JonRowe and benoittgt September 5, 2021 15:01
@pirj pirj force-pushed the update-cucumber branch 4 times, most recently from 9ac0472 to d28790d Compare September 11, 2021 14:14
@pirj
Copy link
Copy Markdown
Member Author

pirj commented Sep 11, 2021

I failed to properly install JRuby 9.1.17.0 quickly locally.
JRuby 9.1.17.0 failure is stable, same scenarios fail when re-run on CI.
Green otherwise.

@pirj pirj force-pushed the update-cucumber branch 2 times, most recently from 44c7075 to 26bdaef Compare September 12, 2021 08:58
if ::RSpec::Support::RubyFeatures.ripper_supported?
block.call
else
warn "Skipping scenario #{scenario.title} because Ripper is not supported"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

warn "Skipping scenario #{scenario.title} because Ripper is not supported"
unless ::RSpec::Support::RubyFeatures.ripper_supported?
warn "Skipping scenario #{scenario.name} because Ripper is not supported"
skip_this_scenario
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cucumber 4.0.0 is not aware of breaking changes in diff-lcs 1.4.3, so
excluding it

cucumber 4.0.0 would run on Ruby 2.3, 2.4 and JRuby 9.1
@pirj pirj merged commit 7b21a5c into 4-0-dev Sep 13, 2021
@JonRowe JonRowe deleted the update-cucumber branch September 14, 2021 06:56
pirj added a commit to rspec/rspec-rails that referenced this pull request Sep 18, 2021
cucumber 4.0.0 is not aware of breaking changes in diff-lcs 1.4.3, so
excluding it

cucumber 3.2 would run on Ruby 2.2, 2.3 and 2.4

Sibling PRs:
 - rspec/rspec-core#2877
 - rspec/rspec-mocks#1439
 - rspec/rspec-expectations#1320
pirj added a commit to rspec/rspec-rails that referenced this pull request Sep 18, 2021
cucumber 4.0.0 is not aware of breaking changes in diff-lcs 1.4.3, so
excluding it

cucumber 3.2 would run on Ruby 2.2, 2.3 and 2.4

Sibling PRs:
 - rspec/rspec-core#2877
 - rspec/rspec-mocks#1439
 - rspec/rspec-expectations#1320
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants