Skip to content

Ephemeral runners #1372

Closed
Closed

Description

@npalm

Description

The current runners are short lived but not ephemeral. A runner can process multiple jobs till it got killed by the scale-down lambda. Ephemeral runners guarantee a clean environment for every job to improve security. Avoiding any shared state, or left overs between jobs.

How

GitHub have introduced the workflow_job to support scaling ephemeral runners. The runner agent is extended with the option --ephemeral which will terminate the agent after a run and de-register it.

  • Enable via option ephemeral to runners [ephemeral] Add option ephemeral runners #1375
  • Boot instances faster, e.g. via pre-build ami
  • Have an optional pool available of runner
  • Handle events that cannot processed due to limits or exceptions

Implementation

For tracking implementation a GitHub project is crated to track progress. All work will be first merged to the branch feature/ephemeral. Active development (also via PR) on ephemeral runnes can done via PR's to this branch.

Activity

  1. added
    enhancement
    help wanted
    on Nov 3, 2021
  2. skyzyx commented on Nov 3, 2021

    @skyzyx
    Contributor

    ‡ …for GitHub.com.

    For GHES, workflow_job does not exist in v3.2, and neither does --ephemeral. The latter is supposed to be coming in v3.3. There has been no public announcement of workflow_job coming to GHES one way or the other.

    See also https://github.com/philips-labs/terraform-aws-github-runner/issues/182.

  3. npalm commented on Nov 3, 2021

    @npalm
    MemberAuthor

    @skyzyx thanks for the notice, we will keep the module backwards comptabile. But I planning only to support hte ephemeral runners together with the workflow_job event

  4. aidan-mundy commented on Nov 9, 2021

    @aidan-mundy

    @skyzyx @npalm Enterprise Server 3.3.0.rc1 dropped yesterday with support for ephemeral runners and workflow_job.

  5. ScottGuymer commented on Dec 2, 2021

    @ScottGuymer
    Contributor

    Implementing this is in progress. Closing this in favour of #1372. Will track the implementation of this there.

  6. aidan-mundy commented on Dec 2, 2021

    @aidan-mundy

    @ScottGuymer 🤔 this is #1372

  7. ScottGuymer commented on Dec 2, 2021

    @ScottGuymer
    Contributor

    oops too many tabs..

  8. ScottGuymer commented on May 8, 2022

    @ScottGuymer
    Contributor

    This is now implemented and released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions