Skip to content
GitLab
Explore
Sign in
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
19f80958
Verified
Commit
19f80958
authored
1 year ago
by
Konrad Botor
Browse files
Options
Downloads
Patches
Plain Diff
Refactored Hivemind serve CI script - ref.
#205
parent
a2d63302
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
+16
-19
16 additions, 19 deletions
.gitlab-ci.yaml
with
16 additions
and
19 deletions
.gitlab-ci.yaml
+
16
−
19
View file @
19f80958
...
@@ -223,7 +223,18 @@ workflow:
...
@@ -223,7 +223,18 @@ workflow:
$RUNNER_HIVEMIND_SERVER_HTTP_PORT \
$RUNNER_HIVEMIND_SERVER_HTTP_PORT \
$RUNNER_BENCHMARK_ITERATIONS \
$RUNNER_BENCHMARK_ITERATIONS \
$RUNNER_PYTEST_WORKERS
$RUNNER_PYTEST_WORKERS
echo -e "\e[0Ksection_end:$(date +%s):api-benchmark\r\e[0K"
echo -e "\e[0Ksection_end:$(date +%s):api-benchmark\r\e[0K"
.hivemind-serve-script
:
&hivemind-serve-script
|
${DATA_CACHE_HAF}/await -t 5m http://haf-instance:8091 -- echo "HAF ready" | tee -i "$AWAIT_LOG_PATH" && \
${DATA_CACHE_HAF}/await -t 5m postgres://haf_admin@haf-instance:5432/haf_block_log#schemas=hivemind_app -- echo "Hivemind database found" | tee -a -i "$AWAIT_LOG_PATH" && \
${WORKING_DIR}/docker_entrypoint.sh server \
--log-request-times \
--log-request-times-path=${REQUEST_PATH_LOG_PATH} \
--log-mask-sensitive-data \
--http-server-port=${RUNNER_HIVEMIND_SERVER_HTTP_PORT} \
--database-url="${HAF_POSTGRES_URL}"
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<| BASH SCRIPTS |<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<| BASH SCRIPTS |<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
...
@@ -403,37 +414,23 @@ e2e_benchmark:
...
@@ -403,37 +414,23 @@ e2e_benchmark:
entrypoint
:
entrypoint
:
-
bash
-
bash
-
-c
-
-c
-
|
-
*hivemind-serve-script
${DATA_CACHE_HAF}/await -t 5m http://haf-instance:8091 -- echo "HAF ready" | tee -i "$AWAIT_LOG_PATH" && \
${DATA_CACHE_HAF}/await -t 5m postgres://haf_admin@haf-instance:5432/haf_block_log#schemas=hivemind_app -- echo "Hivemind database found" | tee -a -i "$AWAIT_LOG_PATH" && \
${WORKING_DIR}/docker_entrypoint.sh server \
--log-request-times \
--log-request-times-path=${DATA_CACHE_HAF_DATADIR}/request_process_times_smoketests.log \
--log-mask-sensitive-data \
--http-server-port=${RUNNER_HIVEMIND_SERVER_HTTP_PORT} \
--database-url="${HAF_POSTGRES_URL}"
variables
:
variables
:
WORKING_DIR
:
/home/hivemind
WORKING_DIR
:
/home/hivemind
LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-server.log
LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-server.log
AWAIT_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-server-await.log
AWAIT_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-server-await.log
REQUEST_PATH_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/request_process_times_smoketests.log
-
name
:
$HIVEMIND_IMAGE
-
name
:
$HIVEMIND_IMAGE
alias
:
hivemind-benchmark
# cannot be a variable
alias
:
hivemind-benchmark
# cannot be a variable
entrypoint
:
entrypoint
:
-
bash
-
bash
-
-c
-
-c
-
|
-
*hivemind-serve-script
${DATA_CACHE_HAF}/await -t 5m http://haf-instance:8091 -- echo "HAF ready" | tee -i "$AWAIT_LOG_PATH" && \
${DATA_CACHE_HAF}/await -t 5m postgres://haf_admin@haf-instance:5432/haf_block_log#schemas=hivemind_app -- echo "Hivemind database found" | tee -a -i "$AWAIT_LOG_PATH" && \
${WORKING_DIR}/docker_entrypoint.sh server \
--log-request-times \
--log-request-times-path=${DATA_CACHE_HAF_DATADIR}/request_process_times.log \
--log-mask-sensitive-data \
--http-server-port=${RUNNER_HIVEMIND_SERVER_HTTP_PORT} \
--database-url="${HAF_POSTGRES_URL}"
variables
:
variables
:
WORKING_DIR
:
/home/hivemind
WORKING_DIR
:
/home/hivemind
LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-benchmark-server.log
LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-benchmark-server.log
AWAIT_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-benchmark-server-await.log
AWAIT_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/hivemind-benchmark-server-await.log
REQUEST_PATH_LOG_PATH
:
$DATA_CACHE_HAF_DATADIR/request_process_times.log
variables
:
variables
:
HIVED_UID
:
$HIVED_UID
HIVED_UID
:
$HIVED_UID
JOB_TOKEN
:
$CI_JOB_TOKEN
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