-
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(codebuild): support three arm-based compute types, Medium, X-Large and 2X-Large #31214
Conversation
@@ -1751,12 +1751,12 @@ describe('Linux x86-64 Image', () => { | |||
}); | |||
|
|||
describe('ARM image', () => { | |||
describe('AMAZON_LINUX_2_ARM', () => { |
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.
Since ARM_LINUX2_ARM is deprecated, I took the opportunity to update it as well.
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.
@@ -1815,17 +1820,39 @@ describe('ARM image', () => { | |||
}); | |||
}); | |||
|
|||
test('cannot be used in conjunction with ComputeType X2_LARGE', () => { | |||
test('can be used with ComputeType X_LARGE', () => { |
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.
A unit test for X_LARGE was missing, so I've added.
@@ -68,17 +73,39 @@ describe('Linux ARM build image', () => { | |||
}); | |||
}); | |||
|
|||
test('cannot be used in conjunction with ComputeType X2_LARGE', () => { | |||
test('can be used with ComputeType X_LARGE', () => { |
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.
A unit test for X_LARGE was missing, so I've added.
@@ -146,17 +178,39 @@ describe('Linux ARM build image', () => { | |||
}); | |||
}); | |||
|
|||
test('cannot be used in conjunction with ComputeType X2_LARGE', () => { | |||
test('can be used with ComputeType X_LARGE', () => { |
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.
A unit test for X_LARGE was missing, so I've added.
@@ -224,17 +283,39 @@ describe('Linux ARM build image', () => { | |||
}); | |||
}); | |||
|
|||
test('cannot be used in conjunction with ComputeType X2_LARGE', () => { | |||
test('can be used with ComputeType X_LARGE', () => { |
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.
A unit test for X_LARGE was missing, so I've added.
@@ -38,17 +38,22 @@ describe('Linux ARM build image', () => { | |||
}); | |||
}); | |||
|
|||
test('cannot be used in conjunction with ComputeType MEDIUM', () => { | |||
test('can be used with ComputeType MEDIUM', () => { |
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.
Although AMAZON_LINUX_2_STANDARD_1_0 is deprecated, there are tests implemented for STANDARD_1_0, so I decided to keep it as I considered removing it inappropriate.
If you think it would be better to remove it, please let me know.
Exemption Request: As this is only a modification to the validate method and there are no changes affecting the README, I think an update to the README is unnecessary. |
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 good. Thanks for the contribution!
✅ 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). |
@Mergifyio update |
☑️ Nothing to do
|
@Mergifyio refresh |
✅ Pull request refreshed |
Hey @mazyu36, apologies for the noise. The build failed on a test with a race condition. Trying to re-run the build so that the PR can be merged. |
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.
Trigger codebuild.
@scanlonp |
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 #30869.
Reason for this change
Because three new arm-based compute types have become supported due to an update.
Announcement: AWS CodeBuild now supports three new Arm-based compute types
Description of changes
Modify the validate method to allow Medium, X-Large, and 2X-Large as Arm-based compute types.
Description of how you validated changes
Modify unit tests and integ tests.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license