Skip to content

Commit a4dc778

Browse files
authored
Launchable: Set env variables to prevent CI slowdowns (ruby#13513)
When Launchable in unstable, the round trip time takes a long time, which slows down CI execution. In this PR I configured the environment variable `LAUNCHABLE_COMMIT_TIMEOUT` to configure the timeout. cloudbees-oss/smart-tests-cli#1015
1 parent a87b089 commit a4dc778

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/actions/compilers/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ setup_launchable() {
7979
pushd ${srcdir}
8080
# To prevent a slowdown in CI, disable request retries when the Launchable server is unstable.
8181
export LAUNCHABLE_SKIP_TIMEOUT_RETRY=1
82+
export LAUNCHABLE_COMMIT_TIMEOUT=1
8283
# Launchable creates .launchable file in the current directory, but cannot a file to ${srcdir} directory.
8384
# As a workaround, we set LAUNCHABLE_SESSION_DIR to ${builddir}.
8485
export LAUNCHABLE_SESSION_DIR=${builddir}

.github/actions/launchable/setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ runs:
123123
echo "LAUNCHABLE_TOKEN=${{ inputs.launchable-token }}" >> $GITHUB_ENV
124124
: # To prevent a slowdown in CI, disable request retries when the Launchable server is unstable.
125125
echo "LAUNCHABLE_SKIP_TIMEOUT_RETRY=1" >> $GITHUB_ENV
126+
echo "LAUNCHABLE_COMMIT_TIMEOUT=1" >> $GITHUB_ENV
126127
if: steps.enable-launchable.outputs.enable-launchable
127128

128129
- name: Set up path

0 commit comments

Comments
 (0)