fix(mac): handle RunInstances scale errors#5183
Merged
Merged
Conversation
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
npalm
approved these changes
Jun 19, 2026
Brend-Smits
pushed a commit
that referenced
this pull request
Jun 24, 2026
🤖 I have created a release *beep* *boop* --- ## [7.8.0](v7.7.1...v7.8.0) (2026-06-24) ### Features * **runners:** add volume_initialization_rate to block_device_mappings ([#5165](#5165)) ([449df46](449df46)), closes [#5163](#5163) * support dynamic EC2 placement and block device overrides ([#5178](#5178)) ([58fd1c2](58fd1c2)) * **webhook:** enforce per-runner dynamic labels policy in dispatcher ([#5172](#5172)) ([d624d96](d624d96)) ### Bug Fixes * **ci:** restore persist-credentials for gh-pages deploy ([#5162](#5162)) ([9955d73](9955d73)) * **codeowners:** require admin review for nested .github paths ([#5164](#5164)) ([83ea30c](83ea30c)) * **mac:** handle RunInstances scale errors ([#5183](#5183)) ([7d8c576](7d8c576)) * **scale-up:** prevent runnerLabels accumulation across dynamic label groups ([#5176](#5176)) ([246949e](246949e)), closes [#5175](#5175) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: runners-releaser[bot] <194412594+runners-releaser[bot]@users.noreply.github.com>
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.
Description
Adds scale-error handling for the dedicated-host
RunInstancespath.RunInstancesdoes not return fleet-styleErrors, so the catch block now checks the thrown AWS SDK errornameagainst configuredscaleErrorsand throwsScaleErrorto trigger retry behavior. The successful response path is split intoprocessRunInstanceResultto validate returned instance IDs.Test Plan
RunInstancesfailed withInsufficientHostCapacity, the error was matched througherror.name, andScaleErrorwas thrown so the request is retried.Related Issues
N/A