GitHub Annotations Support

Fedor Korotkov
Apr 22, 2019 · 2 min read

While working on a new functionality or fixing an issue it’s crucial to get CI feedback as soon as possible. Fast CI builds are important but it’s also important how fast one can find a reason of a failing build. Usual flow requires to open a separate page for the failing CI build and scroll through all the logs to finally find a relevant error message. How inefficient!

Today Cirrus CI starts supporting GitHub Annotations to provide inline feedback right where you review your code. No need to switch context anymore!

Image for post
Image for post
Example of JUnit Annotations

This became possible as a result of recently added features like and . Now each artifact can specify a format so it can be parsed into annotations. Here is an example of .cirrus.yml file which saves and annotates JUnit reports of a Gradle build:

image: gradle:jdk8
script: gradle check
path: "**/test-results/**/*.xml"
format: junit
Image for post
Image for post
Task with JUnit artifacts

Currently Cirrus CI can only parse JUnit XML but many tools use this format already. Please what kind of formats Cirrus CI should support next! and contributions are highly appreciated! 😉

We highly encourage everyone to try Cirrus CI. It’s free for public repositories and all organizations get 200 CPU hours worth of to try it on private repositories.

As always don’t hesitate to ping or ask any questions .


Making Developers Happy

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store