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
Merge requests
!390
Compact all CI jobs to one
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Compact all CI jobs to one
wb-ci-all-in-one-job
into
develop
Overview
0
Commits
2
Pipelines
0
Changes
5
Merged
Wojciech Barcik
requested to merge
wb-ci-all-in-one-job
into
develop
4 years ago
Overview
0
Commits
2
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
version 7
version 7
dcd92098
4 years ago
version 6
e5eac65d
4 years ago
version 5
e1c60660
4 years ago
version 4
707251dc
4 years ago
version 3
ba1a014b
4 years ago
version 2
b1c57a14
4 years ago
version 1
2ff435a4
4 years ago
develop (base)
and
latest version
latest version
57340c0a
2 commits,
4 years ago
version 7
dcd92098
4 commits,
4 years ago
version 6
e5eac65d
2 commits,
4 years ago
version 5
e1c60660
1 commit,
4 years ago
version 4
707251dc
1 commit,
4 years ago
version 3
ba1a014b
8 commits,
4 years ago
version 2
b1c57a14
7 commits,
4 years ago
version 1
2ff435a4
6 commits,
4 years ago
Show latest version
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yaml
+
419
−
331
Options
stages
:
-
build
-
test
-
data-supply
-
deploy
-
e2e-test
-
benchmark-tests
-
post-deploy
.dk-setup-pip
:
&dk-setup-pip
-
python -m venv .venv
-
source .venv/bin/activate
-
time pip install --upgrade pip setuptools wheel
-
pip --version
-
easy_install --version
-
wheel version
-
pipenv --version
-
poetry --version
-
time pip install --editable .[dev]
.dk-setup-runner-env
:
&dk-setup-runner-env
# Setup runner environment (to connect to correct postgres server, mainly).
-
TMP_VAR=$(cat hive-sync-runner-id.txt 2>/dev/null ||
true
); export HIVE_SYNC_RUNNER_ID=${TMP_VAR:-0}
-
eval $(cat "$RUNNER_CONF" | ./scripts/ci/setup_env.py --current-runner-id=${CI_RUNNER_ID} --hive-sync-runner-id=${HIVE_SYNC_RUNNER_ID})
.dk-set-variables
:
&dk-set-variables
# - export # List all variables and its values set by Gitlab CI.
-
whoami
-
echo "CI_RUNNER_ID is $CI_RUNNER_ID"
-
echo "CI_PIPELINE_URL is $CI_PIPELINE_URL"
-
echo "CI_PIPELINE_ID is $CI_PIPELINE_ID"
-
echo "CI_COMMIT_SHORT_SHA is $CI_COMMIT_SHORT_SHA"
-
echo "CI_COMMIT_REF_SLUG is $CI_COMMIT_REF_SLUG"
-
export HIVEMIND_DB_NAME=${HIVEMIND_DB_NAME//[^a-zA-Z0-9_]/_}
-
echo "HIVEMIND_DB_NAME is $HIVEMIND_DB_NAME"
.dk-fetch-git-tags
:
&dk-fetch-git-tags
# - git fetch --tags # Looks to be unnecessary.
-
git tag -f ci_implicit_tag
# Needed to build python package
.dk-start-timer
:
&dk-start-timer
-
./scripts/ci/timer.sh start
.dk-stop-timer
:
&dk-stop-timer
-
./scripts/ci/timer.sh check
.dk-hive-sync-script-common
:
&dk-hive-sync-script-common
-
echo "${CI_RUNNER_ID}" > hive-sync-runner-id.txt
-
./scripts/ci/wait-for-postgres.sh "$RUNNER_POSTGRES_HOST" "$RUNNER_POSTGRES_PORT"
-
export POSTGRES_MAJOR_VERSION=$(./scripts/ci/get-postgres-version.sh)
-
./scripts/ci/create-db.sh
-
./scripts/ci/hive-sync.sh
-
./scripts/ci/collect-db-stats.sh
.dk-rules-for-sync
:
&dk-rules-for-sync
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
always
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
when
:
always
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
always
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"'
when
:
manual
-
when
:
manual
.dk-rules-for-test
:
&dk-rules-for-test
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
on_success
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"'
when
:
on_success
-
when
:
on_success
.dk-default
:
image
:
hivemind/python:3.6
interruptible
:
true
inherit
:
default
:
false
variables
:
false
variables
:
GIT_DEPTH
:
10
GIT_STRATEGY
:
fetch
GIT_SUBMODULE_STRATEGY
:
recursive
PIPENV_VENV_IN_PROJECT
:
1
PIPENV_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pipenv"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
POSTGRES_CLIENT_TOOLS_PATH
:
/usr/lib/postgresql
HIVEMIND_DB_NAME
:
"
hive_${CI_COMMIT_REF_SLUG}"
cache
:
&dk-global-cache
# Per-branch caching. CI_COMMIT_REF_SLUG is the same thing.
# key: "$CI_COMMIT_REF_NAME"
# Per project caching – use any key.
# Change this key, if you need to clear cache.
key
:
common-1
paths
:
-
.cache/
-
.venv/
-
.tox/
before_script
:
-
*dk-start-timer
-
*dk-fetch-git-tags
-
*dk-set-variables
-
*dk-setup-pip
-
*dk-setup-runner-env
after_script
:
-
*dk-stop-timer
##### Jobs #####
dk-hivemind-sync
:
# Postgres shared on host.
extends
:
.dk-default
<<
:
*dk-rules-for-sync
stage
:
data-supply
needs
:
[]
script
:
-
*dk-hive-sync-script-common
artifacts
:
paths
:
-
hivemind-sync.log
-
pg-stats
-
hive-sync-runner-id.txt
expire_in
:
7 days
tags
:
-
hivemind-heavy-job
.dk-test-common
:
extends
:
.dk-default
<<
:
*dk-rules-for-test
needs
:
-
job
:
dk-hivemind-sync
artifacts
:
true
allow_failure
:
false
before_script
:
-
*dk-start-timer
-
*dk-fetch-git-tags
-
*dk-set-variables
-
*dk-setup-pip
-
*dk-setup-runner-env
-
./scripts/ci/wait-for-postgres.sh "$RUNNER_POSTGRES_HOST" "$RUNNER_POSTGRES_PORT"
-
./scripts/ci/hive-server.sh start
after_script
:
-
*dk-stop-timer
tags
:
-
hivemind-light-job
dk-bridge_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
bridge_api_patterns/ api_smoketest_bridge.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_bridge.xml
dk-bridge_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
bridge_api_negative/ api_smoketest_bridge_negative.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_bridge_negative.xml
dk-condenser_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
condenser_api_patterns/ api_smoketest_condenser_api.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_condenser_api.xml
dk-condenser_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
condenser_api_negative/ api_smoketest_condenser_api_negative.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_condenser_api_negative.xml
dk-database_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
database_api_patterns/ api_smoketest_database_api.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_database_api.xml
dk-database_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
database_api_negative/ api_smoketest_database_api_negative.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_database_api_negative.xml
dk-follow_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
follow_api_patterns/ api_smoketest_follow_api.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_follow_api.xml
dk-follow_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
follow_api_negative/ api_smoketest_follow_api_negative.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_follow_api_negative.xml
dk-hive_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
hive_api_patterns/ api_smoketest_hive_api.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_hive_api.xml
dk-tags_api_smoketest
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
tags_api_patterns/ api_smoketest_tags_api.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_tags_api.xml
dk-tags_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
tags_api_negative/ api_smoketest_tags_api_negative.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_tags_api_negative.xml
dk-mock_tests
:
stage
:
e2e-test
extends
:
.dk-test-common
script
:
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
mock_tests/ api_smoketest_mock_tests.xml \
$RUNNER_TEST_JOBS
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_mock_tests.xml
dk-api-smoketest-benchmark
:
stage
:
benchmark-tests
extends
:
.dk-test-common
# Temporary failure (when any call is longer than 1s is allowed)
allow_failure
:
true
script
:
-
|
./scripts/ci/start-api-benchmarks.sh \
localhost $RUNNER_HIVEMIND_SERVER_HTTP_PORT 5 \
$RUNNER_TEST_JOBS
-
./scripts/xml_report_parser.py . ./tests/tests_api/hivemind/tavern
artifacts
:
when
:
always
paths
:
-
tavern_benchmarks_report.html
stages
:
-
build
-
test
-
sync-e2e-benchmark
-
data-supply
-
deploy
-
e2e-test
-
benchmark-tests
-
post-deploy
.setup-pip
:
&setup-pip
-
python -m venv .venv
-
source .venv/bin/activate
-
time pip install --upgrade pip setuptools wheel
-
pip --version
-
easy_install --version
-
wheel version
-
pipenv --version
-
poetry --version
-
time pip install --editable .[dev]
.setup-runner-env
:
&setup-runner-env
# Setup runner environment (to connect to correct postgres server, mainly).
-
TMP_VAR=$(cat hive-sync-runner-id.txt 2>/dev/null ||
true
); export HIVE_SYNC_RUNNER_ID=${TMP_VAR:-0}
-
eval $(cat "$RUNNER_CONF" | ./scripts/ci/setup_env.py --current-runner-id=${CI_RUNNER_ID} --hive-sync-runner-id=${HIVE_SYNC_RUNNER_ID})
.set-variables
:
&set-variables
# - export # List all variables and its values set by Gitlab CI.
-
whoami
-
echo "CI_RUNNER_ID is $CI_RUNNER_ID"
-
echo "CI_PIPELINE_URL is $CI_PIPELINE_URL"
-
echo "CI_PIPELINE_ID is $CI_PIPELINE_ID"
-
echo "CI_COMMIT_SHORT_SHA is $CI_COMMIT_SHORT_SHA"
-
echo "CI_COMMIT_REF_SLUG is $CI_COMMIT_REF_SLUG"
-
export HIVEMIND_DB_NAME=${HIVEMIND_DB_NAME//[^a-zA-Z0-9_]/_}
-
echo "HIVEMIND_DB_NAME is $HIVEMIND_DB_NAME"
.fetch-git-tags
:
&fetch-git-tags
# - git fetch --tags # Looks to be unnecessary.
-
git tag -f ci_implicit_tag
# Needed to build python package
.start-timer
:
&start-timer
-
./scripts/ci/timer.sh start
.stop-timer
:
&stop-timer
-
./scripts/ci/timer.sh check
.hive-sync-script-common
:
&hive-sync-script-common
-
echo "${CI_RUNNER_ID}" > hive-sync-runner-id.txt
-
./scripts/ci/wait-for-postgres.sh "$RUNNER_POSTGRES_HOST" "$RUNNER_POSTGRES_PORT"
-
export POSTGRES_MAJOR_VERSION=$(./scripts/ci/get-postgres-version.sh)
-
./scripts/ci/create-db.sh
-
./scripts/ci/hive-sync.sh
-
./scripts/ci/collect-db-stats.sh
.rules-for-sync
:
&rules-for-sync
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
always
-
if
:
'
$CI_COMMIT_BRANCH
==
$CI_DEFAULT_BRANCH'
when
:
always
-
if
:
'
$CI_COMMIT_BRANCH
==
"develop"'
when
:
always
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"'
when
:
manual
-
when
:
manual
.rules-for-test
:
&rules-for-test
rules
:
-
if
:
'
$CI_PIPELINE_SOURCE
==
"merge_request_event"'
when
:
on_success
-
if
:
'
$CI_PIPELINE_SOURCE
==
"push"'
when
:
on_success
-
when
:
on_success
.default
:
image
:
hivemind/python:3.6
interruptible
:
true
inherit
:
default
:
false
variables
:
false
variables
:
GIT_DEPTH
:
10
GIT_STRATEGY
:
fetch
GIT_SUBMODULE_STRATEGY
:
recursive
PIPENV_VENV_IN_PROJECT
:
1
PIPENV_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pipenv"
PIP_CACHE_DIR
:
"
$CI_PROJECT_DIR/.cache/pip"
POSTGRES_CLIENT_TOOLS_PATH
:
/usr/lib/postgresql
HIVEMIND_DB_NAME
:
"
hive_${CI_COMMIT_REF_SLUG}"
cache
:
&global-cache
# Per-branch caching. CI_COMMIT_REF_SLUG is the same thing.
# key: "$CI_COMMIT_REF_NAME"
# Per project caching – use any key.
# Change this key, if you need to clear cache.
key
:
common-1
paths
:
-
.cache/
-
.venv/
-
.tox/
before_script
:
-
*start-timer
-
*fetch-git-tags
-
*set-variables
-
*setup-pip
-
*setup-runner-env
after_script
:
-
*stop-timer
##### Jobs #####
.hivemind-sync
:
# Postgres shared on host.
extends
:
.default
<<
:
*rules-for-sync
stage
:
data-supply
needs
:
[]
script
:
-
*hive-sync-script-common
artifacts
:
paths
:
-
hivemind-sync.log
-
pg-stats
-
hive-sync-runner-id.txt
expire_in
:
7 days
tags
:
-
hivemind-heavy-job
.test-common
:
extends
:
.default
<<
:
*rules-for-test
needs
:
-
job
:
hivemind-sync
artifacts
:
true
allow_failure
:
false
before_script
:
-
*start-timer
-
*fetch-git-tags
-
*set-variables
-
*setup-pip
-
*setup-runner-env
-
./scripts/ci/wait-for-postgres.sh "$RUNNER_POSTGRES_HOST" "$RUNNER_POSTGRES_PORT"
-
./scripts/ci/hive-server.sh start
after_script
:
-
*stop-timer
tags
:
-
hivemind-light-job
.bridge_api_smoketest-script
:
&bridge_api_smoketest-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
bridge_api_patterns/ api_smoketest_bridge.xml \
$RUNNER_TEST_JOBS
.bridge_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*bridge_api_smoketest-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_bridge.xml
.bridge_api_smoketest_negative-script
:
&bridge_api_smoketest_negative-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
bridge_api_negative/ api_smoketest_bridge_negative.xml \
$RUNNER_TEST_JOBS
.bridge_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*bridge_api_smoketest_negative-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_bridge_negative.xml
.condenser_api_smoketest-script
:
&condenser_api_smoketest-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
condenser_api_patterns/ api_smoketest_condenser_api.xml \
$RUNNER_TEST_JOBS
.condenser_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*condenser_api_smoketest-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_condenser_api.xml
.condenser_api_smoketest_negative-script
:
&condenser_api_smoketest_negative-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
condenser_api_negative/ api_smoketest_condenser_api_negative.xml \
$RUNNER_TEST_JOBS
.condenser_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*condenser_api_smoketest_negative-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_condenser_api_negative.xml
.database_api_smoketest-script
:
&database_api_smoketest-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
database_api_patterns/ api_smoketest_database_api.xml \
$RUNNER_TEST_JOBS
.database_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*database_api_smoketest-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_database_api.xml
.database_api_smoketest_negative-script
:
&database_api_smoketest_negative-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
database_api_negative/ api_smoketest_database_api_negative.xml \
$RUNNER_TEST_JOBS
.database_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*database_api_smoketest_negative-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_database_api_negative.xml
.follow_api_smoketest-script
:
&follow_api_smoketest-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
follow_api_patterns/ api_smoketest_follow_api.xml \
$RUNNER_TEST_JOBS
.follow_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*follow_api_smoketest-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest.xml
.follow_api_smoketest_negative-script
:
&follow_api_smoketest_negative-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
follow_api_negative/ api_smoketest_follow_api_negative.xml \
$RUNNER_TEST_JOBS
.follow_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*follow_api_smoketest_negative-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_follow_api_negative.xml
.tags_api_smoketest-script
:
&tags_api_smoketest-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
tags_api_negative/ api_smoketest_tags_api_negative.xml \
$RUNNER_TEST_JOBS
.tags_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*tags_api_smoketest-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_tags_api_negative.xml
.tags_api_smoketest_negative-script
:
&tags_api_smoketest_negative-script
-
|
./scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
tags_api_patterns/ api_smoketest_tags_api.xml \
$RUNNER_TEST_JOBS
.tags_api_smoketest_negative
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*tags_api_smoketest_negative-script
artifacts
:
when
:
always
reports
:
junit
:
api_smoketest_tags_api.xml
.mock_tests-script
:
&mock_tests-script
-
|
scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
mock_tests/ api_smoketest_mock_tests.xml \
$RUNNER_TEST_JOBS
.mock_tests
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*mock_tests-script
artifacts
:
reports
:
junit
:
api_smoketest_mock_tests.xml
.hive_api_smoketest-script
:
&hive_api_smoketest-script
-
|
scripts/ci/start-api-smoketest.sh \
localhost "$RUNNER_HIVEMIND_SERVER_HTTP_PORT" \
hive_api_patterns/ api_smoketest_hive_api.xml \
$RUNNER_TEST_JOBS
.hive_api_smoketest
:
stage
:
e2e-test
extends
:
.test-common
script
:
-
*hive_api_smoketest-script
artifacts
:
reports
:
junit
:
api_smoketest_hive_api.xml
.api-smoketest-benchmark-script
:
&api-smoketest-benchmark-script
-
|
./scripts/ci/start-api-benchmarks.sh \
localhost $RUNNER_HIVEMIND_SERVER_HTTP_PORT \
$RUNNER_BENCHMARK_ITERATIONS \
$RUNNER_BENCHMARK_JOBS
-
./scripts/xml_report_parser.py . ./tests/tests_api/hivemind/tavern
.api-smoketest-benchmark
:
stage
:
benchmark-tests
extends
:
.test-common
# Temporary failure (when any call is longer than 1s is allowed)
allow_failure
:
true
script
:
-
*api-smoketest-benchmark-script
artifacts
:
when
:
always
paths
:
-
tavern_benchmarks_report.html
sync-e2e-benchmark
:
extends
:
.default
<<
:
*rules-for-sync
stage
:
sync-e2e-benchmark
needs
:
[]
script
:
-
*hive-sync-script-common
-
./scripts/ci/hive-server.sh start
-
pip install tox
-
touch tox-installed
-
*bridge_api_smoketest-script
-
*bridge_api_smoketest_negative-script
-
*condenser_api_smoketest-script
-
*condenser_api_smoketest_negative-script
-
*database_api_smoketest-script
-
*database_api_smoketest_negative-script
-
*follow_api_smoketest-script
-
*follow_api_smoketest_negative-script
-
*tags_api_smoketest-script
-
*tags_api_smoketest_negative-script
-
*mock_tests-script
-
*hive_api_smoketest-script
-
*api-smoketest-benchmark-script
artifacts
:
when
:
always
paths
:
-
hivemind-sync.log
-
pg-stats
-
hive-sync-runner-id.txt
-
tavern_benchmarks_report.html
-
tests/tests_api/hivemind/tavern/**/*.out.json
reports
:
junit
:
"
*.xml"
expire_in
:
7 days
tags
:
-
hivemind-heavy-job
Loading