You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(lambda): Prevent scale-up lambda from starting runner for user repo if org level runners is enabled (#3909)
We run a setup where we only have "Org Level Runners"
(`enable_organization_runners: true`).
When creating an action job in a repository that does not belong to an
Organization (User level repository), that ScaleUp lambda will happily
create a new VM for it.
Well, this new VM in turn, will never be able to register itself in
GitHub because it cannot register itself as a "Org Level Runner" as such
concept does not exist at the user level.
This VM will then become a "zombie" VM and will also cause issues with
the ScaleDown lambda (described in `ToBeCreatedIssue`).
In this PR, we will pass the "Repo Owner Type" all the way from the
Webhook lambda to the ScaleUp lambda (by adding a new field in the SQS
payload). Then, the ScaleUp lambda can decide to drop the request if the
"Repo Owner Type" is not of the type `Organization` and
`enable_organization_runners` is set to `true`.
---------
Co-authored-by: Niek Palm <[email protected]>
Co-authored-by: Stuart Pearson <[email protected]>
0 commit comments