-
Notifications
You must be signed in to change notification settings - Fork 61
Conversation
9326843
to
105d1d5
Compare
Caching should already work (after a merge for master for docker). Right now, codecov has been scraped, I'll see if it's easy to restore. |
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.
Looks pretty good!
What is the goal of the docker workflow? Are we not already updating those images in gitlab?
Are these two log messages particularly concerning?
WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json.
And:
Error response from daemon: repository docker.pkg.github.com/advancedtelematic/aktualizr/aktualizr-ci not found: name unknown: docker package "aktualizr-ci" does not exist under owner "advancedtelematic/aktualizr"
It's also weird that I don't see the output of the tests in the coverage run. I guess if it succeeds, it's fine.
Actually uploading coverage would be good, but can't we move that to gitlab as well? Might be better.
In gitlab CI, we store the images in gitlab's docker repository which is only accessible from the company network.
No, not really that's the recommended way (see link above). More info on the token here: https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token. I suspect that actions triggered from external forks will actually won't be able to use this token and won't benefit from caching. That should probably be tested as well. Tagging @zabbal, just in case :)
Right now, no image has been pushed but this should go away as soon as we merge this PR to master.
I've also noticed that it sometimes gives out logs very slowly or not at all. But the "View raw logs" from the menu in the corner has worked for me so far.
I'll look into it today :). |
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
To replace Travis Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
105d1d5
to
915e18b
Compare
Yepp, looks fine to me. Github have access to their token anyway so when it's stored in their CI runner it makes no difference from security PoV Out of curiosity, what's the advantage of gh-actions compared to travis? |
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
915e18b
to
071e052
Compare
Thanks for that tip! And everything else looks/sounds fine. |
I was wrong actually (https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#using-encrypted-secrets-in-a-workflow):
But the security is here: https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token However, this also means that codecov won't work for forked PRs if I add it here, as it uses a codecov token as a secret. @zabbal thanks for the quick look. Travis and GitHub Actions are both free for public repositories. The advantage is that GitHub actions seems much more supported right now than Travis which looks like it's maintained on life support. It's been slower over time and it has the hard time out limit of 50 minutes that has caused problems in the past. |
Codecov Report
@@ Coverage Diff @@
## master #1597 +/- ##
==========================================
- Coverage 82.44% 81.11% -1.33%
==========================================
Files 189 189
Lines 11932 11932
==========================================
- Hits 9837 9679 -158
- Misses 2095 2253 +158
Continue to review full report at Codecov.
|
test_imagerepo_failure just failed three times in a row... |
Maybe, it indicates that there is an issue(s) with handling edge cases of Images repo in aktualizr... |
Well, the following message speaks for itself |
Does it? What do you mean? |
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.
Looks quite similar to the gitlab's yaml. I am just wondering if it's really free for open source projects.
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.
LGTM. But a couple questions:
- What changed since the last round of errors?
- Is it better to have the codecov upload here or in gitlab? I'm fine either way, so there's no problem with this as it is.
The bad kind of "fix", pressed retry :). I've looked a little bit in the test but I'm not sure what could make it more reliable.
Opinion: gitlab: github: But switching it to gitlab should be easy in the current state anyway, just a matter of adding the token there. |
I forgot a |
No description provided.