Skip to content

Create json files for stable and unstable specs

Sanad Liaquat requested to merge tti-shl-export-result-as-json into master

What does this MR do and why?

In https://gitlab.com/gitlab-com/gitlab-OKRs/-/work_items/5492, we want to automate promotion to reliable bucket and quarantining reliable test that are no longer reliable.

Part of this effort is to produce json files for stable (ready to be promoted to reliable bucket) and unstable (in reliable but have been failing) specs that will feed into the code/script to create the necessary MRs. In this MR, we create those json files.

Tested here: https://gitlab.com/gitlab-org/quality/toolbox/-/jobs/5752502510 (Download the job artifacts to view the files)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Change the PROJECT_ID to an id of a project on your local.

From the qa/ directory, run:

GITLAB_ACCESS_TOKEN=<YOUR_PAT> CI_API_V4_URL=http://gdk.test:3000/api/v4/ QA_INFLUXDB_URL=https://influxdb.quality.gitlab.net QA_INFLUXDB_TOKEN=<QA_INFLUXDB_TOKEN_FROM_1P> bundle exec rake "reliable_spec_report[14, true]"

The following json files will be created:

  • qa/tmp/stable_specs.json
  • qa/tmp/unstable_specs.json

The above command is intentionally missing SLACK_WEBHOOK variable as we do not want to post to Slack for testing. This will cause an error but the json files will be created.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sanad Liaquat

Merge request reports