From 74f2ea1d7be9062aa3a25851ee27a8e9bd6ec0fb Mon Sep 17 00:00:00 2001 From: Yaroslav Stefinko Date: Thu, 9 Mar 2023 14:08:33 +0200 Subject: [PATCH] Fix performance CI configuration (#1383) Some artifacts were missing in build job. Minor fix to mock-server waiter to increase sleep as sometimes it starts several seconds. Resolves: OLPEDGE-2792 Signed-off-by: Yaroslav Stefinko --- .gitlab-ci.yml | 6 ++++-- scripts/linux/nv/gitlab_test_performance.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc16ef576..0497a2870 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -108,8 +108,10 @@ build_test_nv: when: always paths: - reports - - $CI_PROJECT_DIR - expire_in: 1 year + - scripts + - build + - tests + expire_in: 90 days test_performance_nv: stage: test diff --git a/scripts/linux/nv/gitlab_test_performance.sh b/scripts/linux/nv/gitlab_test_performance.sh index f944f6dbd..8befe1173 100755 --- a/scripts/linux/nv/gitlab_test_performance.sh +++ b/scripts/linux/nv/gitlab_test_performance.sh @@ -23,7 +23,7 @@ ulimit -c unlimited # Start local server node tests/utils/olp_server/server.js & export SERVER_PID=$! -# Node can start server in 1 second, but not faster. +# Node can start server in 1-5 seconds, but not faster. # Add waiter for server to be started. No other way to solve that. # Curl returns code 1 - means server still down. Curl returns 0 when server is up RC=1 @@ -32,7 +32,7 @@ do set +e curl -s http://localhost:3000 RC=$? - sleep 0.2 + sleep 5 set -e done echo ">>> Local Server started for further performance test ... >>>"