-
Notifications
You must be signed in to change notification settings - Fork 61
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
Set up all CI to use GH actions #1443
Set up all CI to use GH actions #1443
Conversation
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
b1e42ef
to
aee2018
Compare
What is status of this PR? Can it be closed? |
I couldn't find a |
This was meant as a P.O.C., and also to gauge interest, but I never got any feedback - if we're interested in moving forward with this, there's very little work left; this PR is practically done. @MartinBasti; What should I do with this? Are we interested in pursuing it? If so , I'll open it for reviews. |
I'd like move to GH actions then |
@athos-ribeiro, @chmeliik, @lcarva, @MartinBasti, @rcerven, @twaugh; You can see what a run looks like here Obviously, this could be extended to osbs-client, koji-c, d-f-p etc. |
So we will not have such nice link to coveralls web to see details of coverage? Why stickler is not there anymore? |
Yeah, that's a little bit of a bummer. Unfortunately, Coveralls is very hard to work with (and Codecov is worse!)... More work may be necessary to tweak the Coveralls action so that we get info "up front" rather than having to dig for it (but n.b. that I don't know that this is even possible). EDIT: Ah, I remembered. Using Coveralls with a Python project is a total kludge and a hack. If you're using a supported language (JS, whatever) your action's "Details" link points out to Coveralls.io
We can easily add flake8 and shellcheck GH actions |
94d1a1d
to
8676d2c
Compare
@MartinBasti; OK, got it.
Now, if you click on the "Details" link in the "CI box", you'll go directly to Coveralls.io. This also fixed some odd issues I saw at Coveralls with formatting etc. |
d98b639
to
6aa54b1
Compare
6aa54b1
to
af14eab
Compare
Added flake8 and shellcheck actions. N.B. LGTM doesn't operate on forks - I have to take it on faith that it will continue to work if this is merged to mainline, but I have no reason to doubt that it will. |
3d3feb4
to
56533cc
Compare
Looks good. Thanks, Ben. Any objections on taking this path for all repos then? |
I'm all for it, I'd merge this and if it works well, we can update other repos. |
Is code compatible with flake8? I liked stickler because it points to issues only in new changes. Why we cannot stay with stickler? |
I fixed the tiny handful of space/newline issues flake8 was moaning about. The problems I have with Stickler:
Part of my goal here was to remove 3rd-party dependencies:
I even started out with a multi-linter made by someone else, then once I saw how straightforward it was to create actions - I just made my own:
Honestly, this is probably better reviewed in my personal repo's PR, where you can see the results of the actions in place. The only remaining issue I have there is @(&#^$ shellcheck... The coup de grâce, for me: if any action fails for whatever reason, instead of having to re-run all of the time and resource-intensive pytests, just to e.g. re-run 'bandit', it's possible to re-trigger each action separately, manually, without having to re-push. This saves time, energy, bandwidth, frustration... |
Ah, so the schellcheck action would fail if merged right? It might be nice to have an option to limit shellcheck to specific files, like only |
Totally doable EDIT: Done |
b96e161
to
5821130
Compare
Nope! After configuring to only check 'test.sh', and silencing two complaints therein, everything is green 🚀 |
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
Signed-off-by: Ben Alkov <ben.alkov@redhat.com>
5821130
to
cfdef6d
Compare
There are a lot of hard-coded Fedora versions in here, eg "30" and "29" have been EOL for some time now. Someone or something needs to watch the Fedora versions in https://github.com/containerbuildsystem/actions as well to make sure those do not go EOL. |
Signed-off-by: Ben Alkov ben.alkov@redhat.com
Maintainers will complete the following section