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
72c333b0
Verified
Commit
72c333b0
authored
1 year ago
by
Konrad Botor
Browse files
Options
Downloads
Patches
Plain Diff
Moved DATADIR and SHM_DIR config to global variables - ref.
#205
parent
a586f29d
No related branches found
No related tags found
2 merge requests
!827
Merge develop changes to master
,
!605
Resolve "Split sync_e2e_benchmark into two separate jobs"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yaml
+9
-7
9 additions, 7 deletions
.gitlab-ci.yaml
with
9 additions
and
7 deletions
.gitlab-ci.yaml
+
9
−
7
View file @
72c333b0
...
...
@@ -24,6 +24,8 @@ variables:
CI_DEBUG_SERVICES
:
"
true"
DATA_CACHE_HAF_TEMPLATE
:
/cache/replay_data_hivemind_haf
DATA_CACHE_HAF
:
"
/cache/replay_data_hivemind_haf_${CI_PIPELINE_ID}"
DATA_CACHE_HAF_DATADIR
:
$DATA_CACHE_HAF/datadir
DATA_CACHE_HAF_SHM_DIR
:
$DATA_CACHE_HAF/shm_dir
BLOCK_LOG_SOURCE_DIR_5M
:
/blockchain/block_log_5m
include
:
...
...
@@ -324,8 +326,8 @@ sync:
host
haf_block_log
haf_app_admin
all
trust
\n
host
haf_block_log
haf_admin
all
trust
\n
"
DATADIR
:
$DATA_CACHE_HAF
/datadir
SHM_DIR
:
$DATA_CACHE_HAF
/shm_dir
DATADIR
:
$DATA_CACHE_HAF
_DATADIR
SHM_DIR
:
$DATA_CACHE_HAF
_SHM_DIR
LOG_FILE
:
$CI_JOB_NAME.log
command
:
[
"
--replay-blockchain"
,
"
--stop-replay-at-block=5000000"
]
variables
:
...
...
@@ -356,7 +358,7 @@ sync:
pushd +2
${WORKING_DIR}/app/ci/collect-db-stats.sh
after_script
:
-
cp "$DATA_CACHE_HAF
/datadir
/$CI_JOB_NAME.log" "haf-$CI_JOB_NAME.log"
# in after_script, so it's done even if the job fails
-
cp "$DATA_CACHE_HAF
_DATADIR
/$CI_JOB_NAME.log" "haf-$CI_JOB_NAME.log"
# in after_script, so it's done even if the job fails
artifacts
:
when
:
always
expire_in
:
7 days
...
...
@@ -390,8 +392,8 @@ e2e_benchmark:
host
haf_block_log
haf_app_admin
all
trust
\n
host
haf_block_log
haf_admin
all
trust
\n
"
DATADIR
:
$DATA_CACHE_HAF
/datadir
SHM_DIR
:
$DATA_CACHE_HAF
/shm_dir
DATADIR
:
$DATA_CACHE_HAF
_DATADIR
SHM_DIR
:
$DATA_CACHE_HAF
_SHM_DIR
LOG_FILE
:
$CI_JOB_NAME.log
command
:
[
"
--replay-blockchain"
,
"
--stop-replay-at-block=5000000"
]
-
name
:
$HIVEMIND_IMAGE
...
...
@@ -409,7 +411,7 @@ e2e_benchmark:
--database-url="${HAF_POSTGRES_URL}"
variables
:
WORKING_DIR
:
/home/hivemind
LOG_PATH
:
$DATA_CACHE_HAF
/datadir
/hivemind-server.log
LOG_PATH
:
$DATA_CACHE_HAF
_DATADIR
/hivemind-server.log
-
name
:
$HIVEMIND_IMAGE
alias
:
hivemind-benchmark
# cannot be a variable
entrypoint
:
...
...
@@ -425,7 +427,7 @@ e2e_benchmark:
--database-url="${HAF_POSTGRES_URL}"
variables
:
WORKING_DIR
:
/home/hivemind
LOG_PATH
:
$DATA_CACHE_HAF
/datadir
/hivemind-benchmark-server.log
LOG_PATH
:
$DATA_CACHE_HAF
_DATADIR
/hivemind-benchmark-server.log
variables
:
HIVED_UID
:
$HIVED_UID
JOB_TOKEN
:
$CI_JOB_TOKEN
...
...
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