Promote graceful scale-in for actions-runner to sandbox#268
Merged
Conversation
Follow-up to #265. Copies the graceful scale-in implementation from the development environment to sandbox so it can bake there before the global promotion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
infrahouse8
approved these changes
Apr 19, 2026
Member
Author
clean run another run |
akuzminsky
added a commit
that referenced
this pull request
Apr 19, 2026
Follow-up to #265 (development) and #268 (sandbox). Copies the graceful scale-in implementation from environments/sandbox/modules/profile/github_runner/ into the top-level modules/profile/github_runner/ so all remaining environments pick it up. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9 tasks
akuzminsky
added a commit
that referenced
this pull request
Apr 19, 2026
…#269) Follow-up to #265 (development) and #268 (sandbox). Copies the graceful scale-in implementation from environments/sandbox/modules/profile/github_runner/ into the top-level modules/profile/github_runner/ so all remaining environments pick it up. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
environments/developmenttoenvironments/sandbox(follow-up to Graceful scale-in for actions-runner (development) #265).gha-lifecycle-heartbeater.sh,gha-lifecycle-heartbeater.timer,gha-on-runner-exit.sh,gha-lifecycle-heartbeater.service.erb) and updates 5 existing ones (gha_prerun.sh,register.pp,service.pp,actions-runner.service.erb,start-actions-runner.sh.erb).environments/sandbox/modules/profile/github_runner/is byte-identical to the development copy.Closes #266.
Deployment strategy
Gradual rollout — Puppet first, Terraform second, deliberately exercising the old-Terraform / new-Puppet combination in sandbox before any Terraform bump.
deregistration_hookname-less fact. Expected fallout is scoped and visible:delete_registration_tokenmay returnAccessDeniedException(old IAM) — heartbeater / lifecycle logic should still degrade cleanly.terraform-aws-actions-runnerPart 1 release (newderegistration_hooknamefact + IAM) to sandbox.Test plan
Phase 1 — old-Terraform / new-Puppet (this PR)
puppet-lint --fail-on-warningsclean on sandbox profile module (done locally).delete_registration_tokenunder old IAM — document whether it fails loudly (AccessDeniedException) and whether the runner still terminates cleanly.deregistration_hooknamefact absent — confirm no fatal errors in Puppet runs or in the lifecycle scripts.Terminating:Waitinstances beyondheartbeat_timeoutthat would not also have been stuck pre-change.Phase 2 — after Terraform Part 1 is applied to sandbox (separate change)
ValidationErroronSetInstanceProtectionin CloudTrail during a sandbox scale-in event.Terminating:Waitinstances beyondheartbeat_timeout.delete_registration_tokensucceeds (noAccessDeniedException).🤖 Generated with Claude Code