debian-mirror-gitlab/.gitlab/ci/test-metadata.gitlab-ci.yml

68 lines
1.6 KiB
YAML
Raw Normal View History

2019-12-04 20:38:33 +05:30
.tests-metadata-state:
extends:
- .default-only
2019-12-21 20:55:43 +05:30
- .only-code-changes
2019-07-31 22:56:46 +05:30
variables:
TESTS_METADATA_S3_BUCKET: "gitlab-ce-cache"
before_script:
- source scripts/utils.sh
2019-12-21 20:55:43 +05:30
cache:
key: tests_metadata
paths:
- knapsack/
- rspec_flaky/
2019-07-31 22:56:46 +05:30
artifacts:
expire_in: 31d
paths:
- knapsack/
- rspec_flaky/
- rspec_profiling/
retrieve-tests-metadata:
2019-12-21 20:55:43 +05:30
extends: .tests-metadata-state
2019-07-31 22:56:46 +05:30
stage: prepare
cache:
policy: pull
script:
2019-12-21 20:55:43 +05:30
- source scripts/rspec_helpers.sh
- retrieve_tests_metadata
2019-07-31 22:56:46 +05:30
update-tests-metadata:
2019-12-21 20:55:43 +05:30
extends: .tests-metadata-state
2019-07-31 22:56:46 +05:30
stage: post-test
cache:
policy: push
script:
- retry gem install fog-aws mime-types activesupport rspec_profiling postgres-copy --no-document
2019-12-21 20:55:43 +05:30
- source scripts/rspec_helpers.sh
- update_tests_metadata
2019-07-31 22:56:46 +05:30
only:
2019-12-04 20:38:33 +05:30
refs:
2019-12-21 20:55:43 +05:30
- schedules
2019-12-04 20:38:33 +05:30
variables:
2019-12-21 20:55:43 +05:30
# Only update the Knapsack metadata on GitLab.com/gitlab-org/gitlab
- $CI_SERVER_HOST == "gitlab.com" && $CI_PROJECT_PATH == "gitlab-org/gitlab"
2019-07-31 22:56:46 +05:30
flaky-examples-check:
2019-12-04 20:38:33 +05:30
extends:
- .default-tags
- .default-retry
- .default-only
- .only-code-changes
2019-09-04 21:01:54 +05:30
image: ruby:2.6-alpine
2019-12-04 20:38:33 +05:30
stage: post-test
2019-07-31 22:56:46 +05:30
variables:
NEW_FLAKY_SPECS_REPORT: rspec_flaky/report-new.json
allow_failure: true
only:
2019-09-30 21:07:59 +05:30
refs:
2019-12-04 20:38:33 +05:30
- merge_requests
2019-07-31 22:56:46 +05:30
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
- scripts/detect-new-flaky-examples $NEW_FLAKY_SPECS_REPORT