2019-10-10 18:06:00 +00:00
|
|
|
.qa-job-base:
|
2022-08-30 12:12:25 +00:00
|
|
|
image: ${REGISTRY_HOST}/${REGISTRY_GROUP}/gitlab-build-images/debian-bullseye-ruby-${RUBY_VERSION}:bundler-2.3-chrome-${CHROME_VERSION}-docker-${DOCKER_VERSION}
|
2019-10-10 18:06:00 +00:00
|
|
|
extends:
|
|
|
|
- .default-retry
|
2020-06-02 12:08:33 +00:00
|
|
|
- .qa-cache
|
2019-10-10 18:06:00 +00:00
|
|
|
stage: test
|
2020-02-20 18:08:51 +00:00
|
|
|
needs: []
|
2021-05-14 18:10:34 +00:00
|
|
|
variables:
|
|
|
|
USE_BUNDLE_INSTALL: "false"
|
|
|
|
SETUP_DB: "false"
|
2021-09-07 12:11:26 +00:00
|
|
|
QA_EXPORT_TEST_METRICS: "false"
|
2019-10-10 18:06:00 +00:00
|
|
|
before_script:
|
2021-05-14 18:10:34 +00:00
|
|
|
- !reference [.default-before_script, before_script]
|
2022-07-15 09:10:09 +00:00
|
|
|
- cd qa && bundle install
|
2019-10-10 18:06:00 +00:00
|
|
|
|
|
|
|
qa:internal:
|
2020-02-06 18:08:54 +00:00
|
|
|
extends:
|
|
|
|
- .qa-job-base
|
2022-04-12 18:10:14 +00:00
|
|
|
- .qa:rules:internal
|
2019-10-10 18:06:00 +00:00
|
|
|
script:
|
2022-04-14 06:08:29 +00:00
|
|
|
- bundle exec rspec -O .rspec_internal
|
2019-10-10 18:06:00 +00:00
|
|
|
|
2020-02-18 15:08:51 +00:00
|
|
|
qa:internal-as-if-foss:
|
2020-01-23 12:08:38 +00:00
|
|
|
extends:
|
2020-06-02 12:08:33 +00:00
|
|
|
- qa:internal
|
2022-04-12 18:10:14 +00:00
|
|
|
- .qa:rules:internal-as-if-foss
|
2020-02-06 18:08:54 +00:00
|
|
|
- .as-if-foss
|
2020-01-23 12:08:38 +00:00
|
|
|
|
2019-10-10 18:06:00 +00:00
|
|
|
qa:selectors:
|
2020-02-06 18:08:54 +00:00
|
|
|
extends:
|
|
|
|
- .qa-job-base
|
|
|
|
- .qa:rules:ee-and-foss
|
2019-10-10 18:06:00 +00:00
|
|
|
script:
|
|
|
|
- bundle exec bin/qa Test::Sanity::Selectors
|
|
|
|
|
2022-03-25 18:07:24 +00:00
|
|
|
qa:master-auto-quarantine-dequarantine:
|
2022-01-19 15:14:05 +00:00
|
|
|
extends:
|
|
|
|
- .qa-job-base
|
|
|
|
rules:
|
|
|
|
- if: '$QA_TRIGGER_AUTO_QUARANTINE =~ /true|yes|1/i'
|
|
|
|
script:
|
2022-03-25 18:07:24 +00:00
|
|
|
- bundle exec confiner -r .confiner/master.yml
|
2022-01-19 15:14:05 +00:00
|
|
|
allow_failure: true
|
|
|
|
|
2022-03-25 18:07:24 +00:00
|
|
|
qa:nightly-auto-quarantine-dequarantine:
|
|
|
|
extends:
|
|
|
|
- .qa-job-base
|
|
|
|
rules:
|
|
|
|
- if: '$QA_TRIGGER_AUTO_QUARANTINE =~ /true|yes|1/i'
|
|
|
|
script:
|
|
|
|
- bundle exec confiner -r .confiner/nightly.yml
|
|
|
|
allow_failure: true
|
|
|
|
|
2020-02-18 15:08:51 +00:00
|
|
|
qa:selectors-as-if-foss:
|
2019-10-10 18:06:00 +00:00
|
|
|
extends:
|
|
|
|
- qa:selectors
|
2020-05-15 15:08:04 +00:00
|
|
|
- .qa:rules:as-if-foss
|
2020-02-06 18:08:54 +00:00
|
|
|
- .as-if-foss
|
2019-10-10 18:06:00 +00:00
|
|
|
|
2022-08-30 12:12:25 +00:00
|
|
|
qa:update-qa-cache:
|
2020-06-02 12:08:33 +00:00
|
|
|
extends:
|
|
|
|
- .qa-job-base
|
2021-05-18 12:10:26 +00:00
|
|
|
- .qa-cache-push
|
2020-06-02 12:08:33 +00:00
|
|
|
- .shared:rules:update-cache
|
|
|
|
stage: prepare
|
|
|
|
script:
|
|
|
|
- echo "Cache has been updated and ready to be uploaded."
|
|
|
|
|
2022-08-30 12:12:25 +00:00
|
|
|
e2e:package-and-test:
|
2021-10-19 00:10:29 +00:00
|
|
|
extends:
|
2022-08-31 09:13:12 +00:00
|
|
|
- .qa:rules:package-and-test
|
2022-08-30 12:12:25 +00:00
|
|
|
stage: qa
|
|
|
|
needs:
|
|
|
|
- build-assets-image
|
|
|
|
- build-qa-image
|
|
|
|
- e2e-test-pipeline-generate
|
2022-09-06 03:12:08 +00:00
|
|
|
variables:
|
|
|
|
SKIP_MESSAGE: Skipping package-and-test due to mr containing only quarantine changes!
|
2022-08-30 12:12:25 +00:00
|
|
|
trigger:
|
|
|
|
strategy: depend
|
|
|
|
include:
|
2022-09-06 03:12:08 +00:00
|
|
|
- artifact: package-and-test-pipeline.yml
|
2022-08-30 12:12:25 +00:00
|
|
|
job: e2e-test-pipeline-generate
|