ipdxco / custom-github-runners

Customizable Self-hosted GitHub Runners
6 stars 1 forks source link

Configure alerting for GitHub timeouts #31

Closed galargh closed 1 year ago

galargh commented 1 year ago

The runners sometimes get stuck after adding runner but before the runner picks up a job. This PR configures alerts for situations like these.

Degraded performance:

--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       Self-hosted runner registration                        |
|                                                                              |
--------------------------------------------------------------------------------

# Authentication

√ Connected to GitHub

# Runner Registration

√ Runner successfully added
The HTTP request timed out after 00:01:40.

Expected performance:

--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       Self-hosted runner registration                        |
|                                                                              |
--------------------------------------------------------------------------------

# Authentication

√ Connected to GitHub

# Runner Registration

√ Runner successfully added
√ Runner connection is good

# Runner settings

√ Settings Saved.

[
  {
    group: Operating System,
    detail: Distribution: Ubuntu 22.04.2 LTS
Architecture: x86_64
  },
  {
    group: Runner Image,
    detail: AMI id: ami-0e5a762b84dbd7a3d
  }
]
Starting runner after 0:0:47
Starting the runner as user runner
Starting the runner in ephemeral mode

√ Connected to GitHub

Current runner version: '2.305.0'
2023-07-10 09:33:28Z: Listening for Jobs
2023-07-10 09:33:30Z: Running job: Test job