Skip to content

Commit

Permalink
feat(github): extend timeout duration to 15 minutes
Browse files Browse the repository at this point in the history
Also remove hardcoded mention to AWS EC2 service.
  • Loading branch information
soonum committed May 31, 2024
1 parent 1dced74 commit 58f2cae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/gh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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')
}
Expand Down

0 comments on commit 58f2cae

Please sign in to comment.