diff options
author | Mark Lapierre <mlapierre@gitlab.com> | 2019-06-03 10:37:43 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-06-03 10:37:43 +0000 |
commit | 3922c6da841871f010dcffb3fcbfffc48d49bdab (patch) | |
tree | ec90ac9c18bbd01056b42dc89bbe5a1de2be0958 /.gitlab | |
parent | 0488c26ec6d10b943999b7fb61ca7209ab2c275e (diff) | |
download | gitlab-ce-3922c6da841871f010dcffb3fcbfffc48d49bdab.tar.gz |
Generate knapsack report for review-qa-all
Add knapsack qa report and use it to run tests in parallel
Use the RSpec runner with knapsack
The way the Knapsack runner uses exec to start rspec seems
incompatible with the way we expect it to work. Plus, it requires
specifying KNAPSACK_TEST_DIR.
Instead, we use knapsacks AllocatorBuilder to select the spec
files to run, and then start rspec as normal, via
RSpec::Core::Runner.run
This also means we can incorporate tags.
Let the job run automatically
Include KNAPSACK_TEST_FILE_PATTERN in vars
Check all defined knapsack env vars before requiring knapsack
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/ci/review.gitlab-ci.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.gitlab/ci/review.gitlab-ci.yml b/.gitlab/ci/review.gitlab-ci.yml index 80356fa1dc2..f5ed3e1ad9a 100644 --- a/.gitlab/ci/review.gitlab-ci.yml +++ b/.gitlab/ci/review.gitlab-ci.yml @@ -165,7 +165,10 @@ review-qa-all: <<: *review-qa-base allow_failure: true when: manual + parallel: 5 script: + - export KNAPSACK_REPORT_PATH=knapsack/${CI_PROJECT_NAME}/review-qa-all_master_report.json + - export KNAPSACK_TEST_FILE_PATTERN=qa/specs/features/**/*_spec.rb - gitlab-qa Test::Instance::Any "${QA_IMAGE}" "${CI_ENVIRONMENT_URL}" .review-performance-base: &review-performance-base |