dev/ci: annotate sg check commands in CI
Created by: bobheadxi
Add a -annotate
flag for sg check
that can be used on any sg check
command run in CI to automatically be compatible with bk.AnnotatedCmd
. It simply writes the result output to a file, which gets picked up by the pipeline generator.
Example with https://github.com/sourcegraph/sourcegraph/pull/31217 , which demonstrates sg check docker
being annotated in CI:
Test plan
Example build: https://buildkite.com/sourcegraph/sourcegraph/builds/131508
Run locally and examine output in ./annotations
: go run ./dev/sg check docker