-
Notifications
You must be signed in to change notification settings - Fork 96
Migrate CI to github actions [INFRA-351] #905
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
Conversation
@notoriaga I'm only seeing the Rust workflows running, is there something we need to do to enable the other workflows? |
I was trying out using these as triggers for each language - on:
push:
tags:
- "*"
pull_request:
paths:
- "$lang/**" So the language specific workflows only run on prs that change that folder. I removed the travis badge from the Cargo.toml which is why it's building rust. This is obviously not how travis is doing it now, but figured it might be nice to save minutes. It runs everything on tags just to be sure. If we wanna run everything on all prs we just need to remove the |
Ok, this makes sense, I think it'd also make sense to have a way to force everything to build, (which would be nice for this PR in particular, so we can see everything running). |
@notoriaga untagged myself for now, please re-tag me when there's new things to review |
36989e0
to
f7d669a
Compare
f7d669a
to
847c921
Compare
@silverjam A few updates/questions
|
👍
I don't think this will break anything |
37f2f22
to
9456d12
Compare
@notoriaga is this ready for review again? |
@silverjam Yeah should be ready for a look. Only thing I can't figure out is why the rust versions seem to run slower on gh actions compared to travis Occasionally the benchmarks pass, so wondering if it has to do with gh actions running on shared instances. But I thought that was one of the reasons the benchmarks use docker, for more consistent resource availability across runs |
|
||
- name: Upload coverage to codecov.io | ||
run: | | ||
bash <(curl -s https://codecov.io/bash) -s c/build || echo "Codecov did not collect coverage reports"; |
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.
IIRC, the bash codecov usually doesnt set an exit status, so the || ..
here is useless.
This upload isnt working; see https://github.com/swift-nav/libsbp/runs/2124966802#step:5:530
It seems codecov hasnt been working for a while in this repo, so perhaps that could be another task to get them all working in github actions after this PR.
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.
It seems codecov<->github-integration isnt enabled for this repo. It is possible to send reports without that integration being enabled.
jobs: | ||
coverage: | ||
name: Test | ||
runs-on: ubuntu-18.04 |
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.
there are three jvms on https://github.com/actions/virtual-environments/blob/ubuntu18/20210309.1/images/linux/Ubuntu1804-README.md . It would be useful to print the JVM version that is being used for these tests. (Under Travis, the version was explicitly being set to 1.8.0)
26b6668
to
755c37c
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.
Likely all workflows should run if test_data/**
is modified
@@ -1,7 +1,5 @@ | |||
## Specification and Bindings for Swift Binary Protocol | |||
|
|||
[![Build status][1]][2] |
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.
So we can probably add this back later, but it would be for all languages, instead of just one global "CI" badge?
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.
the important comments are resolved
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.
@notoriaga let's fix-up the PR message to include some more details and please tag the summary with a Jira and then...
@silverjam do you mean by adding the ticket to the pr name? |
Yes |
For the most part this tries to be a straight port of what travis did, with a few exceptions -
Actions
tab..zip
extension (previously a mix of.zip
and.tar.gz
)This also includes a few miscellaneous changes to get everything working -
serialport
in the js librarytest-javascript
make recipe