-
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
chore: remove sdk v2 handler and associated tests #29868
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
colifran
force-pushed
the
colifran/remove-v2-handler
branch
from
April 18, 2024 01:06
f7181b7
to
4de2618
Compare
colifran
changed the title
chore: remove sdk v2 handler and tests
chore: remove sdk v2 handler and associated tests
Apr 18, 2024
aws-cdk-automation
added
the
pr/needs-maintainer-review
This PR needs a review from a Core Team Member
label
Apr 18, 2024
comcalvi
requested changes
Apr 23, 2024
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Outdated
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Show resolved
Hide resolved
.../@aws-cdk/custom-resource-handlers/lib/custom-resources/aws-custom-resource-handler/index.ts
Show resolved
Hide resolved
1 task
aws-cdk-automation
removed
the
pr/needs-maintainer-review
This PR needs a review from a Core Team Member
label
Apr 23, 2024
mergify bot
pushed a commit
that referenced
this pull request
Apr 23, 2024
Closes #29937 ### Reason for this change Adding assertions for `AwsCustomResource` will improve our test coverage. ### Description of changes Added assertions for `AwsCustomResource` to integ tests that were impacted by this [PR](#29868). ### Description of how you validated changes Assertions were validated by running the integ tests and verifying that it succeeded. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https:/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https:/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
1 task
comcalvi
approved these changes
Apr 24, 2024
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 refactoring this thorny code, I think it's in a much better state now.
mergify bot
pushed a commit
that referenced
this pull request
Apr 25, 2024
Closes #29937 ### Reason for this change Adding assertions for `AwsCustomResource` will improve our test coverage. ### Description of changes Added assertions for `AwsCustomResource` to integ tests that were impacted by this [PR](#29868). ### Description of how you validated changes Assertions were validated by running the integ tests and verifying that it succeeded. ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https:/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https:/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
Signed-off-by: Francis <[email protected]>
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Comments on closed issues and PRs are hard for our team to see. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
contribution/core
This is a PR that came from AWS.
p2
pr/do-not-merge
This PR should not be merged at this time.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue # (if applicable)
Closes #29882
Reason for this change
The AWS SDK V2 is being deprecated. We need to remove all uses of it from the CDK.
Description of changes
I removed the v2 handler file and all associated unit tests. Additionally, I refactored the v3 handler and renamed it to
index.ts
. The refactor I did consolidated logic that was spread across multiple files to be shared between the v2 handler and the v3 handler. Utility related functions are now contained inutils.ts
and logic related to loading the SDK package that will be used in making the specific API call is now contained inload-sdk.ts
.Description of how you validated changes
As a result of the handler file name changing and the handler logic being refactored, the asset hash for the v3 handler changed. The asset hash change resulted in integ test failures. All impacted integ tests were updated and deployed with successful results.
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license