Skip to content

[wip] Ruby 2.4.0 support #1765

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

Merged
merged 6 commits into from
Jan 6, 2017
Merged

[wip] Ruby 2.4.0 support #1765

merged 6 commits into from
Jan 6, 2017

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Dec 27, 2016

No description provided.

@myronmarston
Copy link
Member

You need to prevent rubocop from installing on 2.4 to prevent the incompatible json from installing, or upgrade rubocop. (I opted for the former in the other repos since I didn't want to mess with upgrading rubocop as part of this).

Also, is the 1.8.7 segfault a new thing?

@JonRowe JonRowe force-pushed the ruby_24 branch 2 times, most recently from cbf6ed8 to ae6872c Compare January 6, 2017 06:10
@JonRowe
Copy link
Member Author

JonRowe commented Jan 6, 2017

@myronmarston this is passing on 2.4.0 and should get other builds back to green because of it, we should merge if the build failures match master which is also still failing (compare with https://travis-ci.org/rspec/rspec-rails/builds/184730807), let me know if you approve or otherwise :)

@@ -211,8 +211,8 @@ def perform; end

it "passes with provided argument matchers" do
expect {
hello_job.perform_later(42, "David")
}.to have_enqueued_job.with(instance_of(Fixnum), instance_of(String))
ignoring_warnings { hello_job.perform_later(42, "David") }
Copy link
Member

Choose a reason for hiding this comment

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

It'd be nice to document what warnings are being ignored here with a comment.

Copy link
Member Author

Choose a reason for hiding this comment

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

We actually don't need that any more, git derp.

@myronmarston
Copy link
Member

If this fixes the builds for the other repos, I'm in favor of merging it. I notice that on 1.8.7 we get some segfaults against certain versions of rails. should we remove those from the build matrix or something?

@JonRowe
Copy link
Member Author

JonRowe commented Jan 6, 2017

@myronmarston I'd have to defer to @samphippen on that, Rails supports 1.8.7 on those versions so we really should check it, the seg fault seems intermittent perhaps we should retry them? We also need to fix 1.9.2 on master but both those things are for another PR, this should fix our builds.

@fables-tales
Copy link
Member

@JonRowe it looks like it's cucumber: https://travis-ci.org/rspec/rspec-rails/jobs/189500018#L4231 can you try bumping the cucumber version?

@JonRowe JonRowe merged commit 7214d63 into master Jan 6, 2017
@JonRowe JonRowe deleted the ruby_24 branch January 6, 2017 21:37
@myronmarston
Copy link
Member

Thanks, @JonRowe. Want to open a PR in each repo triggering a travis build so we can see if they go green now? Feel free to use the rspec-dev task to do that.

@JonRowe
Copy link
Member Author

JonRowe commented Jan 6, 2017

I choose to restart the cron'd builds instead

@myronmarston
Copy link
Member

I choose to restart the cron'd builds instead

What cron are you talking about? I've been getting periodic build emails from travis for old commits of mine and had no idea why. Travis support mentioned a cron as the cause but I didn't know we setup a cron...

https://twitter.com/travisci/status/812100226051932161

@JonRowe
Copy link
Member Author

JonRowe commented Jan 7, 2017

Yeah it's a travis feature that runs master every so often unless a build has been run in that period, I set it up as an experiment as we have in the past come across broken master from downstream dependencies. Bit noisy when the build is broken though.

sebjacobs pushed a commit to futurelearn/rspec-rails that referenced this pull request Mar 15, 2019
* run ruby 2.4.0 builds

* fix build on 2.4.0 by insisting on uptodate json

* supress rubocop on 2.4.0

* Change active job spec to use literals thus avoiding Ruby 2.4.0 warning

* disable 2.4.0 builds on unsupported Rubies

* temporarily suppress builds that rails will eventually support
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