diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-28 10:14:19 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-28 10:14:19 +0000 |
commit | 23eb41fc13469dc6d74bf216d283145416541ba5 (patch) | |
tree | 8558b98fe7a1aa5a414d8bfa78379abb367d62fb | |
parent | 8bc3c69e03d0c8581ace2cf9610a5a3833a3eac5 (diff) | |
parent | 68cafb38ee84eb208f8bedb8bce9007b573a71fe (diff) | |
download | gitlab-ce-23eb41fc13469dc6d74bf216d283145416541ba5.tar.gz |
Merge branch 'enable-perf-in-mr' into 'master'
Enabling performance metrics on Review Apps
Closes #57881
See merge request gitlab-org/gitlab-ce!25549
-rw-r--r-- | .gitlab-ci.yml | 14 | ||||
-rw-r--r-- | doc/development/testing_guide/review_apps.md | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0afd59ab007..2329c9c6edc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1045,6 +1045,20 @@ review-qa-all: - gitlab-qa Test::Instance::Any "${QA_IMAGE}" "${CI_ENVIRONMENT_URL}" when: manual +review-performance: + <<: *review-qa-base + script: + - mkdir gitlab-exporter + - wget -O ./gitlab-exporter/index.js https://gitlab.com/gitlab-org/gl-performance/raw/master/index.js + - mkdir sitespeed-results + - docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.3.1 --plugins.add ./gitlab-exporter --outputFolder sitespeed-results "$CI_ENVIRONMENT_URL" + - mv sitespeed-results/data/performance.json performance.json + artifacts: + paths: + - sitespeed-results/ + reports: + performance: performance.json + review-stop: <<: *review-base <<: *single-script-job diff --git a/doc/development/testing_guide/review_apps.md b/doc/development/testing_guide/review_apps.md index 703e342fc13..fda3ff57316 100644 --- a/doc/development/testing_guide/review_apps.md +++ b/doc/development/testing_guide/review_apps.md @@ -95,6 +95,14 @@ You can also manually start the `review-qa-all`: it runs the full QA suite. Note that both jobs first wait for the `review-deploy` job to be finished. +## Performance Metrics + +On every [pipeline][gitlab-pipeline] during the `test` stage, the +`review-performance` job is automatically started: this job does basic +browser performance testing using [Sitespeed.io Container](https://docs.gitlab.com/ee/user/project/merge_requests/browser_performance_testing.html) . + +This job waits for the `review-deploy` job to be finished. + ## How to? ### Log into my Review App? |