From 112981af471b69453ee487dd9f6cd9573c456223 Mon Sep 17 00:00:00 2001 From: Konrad Botor Date: Fri, 22 Sep 2023 12:19:57 +0200 Subject: [PATCH] Make sure HAF service in e2e_benchark job respects PGCTLTIMEOUT variable - ref. #205 --- .gitlab-ci.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml index 0effd9a58..b80d25b42 100644 --- a/.gitlab-ci.yaml +++ b/.gitlab-ci.yaml @@ -407,8 +407,11 @@ e2e_benchmark: DATADIR: $DATA_CACHE_HAF_DATADIR SHM_DIR: $DATA_CACHE_HAF_SHM_DIR LOG_FILE: $CI_JOB_NAME.log - PGCTLTIMEOUT: 600 # give PostgreSQL more time to start if GitLab shut it down improperly after sync job - command: ["--replay-blockchain", "--stop-replay-at-block=5000000"] + PGCTLTIMEOUT: 600 # give PostgreSQL more time to start if GitLab shut it down improperly after the sync job + entrypoint: + - bash + - -c + - echo PGCTLTIMEOUT = ${PGCTLTIMEOUT} | sudo tee -a /etc/postgresql/14/main/environment && /home/haf_admin/docker_entrypoint.sh --replay-blockchain --stop-replay-at-block=5000000 - name: $HIVEMIND_IMAGE alias: hivemind-smoketest # cannot be a variable entrypoint: