Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(github): extend timeout duration to 15 minutes #22

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading