-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat(batch): ephemeralStorage
property on job definitions
#25399
Conversation
Signed-off-by: Sumu <sumughan@amazon.com>
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.
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.
Signed-off-by: Sumu <sumughan@amazon.com>
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.
Signed-off-by: Sumu <sumughan@amazon.com>
✅ 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.
just a rename and this is good to go
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
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.
Do we have any information on the min/max value that is allowed? Can we create some synth time checks for them?
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
ephemeralStorage
propertyephemeralStorage
property on job definitions
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
…n.test.ts Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
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.
It's looking better!
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
if (props.ephemeralStorageSize!.toGibibytes() > 200) { | ||
return ['Ephemeral Storage must be at most 200 GiB.']; | ||
} else if (props.ephemeralStorageSize!.toGibibytes() < 21) { | ||
return ['Ephemeral Storage must be minimum 21 GiB.']; |
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.
Take a look at how we structure our other error messages and see if you can come up with the best version here.
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.
Hello @sumupitchayan
Do you need some help to complete the PR ?
Looking at the review, this is the only comment that was not fixed.
Looking at ComputeEnvironments
here an example of message could be:
ECS Fargate container '${id}' has 'ephemeralStorage' = ${props.ephemeralStorageSize} > 200 GiB; 'ephemeralStorage' cannot be greater than 200 GiB
Sorry in advance for direct ping, but it is about a week without any change and we're looking actively on this fix as it would avoid us stepping back from alpha package ...
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
…csContainerDefinitionProps only Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
… of node.addValidation Signed-off-by: Sumu <sumughan@amazon.com>
Signed-off-by: Sumu <sumughan@amazon.com>
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.
Looks pretty good, some minor comments.
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Sumu <sumughan@amazon.com>
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.
minor formatting, but this is looking good!
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-batch-alpha/lib/ecs-container-definition.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Co-authored-by: Calvin Combs <66279577+comcalvi@users.noreply.github.com>
Signed-off-by: Sumu <sumughan@amazon.com>
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.
lgtm! Nice work on this fix 🙂
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.
I have a few minor comments too 🫣
packages/@aws-cdk/aws-batch-alpha/test/ecs-container-definition.test.ts
Outdated
Show resolved
Hide resolved
Signed-off-by: Sumu <sumughan@amazon.com>
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.
Yay!
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). |
Closes #25393.
Adds missing
ephemeralStorage
property toEcsFargateContainerDefinition
andEcsFargateContainerDefinitionProps
along with a unit test.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license