Stream: hapi
Topic: CI is back
James Agnew (Sep 24 2019 at 19:38):
Oh man I am relieved to finally be able to post this.
After probably 6 months of fighting and fighting with Travis-CI to troubleshoot mysterious failures that seemed to happen in 3/4 of our builds, I decided to take a look at the new Azure Pipelines support that was announced recently. Azure finishes the build in 30 mins (travis generally timed out, having spent 60 minutes only getting half-way through) and seems to pass pretty consistently.
I am so impressed with azure's implementation. Damn.
Michael Lawley (Sep 24 2019 at 19:39):
Good to know - any tips / learnings from getting it going?
James Agnew (Sep 24 2019 at 21:05):
It was remarkably smooth. Feel free to borrow from HAPI's pipeline descriptor if it's useful: https://github.com/jamesagnew/hapi-fhir/blob/master/azure-pipelines.yml
The main thing that is neat is that Maven is a native capability of Azure (as are many other build systems). In travis you have to script up your maven call, which isn't hard obviously.. but Azure understands its output format and gives you nice test reports and things like that. It looks like it's got some native JaCoCo support too for test coverage, although I haven't tried playing with that yet.
I have been planning on migrating off of coveralls.io for coverage reporting (that platform has gotten pretty flaky too) so I'm gonna take this opportunity to get things working with CodeCov instead. I keep looking enviously at the reports that Synthea gets from CodeCov.
The one thing I haven't gotten working right yet is artifact caching between builds (for the local Maven repo's downloaded artifacts). Still trying to figure that one out..
Josh Mandel (Sep 24 2019 at 22:33):
Nice! This is what we're using for the FHIR core build too. (I've also been pretty impressed with the GitHub Actions pre-release, but it doesn't have quite the same feature set yet.)
Gino Canessa (Sep 25 2019 at 17:15):
Semi-related, the page on hapifhir.io still has the old build badge (failing).
James Agnew (Sep 25 2019 at 18:43):
Yeah- I'm gonna update that when we launch the revamped page in a few weeks.
Last updated: Apr 12 2022 at 19:14 UTC