Post list of (unit, system) tests that have been quarantined
Problem
With #8383 (closed), we started posting quarantined QA E2E tests on every MR in Cdot.
We should expand this to include quarantined unit and system tests as well.
Proposal
We can follow/expand the same pattern in https://gitlab.com/gitlab-org/customers-gitlab-com/-/merge_requests/9050.
- Output quarantined tests with
bundle exec rspec --tag quarantine --format json --out $RSPEC_JSON --dry-run
- Parse results with
jq.
Additional improvements
- (Optional) Move from bash script to ruby script. This script is getting more complex and bash scripts are difficult to maintain.
- (Optional) Handle API pagination. When looking for an existing bot comment we only handle one API page. If there are more notes than the page limit, we may end up posting multiple comments.
Result
Edited by Ryan Cobb