Skip to content
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(opensearch): add OpenSearch 2.13 engine version #30399

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

timbru31
Copy link
Contributor

Reason for this change

Amazon OpenSearch Service now supports OpenSearch version 2.13

Description of changes

Adds support for OpenSearch engine version 2.13

Description of how you validated changes

yarn test

Checklist


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label May 31, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team May 31, 2024 10:28
@github-actions github-actions bot added the p2 label May 31, 2024
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a 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.

@timbru31 timbru31 changed the title feat(opensearch): OpenSearch 2.13 engine version feat(opensearch): adds OpenSearch 2.13 engine version May 31, 2024
@timbru31
Copy link
Contributor Author

Exemption Request

Other PRs did not change the README either when the new engine versions were being added.

Comment on lines 94 to 100
* AWS OpenSearch 2.10
* AWS OpenSearch 2.11
* @deprecated use latest version of the OpenSearch engine
**/
public static readonly OPENSEARCH_2_10 = EngineVersion.openSearch('2.10');

/** AWS OpenSearch 2.11 */
public static readonly OPENSEARCH_2_11 = EngineVersion.openSearch('2.11');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are you moving 2.11 to being deprecated instead of 2.10?

2.10 is deprecated because it is not a supported opensearch version in Amazon OpenSearch Service. See its absence on https://docs.aws.amazon.com/opensearch-service/latest/developerguide/supported-operations.html . It should remain deprecated and 2.11 should not be deprecated.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the documentation hint, I've updated the changes accordingly.

@TheRealAmazonKendra
Copy link
Contributor

Excuse me pr bot, an exemption request was added here. Label it! (This is me testing my fix)

@aws-cdk-automation aws-cdk-automation added pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback. pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Jun 5, 2024
@TheRealAmazonKendra
Copy link
Contributor

Good PR Bot

Copy link
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Just a couple of comments:

Integration test changes shouldn't remove coverage from older versions, we still need those tested against as long as customers can still use them.

Also, are all configuration properties valid for 2.13 or are there limitations? If not, we will need to validate for them in code and add those limitation to the README.

@aws-cdk-automation aws-cdk-automation removed the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Jun 5, 2024
@timbru31
Copy link
Contributor Author

timbru31 commented Jun 10, 2024

Thank you for your contribution! Just a couple of comments:

Integration test changes shouldn't remove coverage from older versions, we still need those tested against as long as customers can still use them.

Also, are all configuration properties valid for 2.13 or are there limitations? If not, we will need to validate for them in code and add those limitation to the README.

Hi Kendra,
I've updated the version in the integration tests as the previous PR (https://github.com/aws/aws-cdk/pull/28109/files#diff-3f816d35b99012305de1195d096d4315ed0058906a20f09202b742a73b3e4bcdR25) also did. If you'd like I can leave them untouched and only update packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts - please let me know.

Also I am not aware of any changes in 2.13 that should cause issues with the properties.

@TheRealAmazonKendra
Copy link
Contributor

TheRealAmazonKendra commented Jun 11, 2024

Thank you for your contribution! Just a couple of comments:
Integration test changes shouldn't remove coverage from older versions, we still need those tested against as long as customers can still use them.
Also, are all configuration properties valid for 2.13 or are there limitations? If not, we will need to validate for them in code and add those limitation to the README.

Hi Kendra, I've updated the version in the integration tests as the previous PR (https://github.com/aws/aws-cdk/pull/28109/files#diff-3f816d35b99012305de1195d096d4315ed0058906a20f09202b742a73b3e4bcdR25) also did. If you'd like I can leave them untouched and only update packages/aws-cdk-lib/aws-opensearchservice/test/domain.test.ts - please let me know.

Also I am not aware of any changes in 2.13 that should cause issues with the properties.

You definitely made a fair assumption that we'd want the same thing again here. I typically prefer to see additional integ tests added instead of updating the old ones, but I'll let this one go in this case (watch this very comment come back to bite me at some point, lol).

@TheRealAmazonKendra TheRealAmazonKendra added the pr-linter/exempt-readme The PR linter will not require README changes label Jun 11, 2024
@TheRealAmazonKendra TheRealAmazonKendra changed the title feat(opensearch): adds OpenSearch 2.13 engine version feat(opensearch): add OpenSearch 2.13 engine version Jun 11, 2024
@aws-cdk-automation aws-cdk-automation dismissed their stale review June 11, 2024 21:39

✅ Updated pull request passes all PRLinter validations. Dismissing previous PRLinter review.

Copy link
Contributor

mergify bot commented Jun 11, 2024

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 14a1364
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit db3e77d into aws:main Jun 11, 2024
9 checks passed
Copy link
Contributor

mergify bot commented Jun 11, 2024

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).

amazon-codecatalyst bot pushed a commit to pahud/aws-cdk that referenced this pull request Jun 12, 2024
### Reason for this change

[Amazon OpenSearch Service now supports OpenSearch version 2.13](https://aws.amazon.com/about-aws/whats-new/2024/05/amazon-opensearch-supports-opensearch-version-2-13/)

### Description of changes

Adds support for OpenSearch engine version 2.13

### Description of how you validated changes

`yarn test`

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/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*
@timbru31 timbru31 deleted the feat/os-2.13 branch June 12, 2024 08:08
mazyu36 pushed a commit to mazyu36/aws-cdk that referenced this pull request Jun 22, 2024
### Reason for this change

[Amazon OpenSearch Service now supports OpenSearch version 2.13](https://aws.amazon.com/about-aws/whats-new/2024/05/amazon-opensearch-supports-opensearch-version-2-13/)

### Description of changes

Adds support for OpenSearch engine version 2.13

### Description of how you validated changes

`yarn test`

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/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*
@aws-cdk-automation
Copy link
Collaborator

Comments on closed issues and PRs are hard for our team to see. If you need help, please open a new issue that references this one.

@aws aws locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 pr-linter/exempt-readme The PR linter will not require README changes pr-linter/exemption-requested The contributor has requested an exemption to the PR Linter feedback.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants