File tree Expand file tree Collapse file tree 6 files changed +724
-0
lines changed Expand file tree Collapse file tree 6 files changed +724
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ CMakeLists.txt.user
7
7
build * /
8
8
* .doap
9
9
.repo
10
+ .cache
11
+ .local
12
+ .bash_history
10
13
11
14
# Compiled Object files
12
15
* .slo
Original file line number Diff line number Diff line change @@ -23,6 +23,33 @@ stages:
23
23
- translate_report
24
24
- deploy
25
25
26
+ # Job for running perf test with reports of mem/cpu usage
27
+ weekly_perf_reports :
28
+ stage : build
29
+ image : ${DOCKER_REGISTRY}/${DOCKER_IMAGE_USER}:${DOCKER_IMAGE_USER_VERSION}
30
+ only :
31
+ refs :
32
+ - branches
33
+ - master
34
+ - schedules
35
+ variables :
36
+ - $PERFORMANCE
37
+ script :
38
+ - mkdir -p reports .public
39
+ - $CI_PROJECT_DIR/scripts/linux/weekly/gitlab_build_perf_tests.sh
40
+ - python3 $CI_PROJECT_DIR/scripts/linux/weekly/run_performance_test_metrics.py
41
+ - cat $CI_PROJECT_DIR/scripts/linux/weekly/reports/index.html >> .public/index.html && cat $CI_PROJECT_DIR/scripts/linux/weekly/performance_tests.json >> .public/performance_tests.json
42
+ - if $(ls $CI_PROJECT_DIR/reports/*.xml &>/dev/null); then tar -czvf ${CI_JOB_NAME}_test_reports.tar.gz $CI_PROJECT_DIR/reports ; fi;
43
+ - $CI_PROJECT_DIR/scripts/misc/artifactory_upload.sh edge-sdks/sdk-for-cpp/releases/test-reports/$CI_JOB_NAME/$CI_JOB_ID/${CI_JOB_NAME}_test_reports.tar.gz $CI_PROJECT_DIR/${CI_JOB_NAME}_test_reports.tar.gz
44
+ artifacts :
45
+ when : always
46
+ paths :
47
+ - performance_results_*.csv
48
+ - test_detail_perf.json
49
+ - .public
50
+ - reports/*.xml
51
+ expire_in : 1 year
52
+
26
53
wv_security_job :
27
54
stage : test
28
55
tags :
@@ -231,6 +258,7 @@ pages:
231
258
variables :
232
259
- $FV
233
260
- $NV
261
+ - $PERFORMANCE
234
262
235
263
# TO DO: add Android network test into script $CI_PROJECT_DIR/scripts/android/build-test-emulator.sh
236
264
# Currently job below just build HERE Data SDK for Android and start AVD by Android SDK emulator.
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -ex
2
+ #
3
+ # Copyright (C) 2021 HERE Europe B.V.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+ # SPDX-License-Identifier: Apache-2.0
18
+ # License-Filename: LICENSE
19
+
20
+ # Script will build olp-cpp-sdk-performance-tests for further execution with CPU/RAM metrics
21
+
22
+ mkdir -p build && cd build
23
+
24
+ cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DOLP_SDK_NO_EXCEPTION=ON -DBUILD_SHARED_LIBS=ON -DOLP_SDK_ENABLE_TESTING=ON ..
25
+
26
+ cmake --build . --target olp-cpp-sdk-performance-tests
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "name" : " MemoryUsage/MemoryTest.ReadNPartitionsFromVersionedLayer/15m_test" ,
4
+ "repeat" : 1 ,
5
+ "metric_infos" : [
6
+ {
7
+ "name" : " Performance" ,
8
+ "metrics" : [
9
+ " max_mem" ,
10
+ " avg_mem" ,
11
+ " max_cpu" ,
12
+ " avg_cpu"
13
+ ]
14
+ }
15
+ ],
16
+ "charts" : [
17
+ {
18
+ "name" : " ReadNPartitionsFromVersionedLayer/15m_test" ,
19
+ "source" : " Performance" ,
20
+ "charts" : [
21
+ {
22
+ "name" : " CPU usage" ,
23
+ "units" : " Percentage ( CPU model: sed_cpu_model sed_mhz. Core: sed_n_core. )" ,
24
+ "values" : [
25
+ {"Maximum" : " max_cpu" },
26
+ {"Average" : " avg_cpu" }
27
+ ]
28
+ },
29
+ {
30
+ "name" : " RAM usage" ,
31
+ "units" : " MB ( Total: sed_memory_total )" ,
32
+ "values" : [
33
+ {"Maximum" : " max_mem" },
34
+ {"Average" : " avg_mem" }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ ]
40
+ }
41
+ ]
You can’t perform that action at this time.
0 commit comments