fix(ec2): instance resourceSignalTimeout overwrites initOptions.timeout#31446
fix(ec2): instance resourceSignalTimeout overwrites initOptions.timeout#31446mergify[bot] merged 20 commits intoaws:mainfrom
Conversation
aws-cdk-automation
left a comment
There was a problem hiding this comment.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
A comment requesting an exemption should contain the text Exemption Request. Additionally, if clarification is needed add Clarification Request to a comment.
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
There was a problem hiding this comment.
Nice Michelle! Left some comments.
I see your fix would now be summing the two values up. This would mean that users (who haven't changed their template) would have the values updated in their next deployment if they upgrade their CDK version. This is generally a sign of breaking change, however, in this case it's extending the timeout value. I think this can be argued to be a non-breaking change. Can you include @moelasmar in the review and get his though?
563f7fe to
40dbdd2
Compare
...g/framework-integ/test/aws-ec2/test/integ.instance-init.js.snapshot/integ-init.template.json
Show resolved
Hide resolved
moelasmar
left a comment
There was a problem hiding this comment.
left minor comments, and you need to rerun the integration test cases with --update-on-failed flag
29e4ffc to
2ae6eb7
Compare
...e-init.js.snapshot/EnableSumTimeoutInstanceTestDefaultTestDeployAssert5CD5B9B5.template.json
Show resolved
Hide resolved
...nce-init.js.snapshot/EnableSumTimeoutInstanceTestDefaultTestDeployAssert5CD5B9B5.assets.json
Show resolved
Hide resolved
...nce-init.js.snapshot/EnableSumTimeoutInstanceTestDefaultTestDeployAssert5CD5B9B5.assets.json
Show resolved
Hide resolved
7cd9f6a to
1d0dd62
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
@mergify update |
☑️ Nothing to doDetails
|
Dismissing Mohamed's review since it's all addressed.
|
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
|
Comments on closed issues and PRs are hard for our team to see. |
Issue # (if applicable)
Closes #30052
Reason for this change
When specifiying both
resourceSignalTimeoutandinitOptions.timeoutin the options for creating an EC2 Instance, only the value fromresourceSignalTimeoutis used.Description of changes
initOptions.timeoutandresourceSignalTimeoutare set, timeout consisting of the sum of the values and a warning suggesting that only one field should be specifiedDescription of how you validated changes
instance-init.jswith both fields and verify that warning is loggedinitOptions.timeoutandresourceSignalTimeoutare both not set, timeout is set to default of 5 mininitOptions.timeoutset andresourceSignalTimeoutnot set, timeout is set to initOptions.timeoutinitOptions.timeoutnot set andresourceSignalTimeoutis set, timeout is set toresourceSignalTimeoutinitOptions.timeoutandresourceSignalTimeoutare both set, timeout is set to sum of timeouts and warning is loggedChecklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license