-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Convert all publiclab repositories' automated tests/checks from TravisCI to GitHub Actions #9641
Comments
@jywarren I would start working on this. |
@jywarren I'd like to help with this issue. |
@jywarren I'd like to work on this |
Hi all - thank you for your support! I'm currently working on this in publiclab/spectral-workbench#647 (my top priority) and in publiclab/mapknitter#1489 (2nd priority). I've made progress on the first but slowly trying to eliminate remaining errors, reading the log carefully each time. Any input/help/tips/support appreciated!!! |
Hello @jywarren, @govindgoel, and everyone else! Given the list above, what do you think is the best one to start? Thank you all and have a wonderful week. |
Hi Alicia!!!!! Welcome!!! I'm so sorry I missed this as my notifications are quite narrowly tuned (you could imagine how many i get across all PL projects) - my sincere apologies. I've reached out on Gitter as well. I think trying a smaller repository first to get the hang of it is a great idea. Then, taking them in order perhaps - i've ordered them with top = highest priority. And, I'll add your name to my notification filters! Thanks!!! May you have a wonderful week as well! |
This list is looking great! Excellent work, @aliciapaz!! I'm also noting we will have to go back and add correct "CI passing" badges which I noticed in https://github.com/publiclab/image-sequencer#image-sequencer (still has the old Travis badge). The new badge is: https://github.com/publiclab/plots2/workflows/tests/badge.svg?branch=main And we can link it to: https://github.com/publiclab/plots2/actions (or another more specific one like https://github.com/publiclab/plots2/actions/workflows/tests.yml?query=branch%3Amain ? I can't find a route showing just those tests run on the publiclab/plots2 main branch though... |
@jywarren along with the CI changes we can change the badge too. Thanks for the new badge URL. Meanwhile, I will look wherever the changes are needed. @aliciapaz I also missed this, but I liked the name you invented for the task. Thanks |
@govindgoel so you will change the badges in the already migrated repositories, am I right? Thanks to both! |
@aliciapaz Yeah will work on that also will take up a repo to migrate to actions. Thanks |
Super, thanks all!!!
…On Wed, Aug 18, 2021, 10:56 AM Govind Goel ***@***.***> wrote:
@aliciapaz <https://github.com/aliciapaz> Yeah will work on that also
will take up a repo to migrate to actions.
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9641 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAF6JZFTNL2OVLF7MNA623T5PCYJANCNFSM45DFJKLQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
OK - i made a new checklist for the badges. If we could get a more specific link for the badge that would be great, though - only recent runs of "tests" on main branch of publiclab's fork? |
Okay @jywarren will look for that. |
@govindgoel we can use filters to achieve what @jywarren suggests: |
I was able to do this in mapknitter -- unfortunately if we limit to If we don't limit to main, then we get a failure because it reports output of ALL branches, including many which aren't merged yet. - https://github.com/publiclab/mapknitter/actions/workflows/tests.yml/badge.svg vs - https://github.com/publiclab/mapknitter/actions/workflows/tests.yml/badge.svg?branch=main Originally posted by @jywarren in publiclab/mapknitter#1541 (comment) |
Same on Spectral Workbench: publiclab/spectral-workbench@5fa3c00 So I was trying to set up a github actions run that'll run the tests one more time after merge, but I think i wasn't quite able to get that working... #9915 now shows green for plots2, BUT, it does occasionally fail because it's a re-run of the tests, and some tests are intermittent like #10341 AND unfortunately it runs on the So the outcome is that for 2 different common reasons, this will end up showing failing tests pretty often. I'd like to figure out a way we can either:
So, for now we just have some grey badges but if we can fix them we can get this reporting properly again! |
Same at this useful badge generator; https://actions-badge.atrox.dev/ See how although the last PR at #10329 passed fine, it links to this interesting view of several runs where the first passed, but the last failed; presumably all would need to pass for this to work: https://github.com/publiclab/plots2/runs/3941473010 However, maybe this is slight progress, as I wonder if it's only checking |
OK trying to trigger post-merge tests on main branch in mapknitter, which I think will be simpler and more consistent anyways: publiclab/mapknitter@f658f60 |
@jywarren if that works for mapknitter, shall we do the same for the rest? |
Yeah i think so -- but it doesn't seem to have worked! publiclab/mapknitter#1544 Did I miss something? |
I am monitoring here, but don't see any just after it was merged: https://github.com/publiclab/mapknitter/actions Also it's weird - apparently it'd be the default branch on the default badge: I'm not sure if that actually worked because when i switch it to "main" it shows no runs: |
Multi-repository coordinating issue:
starting in #8793, we developed a plan to move all PL repositories from Travis CI to GitHub Actions, and have made a lot of progress. But there are many repositories still to go, so we are coordinating here.
If you'd like to try, unfortunately the PR must be created by a maintainer (for security purposes) but we'd love help as far as it's possible.
Try looking in the "DONE" section for examples of successful conversions of projects with similar architecture!
NOTE: the PR has to be opened from within the main fork, not from for example
jywarren/gh-actions
. See publiclab/infragram#157Remaining Travis => GitHub Actions migrations
Done
https://github.com/publiclab/mapknitter-exporter-sinatra (Setup GitHub Actions mapknitter-exporter-sinatra#131)
https://github.com/publiclab/mapknitter-exporter (Migrate from Travis to Github actions for CI mapknitter-exporter#77)
https://github.com/publiclab/webjack-firmata (Setup github actions webjack-firmata#158)
https://github.com/publiclab/image-sequencer-app (Setup GitHub Actions for CI image-sequencer-app#108)
https://github.com/publiclab/inline-markdown-editor (workflows: add tests.yml inline-markdown-editor#136)
https://github.com/publiclab/mapknitter (Migrate from Travis to GitHub Actions for CI mapknitter#1534)
https://github.com/publiclab/leaflet-blurred-location-display (Setup github actions leaflet-blurred-location-display#138)
https://github.com/publiclab/Leaflet.DistortableImage (migrate from Travis CI to Github Actions for automated tests Leaflet.DistortableImage#837)
https://github.com/publiclab/leaflet-blurred-location (GitHub actions leaflet-blurred-location#265)
https://github.com/publiclab/plots2 (Start migrating off of Travis to GitHub Actions or CircleCI #8793)
https://github.com/publiclab/PublicLab.Editor (Try running tests in GitHub Actions PublicLab.Editor#680)
https://github.com/publiclab/spectral-workbench.js (Setup github actions CI instead of Travis spectral-workbench.js#207)
https://github.com/publiclab/spectral-workbench (Try migrating from Travis to Github Actions spectral-workbench#647)
https://github.com/publiclab/image-sequencer (try moving to Github Actions from Travis for CI image-sequencer#1783)
https://github.com/publiclab/leaflet-environmental-layers (set up github actions CI instead of Travis leaflet-environmental-layers#503)
https://github.com/publiclab/community-toolbox (Created tests.yml to move to GitHub Actions community-toolbox#435)
https://github.com/publiclab/infragram
https://github.com/publiclab/webjack (Try migrating from Travis CI to GitHub Actions webjack#191)
Badges
The new badge is in the format: https://github.com/publiclab/plots2/workflows/tests/badge.svg?branch=main
To get them running on the main branch, publiclab/PublicLab.Editor#740 may be needed
And we can link it to: https://github.com/publiclab/plots2/actions (or another more specific one like https://github.com/publiclab/plots2/actions/workflows/tests.yml?query=branch%3Amain ? I can't find a route showing just those tests run on the publiclab/plots2 main branch though...
Badges changed
The text was updated successfully, but these errors were encountered: