dev/ci: provide annotation opts as env instead of args
Created by: bobheadxi
This change allows us to configure multiple "scrapers" on AnnotatedCmd
more easily by passing the annotation options as an env var, ANNOTATE_OPTS
, rather than positional arguments. No external API or behavioural changes in this PR.
The next step will be to add a scraper and option builder for test reports uploads (https://github.com/sourcegraph/sourcegraph/pull/31969) as part of https://github.com/sourcegraph/sourcegraph/issues/31409
Don't mind the branch name, I forgot to change it
Test plan
- add demo failure: https://github.com/sourcegraph/sourcegraph/commit/c1350d83ffc62984a5d4a0d68c1f5629152681b0
- verify annotations still render: https://buildkite.com/sourcegraph/sourcegraph/builds/134284