Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hivemind
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
hivemind
Commits
941487b2
Commit
941487b2
authored
4 years ago
by
Dariusz Kędzierski
Browse files
Options
Downloads
Patches
Plain Diff
Script for running benchmarks
parent
3cae0aa7
No related branches found
No related tags found
2 merge requests
!456
Release candidate v1 24
,
!246
API tests execution time reports
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yaml
+10
-30
10 additions, 30 deletions
.gitlab-ci.yaml
scripts/ci_start_api_benchmark.sh
+29
-0
29 additions, 0 deletions
scripts/ci_start_api_benchmark.sh
with
39 additions
and
30 deletions
.gitlab-ci.yaml
+
10
−
30
View file @
941487b2
...
@@ -301,9 +301,7 @@ bridge_api_smoketest_benchmark:
...
@@ -301,9 +301,7 @@ bridge_api_smoketest_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/bridge_api_patterns/ api_benchmark_bridge.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/bridge_api_patterns/ api_benchmark_bridge.py api_smoketest_bridge.xml
-
tox -e benchmark -- api_benchmark_bridge.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/bridge_api_patterns/ api_smoketest_bridge.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -314,9 +312,7 @@ bridge_api_smoketest_negative_benchmark:
...
@@ -314,9 +312,7 @@ bridge_api_smoketest_negative_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/bridge_api_negative/ api_benchmark_bridge_negative.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/bridge_api_negative/ api_benchmark_bridge_negative.py api_smoketest_bridge_negative.xml
-
tox -e benchmark -- api_benchmark_bridge_negative.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/bridge_api_negative/ api_smoketest_bridge_negative.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -327,9 +323,7 @@ condenser_api_smoketest_benchmark:
...
@@ -327,9 +323,7 @@ condenser_api_smoketest_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/condenser_api_patterns/ api_benchmark_condenser.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/condenser_api_patterns/ api_benchmark_condenser.py api_smoketest_condenser_api.xml
-
tox -e benchmark -- api_benchmark_condenser.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/condenser_api_patterns/ api_smoketest_condenser_api.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -340,9 +334,7 @@ condenser_api_smoketest_negative_benchmark:
...
@@ -340,9 +334,7 @@ condenser_api_smoketest_negative_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/condenser_api_negative/ api_benchmark_condenser_negative.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/condenser_api_negative/ api_benchmark_condenser_negative.py api_smoketest_condenser_api_negative.xml
-
tox -e benchmark -- api_benchmark_condenser_negative.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/condenser_api_negative/ api_smoketest_condenser_api_negative.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -353,9 +345,7 @@ database_api_smoketest_benchmark:
...
@@ -353,9 +345,7 @@ database_api_smoketest_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/database_api_patterns/ api_benchmark_database.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/database_api_patterns/ api_benchmark_database.py api_smoketest_database_api.xml
-
tox -e benchmark -- api_benchmark_database.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/database_api_patterns/ api_smoketest_database_api.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -366,9 +356,7 @@ database_api_smoketest_negative_benchmark:
...
@@ -366,9 +356,7 @@ database_api_smoketest_negative_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/database_api_negative/ api_benchmark_database_negative.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/database_api_negative/ api_benchmark_database_negative.py api_smoketest_database_api_negative.xml
-
tox -e benchmark -- api_benchmark_database_negative.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/database_api_negative/ api_smoketest_database_api_negative.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -379,9 +367,7 @@ follow_api_smoketest_benchmark:
...
@@ -379,9 +367,7 @@ follow_api_smoketest_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/follow_api_patterns/ api_benchmark_follow.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/follow_api_patterns/ api_benchmark_follow.py pi_smoketest_follow_api.xml
-
tox -e benchmark -- api_benchmark_follow.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/follow_api_patterns/ api_smoketest_follow_api.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -392,9 +378,7 @@ follow_api_smoketest_negative_benchmark:
...
@@ -392,9 +378,7 @@ follow_api_smoketest_negative_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/follow_api_negative/ api_benchmark_follow_negative.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/follow_api_negative/ api_benchmark_follow_negative.py api_smoketest_follow_api_negative.xml
-
tox -e benchmark -- api_benchmark_follow_negative.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/follow_api_negative/ api_smoketest_follow_api_negative.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -405,9 +389,7 @@ tags_api_smoketest_benchmark:
...
@@ -405,9 +389,7 @@ tags_api_smoketest_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/tags_api_patterns/ api_benchmark_tags.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/tags_api_patterns/ api_benchmark_tags.py api_smoketest_tags_api.xml
-
tox -e benchmark -- api_benchmark_tags.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/tags_api_patterns/ api_smoketest_tags_api.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
@@ -418,9 +400,7 @@ tags_api_smoketest_negative_benchmark:
...
@@ -418,9 +400,7 @@ tags_api_smoketest_negative_benchmark:
<<
:
*common_api_benchmarks
<<
:
*common_api_benchmarks
script
:
script
:
-
tests/tests_api/hivemind/benchmarks/benchmark_generator.py tests/tests_api/hivemind/tavern/tags_api_negative/ api_benchmark_tags_negative.py "http://localhost:$HIVEMIND_HTTP_PORT"
-
scripts/ci_start_api_benchmark.sh localhost $HIVEMIND_HTTP_PORT tests/tests_api/hivemind/tavern/tags_api_negative/ api_benchmark_tags_negative.py api_smoketest_tags_api_negative.xml
-
tox -e benchmark -- api_benchmark_tags_negative.py
-
scripts/xml_report_parser.py tests/tests_api/hivemind/tavern/tags_api_negative/ api_smoketest_tags_api_negative.xml
artifacts
:
artifacts
:
when
:
always
when
:
always
...
...
This diff is collapsed.
Click to expand it.
scripts/ci_start_api_benchmark.sh
0 → 100755
+
29
−
0
View file @
941487b2
#!/bin/bash
# $1 - server address
# $2 - server port
# $3 - path to test directory
# $4 - name of the benchmark script file
# $5 - path to generated junit xml file
set
-e
echo
"========================= BENCHMARKS ================================="
echo
"Server address:
$1
"
echo
"Server port:
$2
"
echo
"Test directory to be processed:
$3
"
echo
"Benchmark test file path and name:
$4
"
echo
"junit xml file used to generate html with:
$5
"
BASE_DIR
=
$(
pwd
)
echo
"Script base dir is:
$BASE_DIR
"
pip3
install
tox
--user
echo
"Creating benchmark test file as:
$4
"
$BASE_DIR
/tests/tests_api/hivemind/benchmarks/benchmark_generator.py
$3
$4
"http://
$1
:
$2
"
echo
"Running benchmark tests on http://
$1
:
$2
"
tox
-e
benchmark
--
$4
echo
"Creating html report..."
$BASE_DIR
/scripts/xml_report_parser.py
$3
$5
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment