2019-08-26 20:41:55 +00:00
|
|
|
.tests-metadata-state:
|
2019-09-18 14:02:45 +00:00
|
|
|
extends:
|
|
|
|
- .default-only
|
2019-10-30 21:07:58 +00:00
|
|
|
- .only:changes-code-backstage
|
2019-04-12 08:56:38 +00:00
|
|
|
variables:
|
|
|
|
TESTS_METADATA_S3_BUCKET: "gitlab-ce-cache"
|
|
|
|
before_script:
|
|
|
|
- source scripts/utils.sh
|
2019-09-27 15:06:16 +00:00
|
|
|
cache:
|
|
|
|
key: tests_metadata
|
|
|
|
paths:
|
|
|
|
- knapsack/
|
|
|
|
- rspec_flaky/
|
2019-04-12 08:56:38 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 31d
|
|
|
|
paths:
|
|
|
|
- knapsack/
|
|
|
|
- rspec_flaky/
|
|
|
|
- rspec_profiling/
|
|
|
|
|
|
|
|
retrieve-tests-metadata:
|
2019-09-27 15:06:16 +00:00
|
|
|
extends: .tests-metadata-state
|
2019-04-12 08:56:38 +00:00
|
|
|
stage: prepare
|
|
|
|
cache:
|
|
|
|
policy: pull
|
|
|
|
script:
|
2019-09-27 15:06:16 +00:00
|
|
|
- source scripts/rspec_helpers.sh
|
|
|
|
- retrieve_tests_metadata
|
2019-04-12 08:56:38 +00:00
|
|
|
|
|
|
|
update-tests-metadata:
|
2019-09-27 15:06:16 +00:00
|
|
|
extends: .tests-metadata-state
|
2019-04-12 08:56:38 +00:00
|
|
|
stage: post-test
|
|
|
|
cache:
|
|
|
|
policy: push
|
|
|
|
script:
|
|
|
|
- retry gem install fog-aws mime-types activesupport rspec_profiling postgres-copy --no-document
|
2019-09-27 15:06:16 +00:00
|
|
|
- source scripts/rspec_helpers.sh
|
|
|
|
- update_tests_metadata
|
2019-04-12 08:56:38 +00:00
|
|
|
only:
|
2019-08-26 20:41:55 +00:00
|
|
|
refs:
|
2019-09-27 15:06:16 +00:00
|
|
|
- schedules
|
2019-09-17 14:16:34 +00:00
|
|
|
variables:
|
2019-09-27 15:06:16 +00:00
|
|
|
# Only update the Knapsack metadata on GitLab.com/gitlab-org/gitlab
|
|
|
|
- $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab"
|
2019-04-12 08:56:38 +00:00
|
|
|
|
|
|
|
flaky-examples-check:
|
2019-08-26 20:41:55 +00:00
|
|
|
extends:
|
|
|
|
- .default-tags
|
|
|
|
- .default-retry
|
2019-09-17 14:16:34 +00:00
|
|
|
- .default-only
|
2019-10-30 21:07:58 +00:00
|
|
|
- .only:changes-code-backstage
|
2019-05-06 10:35:35 +00:00
|
|
|
image: ruby:2.6-alpine
|
2019-08-26 20:41:55 +00:00
|
|
|
stage: post-test
|
2019-04-12 08:56:38 +00:00
|
|
|
variables:
|
|
|
|
NEW_FLAKY_SPECS_REPORT: rspec_flaky/report-new.json
|
|
|
|
allow_failure: true
|
|
|
|
only:
|
2019-08-26 20:41:55 +00:00
|
|
|
refs:
|
2019-09-17 14:16:34 +00:00
|
|
|
- merge_requests
|
2019-04-12 08:56:38 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 30d
|
|
|
|
paths:
|
|
|
|
- rspec_flaky/
|
|
|
|
script:
|
|
|
|
- '[[ -f $NEW_FLAKY_SPECS_REPORT ]] || echo "{}" > ${NEW_FLAKY_SPECS_REPORT}'
|
|
|
|
- scripts/merge-reports ${NEW_FLAKY_SPECS_REPORT} rspec_flaky/new_*_*.json
|
2020-01-21 21:08:54 +00:00
|
|
|
- scripts/flaky_examples/detect-new-flaky-examples $NEW_FLAKY_SPECS_REPORT
|