-
Notifications
You must be signed in to change notification settings - Fork 245
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
Run CI on GitHub Actions #397
Conversation
17fc577
to
c0c94c8
Compare
4f32cec
to
a61d6f9
Compare
a61d6f9
to
68f7109
Compare
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.
Did you try running without bundle exec
? Also, what's the version of bundler on the Ruby 2.3 run -- maybe you specifically need to use a version to enable support for such an old version?
@dsander I'm open to dropping Ruby 2.3 support -- I think Ruby 2.5 is going to be EOL in a few months, so makes sense to drop something which can't run in CI. What do you think? I don't want to keep Travis CI just for the 2.3 support. |
I don't think bundler is at fault here, the gems load without issues. I think what happens is that I don't even know where to point the finger, is it the github action stack, the What makes things worse, I have no clue is why everything works normally when the specs are run interactively "inside" the action when connecting to it via ssh.
More than happy to drop it, 2.3 is EOL for almost two years, so hopefully not many people are still using it 😄 |
d973a06
to
77bbc59
Compare
If we drop Ruby 2.3 from CI, the rubocop version is also bumped (or we need to enforce the older version in the gemspec. It not complains about new cops not being enabled: https://github.com/dsander/pronto/runs/1800709555?check_suite_focus=true#step:5:11 I don't think enabling all new cops is an option because everyone runs a different rubocop version locally |
I think we should leave Ruby 2.3 in, but explicitly exclude it like done for pronto-haml, so that it's present in the definition and is documented why it fails but doesn't actually get run -- using |
Sure, that works as well. I thought you were implying dropping Ruby 2.3 support all together. |
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.
Thanks for your patience, @dsander! Sorry if I wasn't clear above, I definitely didn't mean to drop Ruby 2.3 support immediately -- that would mean the next release would've to be 0.12.0
(as it's a breaking change).
Can you also remove |
de7f755
to
4e85f59
Compare
Ruby 2.3 has some strange openssl version mismatch issue on GitHub Actions. The `rugged` gem itself installs fine but when it loads it's C extensions it somehow loads the wrong openssl version. Running the specs interactively (even on GitHub Actions) works without issues. For this reason Ruby 2.3 is excluded from version the matrix.
4e85f59
to
245ea0f
Compare
On Ruby 2.4 simplecov 0.18 is installed which [isn't supported by CodeClimate][1]. This [was also broken on master][2]. [1]: https://docs.codeclimate.com/docs/configuring-test-coverage [2]: https://travis-ci.org/github/prontolabs/pronto/jobs/748290009#L1025 Co-authored-by: Ashish Kulkarni <[email protected]>
This ensures the action also runs on pull requests from forks https://docs.github.com/en/actions/reference/events-that-trigger-workflows#pull_request_target
245ea0f
to
2861ac5
Compare
Thanks, @dsander! Sorry about not merging this earlier 🙁 |
Ruby 2.3 has some strange openssl version mismatch issue on GitHub
Actions. The
rugged
gem itself installs fine but when it loads it's Cextensions it somehow loads the wrong openssl version. Running the specs
interactively (even on GitHub Actions) works without issues.
Sorry for the commit mess, getting this to work(ish) was harder than expected. I think the Actions are not run in the PR because I am not a maintainer, The output can be checked here: https://github.com/dsander/pronto/actions/runs/523525169
Sadly I have no clue how we can get the tests on Ruby 2.3 to work.
Rubocop comments are working: dsander#1
Labeled as draft because the switch might mean to drop CI for Ruby 2.3.