fix(aws/autoscaling): harden AutoScalingGroup reconcile + add lifecycle convergence tests#227
Open
sam-goodwin wants to merge 1 commit intomainfrom
Open
fix(aws/autoscaling): harden AutoScalingGroup reconcile + add lifecycle convergence tests#227sam-goodwin wants to merge 1 commit intomainfrom
sam-goodwin wants to merge 1 commit intomainfrom
Conversation
…le convergence tests Co-Authored-By: Claude Opus 4.7 <[email protected]>
Contributor
|
Install the packages built from this commit: alchemy bun add alchemy@https://pkg.ing/alchemy/0f419cd@alchemy.run/better-auth bun add @alchemy.run/better-auth@https://pkg.ing/@alchemy.run/better-auth/0f419cd@alchemy.run/pr-package bun add @alchemy.run/pr-package@https://pkg.ing/@alchemy.run/pr-package/0f419cd |
Contributor
Website Preview DeployedURL: https://alchemyeffectwebsite-worker-pr-227-eog3u7er6dtvr2om.testing-2b2.workers.dev Built from commit This comment updates automatically with each push. |
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.
Hardens the AutoScalingGroup resource as part of the per-resource hardening sweep on top of the reconcile migration.
Reconciler changes
Blanket
Effect.catchswallowed every error. Scoped toAlreadyExistsFaultonly — race / restart-after-crash recovery — so auth, throttling, and validation errors propagate.The post-create read previously retried on any error including auth/validation. Now retries only the actual "still missing in describe" case.
updateAutoScalingGroupanddeleteAutoScalingGroupnow retry on transientScalingActivityInProgressFaultandResourceContentionFault. Delete also retries onResourceInUseFault. Attach/Detach LB target groups retry on the errors their distilled unions actually carry (ResourceContention,InstanceRefreshInProgress).readnow marks foreign ASGs asUnowned, gating takeover behindadopt(true)instead of silently re-tagging.New lifecycle tests
packages/alchemy/test/AWS/AutoScaling/AutoScalingGroup.test.ts. Skipped unlessTEST_LAUNCH_TEMPLATE_IDandTEST_SUBNET_IDSare set (real EC2 fleet required).desiredCapacitymutated out-of-band viasetDesiredCapacityautoScalingGroupNametriggers replaceminSize/maxSize/desiredCapacityadopt(true)re-tags a foreign ASGDistilled patch
No patch needed for this pass.
ScalingActivityInProgressFaultis genuinely transient and a candidate forwithRetryableErrorin distilled, but the reconciler-level retry handles it for now without depending on the AWS retry layer.InvalidInstanceLifecycleStateExceptionis context-dependent and staysBadRequestError + ConflictErroronly.