-
Notifications
You must be signed in to change notification settings - Fork 4.3k
fix(ec2): don't use inferenceAccellerators in the constructors if not needed #34618
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
Conversation
636d2c4 to
6669f97
Compare
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.
(This review is outdated)
|
Clarification Request: I don't see any case like this being tested in I'm happy to add a test if required but please suggest the correct place and approach. |
6669f97 to
191fcd4
Compare
|
@leonmk-aws any thoughts? |
|
Thank you for your contribution, I have looked at this PR, unfortunately I don't believe it will close the issue that is linked. aws-cdk/packages/aws-cdk-lib/aws-ecs/lib/base/task-definition.ts Lines 492 to 494 in 89d2d5c
I also tried to see if the fix was working by pulling your change in my repo, and using the the reproduction stack posted in the issue thread, I had the same warning without and with the changes.
|
|
This PR has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled. |
|
Hold your horses gh-bot, I will take a look at this this week |
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.
@rantoniuk Did you get time to look at it ? Mainly commenting on this to add the Changes Requested Github status and seeing if my explanation are enough, we are not in a hurry here
|
I can confirm I can reproduce it using the small stack but I'm sure that it worked for my prod stack (but it doesn't now), very weird. I see one big difference between the two, ES2022 vs ES2020 so I had to juggle the tsconfig settings a bit. |
191fcd4 to
3b612c8
Compare
|
@leonmk-aws that should do it - I checked this with both, the sample app and my prod stack. |
|
I see some checks have failed but at first glance it doesn't look they are related to my change? |
leonmk-aws
left a comment
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.
Thank you for finding the issue, I added some comments. Regarding the failing checks I believe it is because the branch is out-of-date, you can rebase before making the changes I added in the comments and we'll see if that fixes the issue.
3b612c8 to
d4406eb
Compare
leonmk-aws
left a comment
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.
Thank you for the fix, approved
|
@leonmk-aws is it still waiting for Exemption Request? |
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
|
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). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
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 #33505
Reason for this change
The Ec2TaskDefinition should not pass the
@deprecatedprops.inferenceAcceleratorsproperty if it's unset or empty, because this results in showing deprecation notices in the console.See this comment.
Description of changes
Do not rely only on passing the props, but check if the array actually contains any elements.
Describe any new or updated permissions being added
Description of how you validated changes
Cannot test by hand due to #34610.
UPDATE: manually tested in a production CDK stack. Result as expected, warnings are not shown during
cdk diff.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license