-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Enable GitHub Actions with updated Rubocop and Danger #2143
Conversation
Generated by 🚫 Danger |
Tried this out on my own fork if you're interested in how it looks: |
2aa0a7c
to
e0fd599
Compare
IMHO, I'm not a big fan moving all to GH (Microsoft) and see no reason to do it. Travis is supporting OSS since years, then Microsoft see it as evil, maybe you remember, |
I think since TravisCI got bought the support for OSS projects has not been that good. Just looking at the queues for OSS CI jobs does not look that good. Waiting 5 hours to get feedback on your changes is not really motivating. |
Also travis-ci.org is getting deprecated to be replaced with travis-ci.com. Think this is happening when the year changes. The new travis-ci.com is supporting OSS but only some thousand minutes of CI time a month for free, this is what is happening. I don't think Idera is any better than M$ when it comes to money and many OSS projects will have CI that is not responding in the beginning of 2021. |
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.
I'd like to merge this because builds are taking forever on Travis-CI these days, GH actions are blazing fast, have better UX, etc. We can always go back if needed in some future. Right now a bunch of other projects I am involved with are moving for the reasons @anakinj has outlined above.
Can we also please delete .travis.yml in the same CR, and make sure the badges are updated?
Good catch on Rubocop, thank you.
spec/grape/api_spec.rb
Outdated
it 'array' do | ||
# Temporary skipped | ||
# XML generation for an array behaves differently when Rails (or something else) is loaded | ||
xit 'array' do |
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.
We should fix this. How differently?
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.
I will try to figure out what causes this change in behaviour. Probably some 3rd party dependency when RuboCop and friends got updated.
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.
I think i've figured it out. The problem is that grape is not directly requiring active_support/core_ext/array/conversions
that adds the Array#to_xml
method. It has worked out of luck because activesupport internally loads the file when active_support/time
is loaded.
Now the latest 6.1 version of activesupport changes this internal loading, more precisely rails/rails@12959de#diff-f805b1a36e26831e5eee78fb55549de44fb842f78443b178d5d5438105152017
I will revert this change and fix the issue in a separate PR
I will continue on this a little later today. |
e0fd599
to
5c8fbd8
Compare
Did what was suggested:
Related to Coveralls something needs to be done to get the token in use for the workflow. Added to the repository and somehow passed as a env variable to the action. |
5c8fbd8
to
45d1a8a
Compare
If seen valuable we could add a daily build for the master branch to ensure the compatibility with 3rd party dependencies. When working on a gem you tend to have a local |
Let's do that separately, feature creep ;) |
45d1a8a
to
9ede39a
Compare
Did this migration for the ruby-jwt gem a few weeks back and it has been great. The speed compared to Travis CI is super and having a CI run on forks really give you the chance to polish everything before opening a PR.
Took the liberty of trying to improve the developer experience for this gem also. Unfortunately this was not that straightforward and noticed some issues in the process.
What was done:
Needed to disable one test related to XML generation. I suspect the TravisCI setup had some extra dependencies that made it work.Still think this needs a little tuning related to the Coveralls integration, some secrets needs to be added to the repository secrets and maybe some ENV variables for the action that is in charge of pushing the results to Coveralls.