-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ec2): instance resourceSignalTimeout overwrites initOptions.timeout #31446
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
Outdated
Show resolved
Hide resolved
...nce-init.js.snapshot/EnableSumTimeoutInstanceTestDefaultTestDeployAssert5CD5B9B5.assets.json
Outdated
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 do
|
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
resourceSignalTimeout
andinitOptions.timeout
in the options for creating an EC2 Instance, only the value fromresourceSignalTimeout
is used.Description of changes
initOptions.timeout
andresourceSignalTimeout
are 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.js
with both fields and verify that warning is loggedinitOptions.timeout
andresourceSignalTimeout
are both not set, timeout is set to default of 5 mininitOptions.timeout
set andresourceSignalTimeout
not set, timeout is set to initOptions.timeoutinitOptions.timeout
not set andresourceSignalTimeout
is set, timeout is set toresourceSignalTimeout
initOptions.timeout
andresourceSignalTimeout
are 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