Run haf system tests concurrently

This commit is contained in:
Radek Masłowski 2023-03-08 13:06:37 +01:00 committed by Bartek Wrona
parent 5176805608
commit 9e8048fa29
3 changed files with 5 additions and 7 deletions

View File

@ -7,6 +7,7 @@ stages:
- publish
variables:
PYTEST_NUMBER_OF_PROCESSES: 4
CTEST_NUMBER_OF_JOBS: 4
GIT_DEPTH: 20
GIT_SUBMODULE_STRATEGY: recursive
@ -114,7 +115,7 @@ haf_system_tests:
- sudo $SETUP_SCRIPTS_PATH/setup_postgres.sh --haf-admin-account=haf_admin --haf-database-store="$CI_PROJECT_DIR/haf_database_store" --haf-binaries-dir="$CI_PROJECT_DIR/hive_fork_manager_testnet/build"
# prepare environment and run tests
- cd $CI_PROJECT_DIR/tests/integration/system/haf
- pytest --junitxml report.xml
- pytest --junitxml report.xml -n ${PYTEST_NUMBER_OF_PROCESSES}
artifacts:
paths:
- "**/generated_during_*"
@ -143,7 +144,7 @@ applications_system_tests:
- sudo $SETUP_SCRIPTS_PATH/setup_postgres.sh --haf-admin-account=haf_admin --haf-database-store="$CI_PROJECT_DIR/haf_database_store" --haf-binaries-dir="$CI_PROJECT_DIR/hive_fork_manager_testnet/build"
# prepare environment and run tests
- cd $CI_PROJECT_DIR/tests/integration/system/applications
- pytest --junitxml report.xml
- pytest --junitxml report.xml -n ${PYTEST_NUMBER_OF_PROCESSES}
artifacts:
paths:
- "**/generated_during_*"

View File

@ -19,6 +19,7 @@ psycopg2-binary = "2.9.1"
pytest = "6.2.5"
pytest-repeat = "0.9.1"
pytest-timeout = "2.0.1"
pytest-xdist = "3.2.0"
shared_tools = { path = "shared-tools", develop = true }
sqlalchemy = "1.4.25"
sqlalchemy-utils = "0.37.9"

View File

@ -1,11 +1,7 @@
[pytest]
#temporary fix for distutils deprecation warning
filterwarnings =
error
ignore:The distutils package is deprecated:DeprecationWarning
log_cli = true
log_level = INFO
log_format = %(asctime)s [%(levelname)s] %(message)s (%(filename)s:%(lineno)s)
log_date_format = %Y-%m-%d %H:%M:
log_date_format = %Y-%m-%d %H:%M:%S
timeout = 300