From 58f2cae4bf2c0b6728083f5f009b6dc0eb6dc3ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Test=C3=A9?= Date: Fri, 31 May 2024 16:08:54 +0200 Subject: [PATCH] feat(github): extend timeout duration to 15 minutes Also remove hardcoded mention to AWS EC2 service. --- dist/index.js | 6 +++--- src/gh.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 6a5f9dc..398bc79 100644 --- a/dist/index.js +++ b/dist/index.js @@ -49661,13 +49661,13 @@ async function getRunner(label) { } async function waitForRunnerRegistered(label) { - const timeoutSeconds = 300 + const timeoutSeconds = 900 const retryIntervalSeconds = 10 const quietPeriodSeconds = 30 let waitSeconds = 0 core.info( - `Waiting ${quietPeriodSeconds}s for the AWS EC2 instance to be registered in GitHub as a new self-hosted runner` + `Waiting ${quietPeriodSeconds}s for ${config.input.backend} instance to be registered in GitHub as a new self-hosted runner` ) await utils.sleep(quietPeriodSeconds) core.info( @@ -49691,7 +49691,7 @@ async function waitForRunnerRegistered(label) { } core.error( - `A timeout of ${timeoutSeconds} seconds is exceeded. Your AWS EC2 instance was not able to register itself in GitHub as a new self-hosted runner.` + `A timeout of ${timeoutSeconds} seconds is exceeded. Your ${config.input.backend} instance was not able to register itself in GitHub as a new self-hosted runner.` ) throw new Error('GitHub self-hosted runner registration error') } diff --git a/src/gh.js b/src/gh.js index ca1e134..ec67c70 100644 --- a/src/gh.js +++ b/src/gh.js @@ -25,13 +25,13 @@ async function getRunner(label) { } async function waitForRunnerRegistered(label) { - const timeoutSeconds = 300 + const timeoutSeconds = 900 const retryIntervalSeconds = 10 const quietPeriodSeconds = 30 let waitSeconds = 0 core.info( - `Waiting ${quietPeriodSeconds}s for the AWS EC2 instance to be registered in GitHub as a new self-hosted runner` + `Waiting ${quietPeriodSeconds}s for ${config.input.backend} instance to be registered in GitHub as a new self-hosted runner` ) await utils.sleep(quietPeriodSeconds) core.info( @@ -55,7 +55,7 @@ async function waitForRunnerRegistered(label) { } core.error( - `A timeout of ${timeoutSeconds} seconds is exceeded. Your AWS EC2 instance was not able to register itself in GitHub as a new self-hosted runner.` + `A timeout of ${timeoutSeconds} seconds is exceeded. Your ${config.input.backend} instance was not able to register itself in GitHub as a new self-hosted runner.` ) throw new Error('GitHub self-hosted runner registration error') }