Download Knapsack and flaky specs report from master artifacts (take 2)
requested to merge 32222-use-artifact-relative-urls-to-fetch-knapsack-and-flaky-tests-metadata-take-2 into master
What does this MR do?
This dogfood artifacts and download the Knapsack report, flaky specs report, and Crystalball report from the latest successful master
pipeline triggered by @gitlab-bot (this should be a scheduled pipeline for which we're sure update-tests-metadata
was run).
This also remove the need to upload these reports to S3 since they're already uploaded as artifacts.
Verification
https://gitlab.com/gitlab-org/gitlab/-/jobs/818931717
$ source ./scripts/rspec_helpers.sh
$ retrieve_tests_metadata
GET https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/pipelines?per_page=100&status=success&ref=master&username=gitlab-bot
GET https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/pipelines/209052938/jobs?per_page=100&page=1&scope=success
curl: (6) Could not resolve host: [MASKED]'
The 'update-tests-metadata' job ID is 818309105
GET https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/jobs/818309105/artifacts/knapsack/report-master.json
GET https://gitlab.com/api/v4/projects/gitlab-org%2Fgitlab/jobs/818309105/artifacts/rspec_flaky/report-suite.json
Uploading artifacts for successful job
00:02
Uploading artifacts...
knapsack/: found 2 matching files and directories
rspec_flaky/: found 2 matching files and directories
rspec_profiling/: found 1 matching files and directories
- Knapsack report is downloaded successfully: https://gitlab.com/gitlab-org/gitlab/-/jobs/818931717/artifacts/browse/knapsack/
- Flaky specs report is downloaded successfully: https://gitlab.com/gitlab-org/gitlab/-/jobs/818931717/artifacts/browse/rspec_flaky/
Related to #32222 (closed).
Edited by Rémy Coutable