From d627ee2618c9f3e28cd91eab4b3f753379b5ce8c Mon Sep 17 00:00:00 2001
From: Yaroslav Lobankov <y.lobankov@tarantool.org>
Date: Fri, 8 Apr 2022 13:49:35 +0300
Subject: [PATCH] ci: pass TEST_RUN_RETRIES=3 to environment

We have recently turned off retrying test runs after a failure for
improving developer experience on using test-run on local machines.
Now to enable tests auto-rerun on CI let's pass TEST_RUN_RETRIES=3
to environment.

NO_DOC=ci
NO_TEST=ci
NO_CHANGELOG=ci
---
 .github/actions/environment/action.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/actions/environment/action.yml b/.github/actions/environment/action.yml
index 52c94a96b3..c5cfd18e00 100644
--- a/.github/actions/environment/action.yml
+++ b/.github/actions/environment/action.yml
@@ -5,11 +5,12 @@ runs:
   steps:
     - run: |
         echo VARDIR=/tmp/tnt | tee -a $GITHUB_ENV
+        echo TEST_RUN_RETRIES=3 | tee -a $GITHUB_ENV
         echo SERVER_START_TIMEOUT=290 | tee -a $GITHUB_ENV
         echo REPLICATION_SYNC_TIMEOUT=300 | tee -a $GITHUB_ENV
         echo TEST_TIMEOUT=310 | tee -a $GITHUB_ENV
         echo NO_OUTPUT_TIMEOUT=320 | tee -a $GITHUB_ENV
-        echo PRESERVE_ENVVARS=SERVER_START_TIMEOUT,REPLICATION_SYNC_TIMEOUT,TEST_TIMEOUT,NO_OUTPUT_TIMEOUT | tee -a $GITHUB_ENV
+        echo PRESERVE_ENVVARS=TEST_RUN_RETRIES,SERVER_START_TIMEOUT,REPLICATION_SYNC_TIMEOUT,TEST_TIMEOUT,NO_OUTPUT_TIMEOUT | tee -a $GITHUB_ENV
         # Configure AWS Region to avoid of issue:
         #   https://github.com/tarantool/tarantool-qa/issues/111
         echo AWS_DEFAULT_REGION=MS | tee -a $GITHUB_ENV
-- 
GitLab