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.

  1. Output quarantined tests with
bundle exec rspec --tag quarantine --format json --out $RSPEC_JSON --dry-run
  1. Parse results with jq.

Additional improvements

  1. (Optional) Move from bash script to ruby script. This script is getting more complex and bash scripts are difficult to maintain.
  2. (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 Jan 24, 2024 by Ryan Cobb
Assignee Loading
Time tracking Loading