-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use the --ephemeral
flag by default
#1189
Comments
The Actions team uses the term static runners as the opposing notion to ephemeral runners. |
OK new-ish plan. We are going to remove the Tasks:
|
…-by-default Use --ephemeral by default Every runner is now --ephemeral by default. Note that this works by ARC setting the RUNNER_FEATURE_FLAG_EPHEMERAL envvar to true by default. Previously you had to explicitly set it to true otherwise the runner was passed --once which is known to various race conditions. It's worth noting that the very confusing and related configuration, ephemeral: true, which creates --once runners instead of static(or persistent) runners had been the default since many months ago. So, this should be the only change needed to make every runner ephemeral without any explicit configuration. You can still fall back to static(persistent) runners by setting ephemeral: false, and to --once runners by setting RUNNER_FEATURE_FLAG_EPHEMERAL to "false". But I don't think there're many reasons to do so. Ref #1189
Context
The flag
--ephemeral
has been the standard flag for a while and we should migrate to using it by default now that GHES 3.3 has been out for over 3 months.Currently, a runner is configured with the
--once
flag unless the runner has the environment variableRUNNER_FEATURE_FLAG_EPHEMERAL: "true"
set. This env var should be changed to beENABLE_LEGACY_EPHEMERAL: "true"
which results in the runner being configured with the--once
flag instead of the default--ephemeral
flag.The bulk of the work has been done on PR #831, it just needs updating to use the desired env var name and the docs need updating:
Ephemeral Runner
section needs turning intoStatic Runners
as by default our runners are ephemeral. The configuration option isephemeral: false
and so that's what needs documenting.EDIT edited to reflect ethmoson's comment
The text was updated successfully, but these errors were encountered: