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

fix: Enable runner updates by default #120

Closed
wants to merge 1 commit into from

Conversation

laxgoalie392
Copy link

Fixes #112

Disabling updates turned off by default per the convo in that issue.

I'm working through some cdk unit tests now but i wanted to get this out there for an initial review

@laxgoalie392 laxgoalie392 changed the title first stab at disabling runner updates by default fix: Enable runner updates by default Oct 10, 2022
@kichik
Copy link
Member

kichik commented Oct 10, 2022

Thanks! After sleeping on it, I am now even more sure we should only disable updates when the user sets a specific runner version. It will be easier to use this way.

I have it almost ready. The integration test is running now.

I'm sorry for not letting you know sooner.

@laxgoalie392
Copy link
Author

No worries! It took almost no time to put together the changes for this PR.

mergify bot pushed a commit that referenced this pull request Oct 10, 2022
Some GitHub Enterprise instances forbid runners from using --disableupdate. We only truly need it when a user a chooses a specific runner version. When we update the runner image with its version every week, disabling updates shouldn't matter anyway. GitHub Actions seems to only auto-update the runner if we're two versions behind and that would be very rare in the span of a week (default image rebuild interval).

Originally we wanted to disable auto-updates because our runners are ephemeral and updating them for every single job would be wasteful. Since they only auto-update if we're two versions behind, I feel like we can drop this flag.

Fixes #112
Replaces #120
@kichik kichik closed this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GitHub server does not support configuring a self-hosted runner with 'DisableUpdate' flag.
2 participants