Skip to content

feat(sg): print annotations when viewing status of your build

Administrator requested to merge wbezuide/sg/annotations into main

Created by: burmudar

This adds that capability to also print annotations that is present on your build when view the status via sg ci status

Part of https://github.com/sourcegraph/sourcegraph/issues/26072

image

I've also made a slight change to the print of failed jobs

  • old image

  • new (the green bar is zoom ... not part of this change) image

I've also added a way to change the markdown styling with MarkdownStyleOpts. Reason for this is I wanted to remove margins but wanted indenting. Below is a comparison of the old default markdown rendering, and the new one with the indenting.

  • Old

image

  • New

image

Issues

  • There is one slight issue with the annotation artifact sometimes not getting uploaded see #37753
  • Backcompat tests for some reason is not creating an annotation the annotate.sh way 🤯

Test plan

Lots and lots of manual testing with main-dry-run

Merge request reports

Loading