Repository navigation
Retry allocation in multiple zones/regions if there is no capacity - #231
Merged
Merged
Conversation
Collaborator
|
Lovely, checking it out. |
Collaborator
|
Works! |
humzam
added a commit
to humzam/ec2-github-runner
that referenced
this pull request
Jun 5, 2025
This is a new supported output created in machulav#231, but I noticed the README was not updated.
Preen
pushed a commit
that referenced
this pull request
Aug 29, 2025
criskurtin
pushed a commit
to xenonhr/ec2-github-runner
that referenced
this pull request
Oct 5, 2026
* Update README.md * Upgrade to AWS SDK 3 and NodeJS20 (machulav#192) * Update NodeJS to 20. Update AWS SDK to 3 * Add wait config to place * Update dist * Update README.md updated to v4 on aws credentials * feat: support for using spot instances (machulav#210) * Update ecmaVersion to 2020 * Run prettier on src * Add marketType input * Specify InstanceMarketOptions * Fix typo * Generate dist * Allow specifying market type * Document `market-type` (machulav#211) * Document `market-type` * Fix blank line * Fix note * Try to fix note syntax * Fix configure-aws-credentials example in README (machulav#219) * Bump @octokit/request and @actions/github (machulav#218) Tested and works. Bumps [@octokit/request](https://github.com/octokit/request.js) to 8.4.1 and updates ancestor dependency [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github). These dependencies need to be updated together. Updates `@octokit/request` from 5.6.3 to 8.4.1 - [Release notes](https://github.com/octokit/request.js/releases) - [Commits](octokit/request.js@v5.6.3...v8.4.1) Updates `@actions/github` from 4.0.0 to 6.0.0 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@octokit/request" dependency-type: indirect - dependency-name: "@actions/github" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Bump undici from 5.28.4 to 5.28.5 (machulav#209) Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.4...v5.28.5) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Use the label input, if there is one. (machulav#216) * Update dist * Update index.js * Update dist * Optimize startup time (machulav#223) * added startup optimization config * added startup optimization config * added startup optimization config * Update README.md Added config for startup optimizations * added debuging * added debuging * Parameterise execution of runner (update) (machulav#152) * Parameterise execution of runner * Add new parm to config * Add ability to specify user * Run npm run package. Fix ownership of the directory where actions are installed. * try to repackage (#1) --------- Co-authored-by: Kevin <kevin@kpturner.co.uk> Co-authored-by: Matthew Campbell <matt@farixembedded.com> * add new block-device-mappings parameter (machulav#229) This allows the user to specify the settings on the node's underlying EBS volume. For example, the user can change the thoroughput on the volume. * Bump undici from 5.28.5 to 5.29.0 (machulav#228) Bumps [undici](https://github.com/nodejs/undici) from 5.28.5 to 5.29.0. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.5...v5.29.0) --- updated-dependencies: - dependency-name: undici dependency-version: 5.29.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (machulav#226) * Update dist * added the code from pull machulav#224 (machulav#230) * removed file non related to this project * remove default ec2VolumeSize or ec2VolumeType settings (machulav#235) Prior to this change, if a user did not specify ec2-volume-size or ec2-volume-type, we would send default values of "8" and "gp2" to the EC2 API. This was a problem if the user's AMI used a snapshot with other settings (like a bigger disk size, or another disk type like "io1"). AWS could fail to start the nodes if the AMI was incompatible with these defaults. Update the action to only send ec2VolumeSize or ec2VolumeType in the API call if the user has specified a value (not an empty string). With this change, we reintroduce the behavior prior to 8b37f73. This change preserves the default for ec2-device-name, since we need that default value in order to construct BlockDeviceSettings. * Retry allocation in multiple zones/regions if there is no capacity (machulav#231) * add ability to specify multiple availability zones * add multi-region support to the availability zone spec * do best effort to remove ec2 instance if there is no runner label * add default startup timeout * fix parsing of gh timeout config * Update dist --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> Co-authored-by: Lukas Kosina <lukas.kosina@renfri.cz> Co-authored-by: GitHub Actions <runner@fv-az1210-80.u01o3k0fnecuzb3k2fx4wwelcf.cx.internal.cloudapp.net> Co-authored-by: Philip Mannheimer <philip.mannheimer@gmail.com> Co-authored-by: Tarun Verghis <tarun.verghis@gmail.com> Co-authored-by: Ben Welsh <b@palewi.re> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <runner@fv-az1440-897.jjmkefn1vyrute1i2z0qfedq4g.bx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az1277-112.rlg54ewzj0kupbrqbmaalt3b3c.ex.internal.cloudapp.net> Co-authored-by: Jon Pugh <jon@thinkdrop.net> Co-authored-by: GitHub Actions <runner@fv-az788-316.ckq1c4o4p5mujinpedzkg0nqvc.ex.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az1319-872.q4dylm41c3gupbygbldewyxj2a.ex.internal.cloudapp.net> Co-authored-by: Esteve Fernandez <33620+esteve@users.noreply.github.com> Co-authored-by: Kevin <kevin@kpturner.co.uk> Co-authored-by: Matthew Campbell <matt@farixembedded.com> Co-authored-by: Ken Dreyer <ktdreyer@ktdreyer.com> Co-authored-by: Joshua Elson <joshelson@gmail.com> Co-authored-by: GitHub Actions <runner@fv-az1784-503.4m3t34hfrc5uvoioqytrbnhele.jx.internal.cloudapp.net> Co-authored-by: Ken Dreyer <kdreyer@redhat.com> Co-authored-by: Jonathan Perry <yonch@yonch.com> Co-authored-by: GitHub Actions <runner@fv-az1335-113.yv3ahgasfrae3lzmsnqrr4xczg.phxx.internal.cloudapp.net>
criskurtin
pushed a commit
to xenonhr/ec2-github-runner
that referenced
this pull request
Oct 5, 2026
* Update README.md * Upgrade to AWS SDK 3 and NodeJS20 (machulav#192) * Update NodeJS to 20. Update AWS SDK to 3 * Add wait config to place * Update dist * Update README.md updated to v4 on aws credentials * feat: support for using spot instances (machulav#210) * Update ecmaVersion to 2020 * Run prettier on src * Add marketType input * Specify InstanceMarketOptions * Fix typo * Generate dist * Allow specifying market type * Document `market-type` (machulav#211) * Document `market-type` * Fix blank line * Fix note * Try to fix note syntax * Fix configure-aws-credentials example in README (machulav#219) * Bump @octokit/request and @actions/github (machulav#218) Tested and works. Bumps [@octokit/request](https://github.com/octokit/request.js) to 8.4.1 and updates ancestor dependency [@actions/github](https://github.com/actions/toolkit/tree/HEAD/packages/github). These dependencies need to be updated together. Updates `@octokit/request` from 5.6.3 to 8.4.1 - [Release notes](https://github.com/octokit/request.js/releases) - [Commits](octokit/request.js@v5.6.3...v8.4.1) Updates `@actions/github` from 4.0.0 to 6.0.0 - [Changelog](https://github.com/actions/toolkit/blob/main/packages/github/RELEASES.md) - [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/github) --- updated-dependencies: - dependency-name: "@octokit/request" dependency-type: indirect - dependency-name: "@actions/github" dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Bump undici from 5.28.4 to 5.28.5 (machulav#209) Bumps [undici](https://github.com/nodejs/undici) from 5.28.4 to 5.28.5. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.4...v5.28.5) --- updated-dependencies: - dependency-name: undici dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Use the label input, if there is one. (machulav#216) * Update dist * Update index.js * Update dist * Optimize startup time (machulav#223) * added startup optimization config * added startup optimization config * added startup optimization config * Update README.md Added config for startup optimizations * added debuging * added debuging * Parameterise execution of runner (update) (machulav#152) * Parameterise execution of runner * Add new parm to config * Add ability to specify user * Run npm run package. Fix ownership of the directory where actions are installed. * try to repackage (#1) --------- Co-authored-by: Kevin <kevin@kpturner.co.uk> Co-authored-by: Matthew Campbell <matt@farixembedded.com> * add new block-device-mappings parameter (machulav#229) This allows the user to specify the settings on the node's underlying EBS volume. For example, the user can change the thoroughput on the volume. * Bump undici from 5.28.5 to 5.29.0 (machulav#228) Bumps [undici](https://github.com/nodejs/undici) from 5.28.5 to 5.29.0. - [Release notes](https://github.com/nodejs/undici/releases) - [Commits](nodejs/undici@v5.28.5...v5.29.0) --- updated-dependencies: - dependency-name: undici dependency-version: 5.29.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update README.md (machulav#226) * Update dist * added the code from pull machulav#224 (machulav#230) * removed file non related to this project * remove default ec2VolumeSize or ec2VolumeType settings (machulav#235) Prior to this change, if a user did not specify ec2-volume-size or ec2-volume-type, we would send default values of "8" and "gp2" to the EC2 API. This was a problem if the user's AMI used a snapshot with other settings (like a bigger disk size, or another disk type like "io1"). AWS could fail to start the nodes if the AMI was incompatible with these defaults. Update the action to only send ec2VolumeSize or ec2VolumeType in the API call if the user has specified a value (not an empty string). With this change, we reintroduce the behavior prior to 8b37f73. This change preserves the default for ec2-device-name, since we need that default value in order to construct BlockDeviceSettings. * Retry allocation in multiple zones/regions if there is no capacity (machulav#231) * add ability to specify multiple availability zones * add multi-region support to the availability zone spec * do best effort to remove ec2 instance if there is no runner label * add default startup timeout * fix parsing of gh timeout config * Update dist * Add `region` output to README (machulav#236) This is a new supported output created in machulav#231, but I noticed the README was not updated. * optimized the timeout feature (machulav#244) * Update dist * Add support for EC2 metadata options input (machulav#246) Introduces a new 'metadata-options' input in action.yml and updates config.js and aws.js to handle and pass EC2 instance metadata options when creating instances. This allows users to specify advanced metadata settings for their EC2 instances. * Update dist * Get latest runner (machulav#245) * Update dist * feat!: add packages input that installs packages on the AWS instance as part of cloud-init (machulav#241) * add ability to specify packages, switch to yaml cloud-init input * debug-print the user data * add the packages parameter to action.yaml * packaged the action * write the script to a file then execute the file, to allow multi line input * write pre-runner-script.sh using write_files * remove debug print used while developing * always write pre-runner script (even if empty) since runner-setup.sh always sources it * enable debugging * remove debug-printing the user-data content * clean up printing of internal logs, used in development * bring back the user-data.log prinitng, it was in upstream - no need to remove * remove the dependency on jq * make the github api return value parsing more robust to changes in whitespace * run npm run package * Update dist * Clarify market-type option in README (machulav#250) * Update README.md * Revert "Update README.md" This reverts commit 7c6ee5c. * Hot fix/update command to run (machulav#259) * Feature/support for jit (machulav#261) * first version of jit compability * modified readme to meet the new implementations * Fix code block formatting in README.md Updated code blocks in README.md to use proper formatting. * ensure docker is running (machulav#262) * Upgrade action runtime from node20 to node24 (machulav#265) Node.js 20 actions are deprecated and will be forced to Node.js 24 by default starting June 2nd, 2026. This updates the action runtime and the package workflow build to use Node.js 24. * Bump fast-xml-parser and @aws-sdk/client-ec2 (machulav#267) Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) to 5.5.8 and updates ancestor dependency [@aws-sdk/client-ec2](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/clients/client-ec2). These dependencies need to be updated together. Updates `fast-xml-parser` from 4.2.5 to 5.5.8 - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases) - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md) - [Commits](NaturalIntelligence/fast-xml-parser@v4.2.5...v5.5.8) Updates `@aws-sdk/client-ec2` from 3.557.0 to 3.1028.0 - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases) - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/clients/client-ec2/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.1028.0/clients/client-ec2) --- updated-dependencies: - dependency-name: fast-xml-parser dependency-version: 5.5.8 dependency-type: indirect - dependency-name: "@aws-sdk/client-ec2" dependency-version: 3.1028.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update dist * Bump flatted from 3.3.1 to 3.4.2 (machulav#270) Bumps [flatted](https://github.com/WebReflection/flatted) from 3.3.1 to 3.4.2. - [Commits](WebReflection/flatted@v3.3.1...v3.4.2) --- updated-dependencies: - dependency-name: flatted dependency-version: 3.4.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump lodash from 4.17.21 to 4.18.1 (machulav#269) Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.18.1. - [Release notes](https://github.com/lodash/lodash/releases) - [Commits](lodash/lodash@4.17.21...4.18.1) --- updated-dependencies: - dependency-name: lodash dependency-version: 4.18.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> * Update dist * Bump minimatch (machulav#272) Bumps and [minimatch](https://github.com/isaacs/minimatch). These dependencies needed to be updated together. Updates `minimatch` from 3.1.2 to 3.1.5 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](isaacs/minimatch@v3.1.2...v3.1.5) Updates `minimatch` from 9.0.5 to 9.0.9 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](isaacs/minimatch@v3.1.2...v3.1.5) --- updated-dependencies: - dependency-name: minimatch dependency-version: 3.1.5 dependency-type: indirect - dependency-name: minimatch dependency-version: 9.0.9 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> * Bump brace-expansion (machulav#268) Bumps and [brace-expansion](https://github.com/juliangruber/brace-expansion). These dependencies needed to be updated together. Updates `brace-expansion` from 1.1.11 to 1.1.13 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@1.1.11...v1.1.13) Updates `brace-expansion` from 2.0.2 to 2.0.3 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](juliangruber/brace-expansion@1.1.11...v1.1.13) --- updated-dependencies: - dependency-name: brace-expansion dependency-version: 1.1.13 dependency-type: indirect - dependency-name: brace-expansion dependency-version: 2.0.3 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> * Bump picomatch (machulav#271) Bumps and [picomatch](https://github.com/micromatch/picomatch). These dependencies needed to be updated together. Updates `picomatch` from 2.3.1 to 2.3.2 - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](micromatch/picomatch@2.3.1...2.3.2) Updates `picomatch` from 4.0.3 to 4.0.4 - [Release notes](https://github.com/micromatch/picomatch/releases) - [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md) - [Commits](micromatch/picomatch@2.3.1...2.3.2) --- updated-dependencies: - dependency-name: picomatch dependency-version: 2.3.2 dependency-type: indirect - dependency-name: picomatch dependency-version: 4.0.4 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> * build(deps): update package-lock.json * Update dist * fix: duplicate securityGroupIds and subnetId * Update dist --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Volodymyr Machula <machulav@gmail.com> Co-authored-by: Lukas Kosina <lukas.kosina@renfri.cz> Co-authored-by: GitHub Actions <runner@fv-az1210-80.u01o3k0fnecuzb3k2fx4wwelcf.cx.internal.cloudapp.net> Co-authored-by: Philip Mannheimer <philip.mannheimer@gmail.com> Co-authored-by: Tarun Verghis <tarun.verghis@gmail.com> Co-authored-by: Ben Welsh <b@palewi.re> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <runner@fv-az1440-897.jjmkefn1vyrute1i2z0qfedq4g.bx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az1277-112.rlg54ewzj0kupbrqbmaalt3b3c.ex.internal.cloudapp.net> Co-authored-by: Jon Pugh <jon@thinkdrop.net> Co-authored-by: GitHub Actions <runner@fv-az788-316.ckq1c4o4p5mujinpedzkg0nqvc.ex.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@fv-az1319-872.q4dylm41c3gupbygbldewyxj2a.ex.internal.cloudapp.net> Co-authored-by: Esteve Fernandez <33620+esteve@users.noreply.github.com> Co-authored-by: Kevin <kevin@kpturner.co.uk> Co-authored-by: Matthew Campbell <matt@farixembedded.com> Co-authored-by: Ken Dreyer <ktdreyer@ktdreyer.com> Co-authored-by: Joshua Elson <joshelson@gmail.com> Co-authored-by: GitHub Actions <runner@fv-az1784-503.4m3t34hfrc5uvoioqytrbnhele.jx.internal.cloudapp.net> Co-authored-by: Ken Dreyer <kdreyer@redhat.com> Co-authored-by: Jonathan Perry <yonch@yonch.com> Co-authored-by: GitHub Actions <runner@fv-az1335-113.yv3ahgasfrae3lzmsnqrr4xczg.phxx.internal.cloudapp.net> Co-authored-by: Humza Mangrio <humzam99@gmail.com> Co-authored-by: GitHub Actions <runner@runnervmf4ws1.1baynwzsqolufha0zuf3dtedeg.ex.internal.cloudapp.net> Co-authored-by: Kamran Biglari <kamran.biglari@newchangefx.com> Co-authored-by: GitHub Actions <runner@runnervmwhb2z.gsykcavn2kru5dskkxkxudirqc.bx.internal.cloudapp.net> Co-authored-by: Stephen Galea <138502907+stephen-galea-weavr@users.noreply.github.com> Co-authored-by: GitHub Actions <runner@runnervmwhb2z.oz3hdax1fqteba02tevjkwltrd.yx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@runnervmwhb2z.22ggckjvp30uvecufrvgofpwhd.phxx.internal.cloudapp.net> Co-authored-by: Gabriel Le Breton <lebreton.gabriel@gmail.com> Co-authored-by: GiorgioBaldelli <g.baldelli@gmail.com> Co-authored-by: GitHub Actions <runner@runnervm35a4x.tdo3uu5luxduddxkbirwjdwkdh.bx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@runnervm35a4x.zkpde2uc42pubboytsx4hlhysc.dx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@runnervm8df0l.y1d5uzqg4p1u3jznlhajqvjm4e.dx.internal.cloudapp.net> Co-authored-by: GitHub Actions <runner@runnervm8df0l.yizgoo0wxrde1freo0ereqkpvd.dx.internal.cloudapp.net>
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.
When using spot instances, sometimes an availability zone does not have sufficient capacity, and the action fails.
This PR adds the ability for users to specify a list of objects in
availability-zones-configspecifying fields for image ID, subnet ID, securityGroupID, and region. The action traverses those in sequence until it finds a region with the instance.It then returns the instance ID and region, so the stop workflow can work on the correct region (the user gets credentials there).
This has been used successfully in the unvariance collector's wrapper action used in a benchmarking workflow and increased the reliability of the workflow significantly.