[deployer] Improve Insufficient Capacity Handling - #4543
Merged
Conversation
Benchmark resultsRegressions: ✅ `qmdb::merkleize/v=any::unordered::fixed::mmr k=10000 ch=false s=true cc=true` (2/2 gates passed)
✅ `qmdb::merkleize/v=current::ordered::fixed::mmb chunk=256 k=10000 ch=false s=true cc=true` (2/2 gates passed)
Baseline commit(s): |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
commonware-mcp | 3eec41b | Aug 20 2026, 03:30 PM |
Deploying monorepo with
|
| Latest commit: |
3eec41b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8da187a5.monorepo-eu0.pages.dev |
| Branch Preview URL: | https://deployer-robustness.monorepo-eu0.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## main #4543 +/- ##
==========================================
+ Coverage 95.52% 95.57% +0.05%
==========================================
Files 610 611 +1
Lines 276780 277515 +735
Branches 6646 6655 +9
==========================================
+ Hits 264382 265237 +855
+ Misses 10210 10109 -101
+ Partials 2188 2169 -19 see 49 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
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.
Closes: #4522
Problem
The AWS deployer only tried each eligible subnet once on InsufficientInstanceCapacity. If every eligible AZ was temporarily constrained, create failed instead of waiting for capacity to recover. Its fallback retry path also retried fatal RunInstances errors indefinitely, and concurrent launches in one region could amplify the shortage.
Changes
Grouped deployments remain restricted to their selected AZ so capacity fallback does not violate colocation.
Testing