Skip to content

Conversation

@iliapolo
Copy link
Contributor

@iliapolo iliapolo commented Apr 27, 2025

During hotswap deployment, we wait for the ECS service to become stable:

await sdk.ecs().waitUntilServicesStable({
cluster: update.service?.clusterArn,
services: [service.serviceArn],
});

The timeout is hardcoded to 600 seconds, which is a very long time to have to wait. This PR add an additional property to the already existing ECS overrides bag, to configure this timeout.

Notes

Our integ tests currently suffer from this because they needlessly wait the hard-coded 10 minute timeout in a test that asserts ECS updates error handling. With this option, we set the operation timeout to 10 seconds and reduce the total integ suite duration from 17min to 9min.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@iliapolo iliapolo marked this pull request as draft April 27, 2025 08:24
@aws-cdk-automation aws-cdk-automation requested a review from a team April 27, 2025 08:25
@github-actions github-actions bot added the p2 label Apr 27, 2025
@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2025

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 79.46%. Comparing base (e4c6a17) to head (5778e4a).

Files with missing lines Patch % Lines
packages/aws-cdk/lib/cli/cdk-toolkit.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #417      +/-   ##
==========================================
+ Coverage   79.18%   79.46%   +0.28%     
==========================================
  Files          54       54              
  Lines        6912     6914       +2     
  Branches      772      776       +4     
==========================================
+ Hits         5473     5494      +21     
+ Misses       1421     1400      -21     
- Partials       18       20       +2     
Flag Coverage Δ
suite.unit 79.46% <80.00%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@rix0rrr rix0rrr temporarily deployed to integ-approval May 9, 2025 09:10 — with GitHub Actions Inactive
@rix0rrr rix0rrr added this pull request to the merge queue May 9, 2025
Merged via the queue into main with commit 34950ad May 9, 2025
20 of 21 checks passed
@rix0rrr rix0rrr deleted the epolon/hotswap-operation-timeout branch May 9, 2025 09:47
github-merge-queue bot pushed a commit that referenced this pull request Jan 12, 2026
…_VALUE cannot be converted to Integer` (#973)

The PR #417 introduced extra
hotswap flags. However, when used the flags yield serialisation errors
like bellow because the expected type is a number not a string.

```
failed: SerializationException: STRING_VALUE cannot be converted to Integer
```

This PR changes hotswap-ecs-minimum-healthy-percent,
hotswap-ecs-maximum-healthy-percent, and
hotswap-ecs-stabilization-timeout-seconds from string to expected type
number type.

---
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license

---------

Co-authored-by: Momo Kornher <kornherm@amazon.co.uk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants