Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Further Integrating Google Cloud Build with GitHub Checks API

I have installed Google Cloud Build in a GitHub project of mine and added a Dockerfile and cloudbuild.yaml that I am, so far, happy with. The build passes or fails based on unit tests and lint rules.

However, when I look at the checks tab in GitHub, all I see is this:

limited summary

Which is very uninformative. I would prefer not to have to go into Google Cloud Build to figure out why the build failed.

I would like to be able to break down Build into Test and Lint subgroups and each of those would have their actual results (or some subset of them).

How can I do that?

like image 345
eliw00d Avatar asked Jun 14 '26 20:06

eliw00d


1 Answers

Note that the integration with Google Cloud is very recent for GitHub: end of July 2018: that can still evolve as a service.

What you see, for now, is described as:

Cloud Build uses the new Checks API, a better way to get feedback from integration on your code. Once a build is complete, you can see rich status reports, annotated code, and detailed information—all without leaving GitHub.

https://user-images.githubusercontent.com/896475/43161255-9893c828-8f55-11e8-94ed-d35f986db1cc.png

For now, Google adds:

Insights:

Once the build is complete, details about build times, failures and artifacts are available within GitHub through the Checks API, so you can understand and diagnose build results from within the familiar GitHub environment.
Full logs and history are available in Cloud Build’s UI in the Google Cloud Console.

like image 186
VonC Avatar answered Jun 16 '26 19:06

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!