Skip to content

fix: honor boot grace before scale-down identity lookup - #5583

Open
guicaulada wants to merge 1 commit into
mainfrom
gc/scale-down-registration-grace
Open

guicaulada wants to merge 1 commit into
mainfrom
gc/scale-down-registration-grace

Conversation

@guicaulada

Copy link
Copy Markdown
Contributor

Scale-down can emit UNVERIFIABLE_RUNNER for a healthy instance that is still registering. On v8.1.0 we observed an instance launch at 19:46:33 UTC, an exact-name lookup miss at 19:46:55, and successful JIT registration at 19:47:04. Identity verification currently runs before the boot-grace check, so an expected startup delay is logged as an error and consumes GitHub requests.

Defer identity lookup for runners without a valid GitHub runner ID until the compute provider's boot grace expires. Runners with a valid ID continue through normal evaluation, and an exact-name miss after the grace period still retains the instance conservatively.

Regression coverage exercises registration arriving during the grace period and an unresolved identity after grace expiry, asserting that the early sweep makes no GitHub client/lookup calls and does not mark or terminate the instance.

@guicaulada
guicaulada requested a review from a team as a code owner November 6, 2026 19:59
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

This branch has not been deployed

No deployments
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.

1 participant