Skip to content

Commit

Permalink
Fix performance CI configuration (#1383)
Browse files Browse the repository at this point in the history
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 <ext-yaroslav.stefinko@here.com>
  • Loading branch information
ystefinko authored Mar 9, 2023
1 parent 122f3ea commit 74f2ea1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions scripts/linux/nv/gitlab_test_performance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ... >>>"
Expand Down

0 comments on commit 74f2ea1

Please sign in to comment.