Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
68cafb38
Commit
68cafb38
authored
5 years ago
by
Ramya Authappan
Committed by
Rémy Coutable
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enabling performance metrics on Review Apps
parent
8bc3c69e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
.gitlab-ci.yml
.gitlab-ci.yml
+14
-0
doc/development/testing_guide/review_apps.md
doc/development/testing_guide/review_apps.md
+8
-0
No files found.
.gitlab-ci.yml
View file @
68cafb38
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
doc/development/testing_guide/review_apps.md
View file @
68cafb38
...
...
@@ -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?
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment