Skip to content

chore(rds): add MariaDB engine versions and deprecate old ones#21323

Merged
mergify[bot] merged 6 commits intoaws:mainfrom
sav-valerio:feat-mariadb-july22
Aug 4, 2022
Merged

chore(rds): add MariaDB engine versions and deprecate old ones#21323
mergify[bot] merged 6 commits intoaws:mainfrom
sav-valerio:feat-mariadb-july22

Conversation

@sav-valerio
Copy link
Copy Markdown

Taken from Amazon RDS for MariaDB supports new minor versions 10.6.8, 10.5.16, 10.4.25, 10.3.35, 10.2.44


All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

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

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 25, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team July 25, 2022 22:11
@github-actions github-actions bot added the p2 label Jul 25, 2022
@sav-valerio sav-valerio changed the title chore(rds): add latest MariaDB engine vers released in July 2022 chore(rds): add latest MariaDB engine versions released in July '22 Jul 25, 2022
@sav-valerio sav-valerio changed the title chore(rds): add latest MariaDB engine versions released in July '22 chore(rds): add MariaDB engine versions released in July '22 Jul 25, 2022
@TheRealAmazonKendra TheRealAmazonKendra changed the title chore(rds): add MariaDB engine versions released in July '22 chore(rds): add MariaDB engine versions Jul 27, 2022
Copy link
Copy Markdown
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! Please see my note below about the 10.2 versions. Also, you don't necessarily have to do this in this PR, but I'm thinking we should maybe deprecate the old versions that aren't supported anymore. Thoughts on that?

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review July 27, 2022 19:15

Pull request has been modified.

@sav-valerio sav-valerio changed the title chore(rds): add MariaDB engine versions chore(rds): add MariaDB engine versions and remove deprecated ones Jul 27, 2022
@sav-valerio sav-valerio force-pushed the feat-mariadb-july22 branch from 93747d0 to 357e6b9 Compare July 27, 2022 19:22
@sav-valerio
Copy link
Copy Markdown
Author

sav-valerio commented Jul 27, 2022

Thank you for your contribution! Please see my note below about the 10.2 versions. Also, you don't necessarily have to do this in this PR, but I'm thinking we should maybe deprecate the old versions that aren't supported anymore. Thoughts on that?

I think that it'll be better to do that in a new PR.
Just wondering, can we also remove all references to the older 10.0 and 10.1 versions (along with related minor versions), which cannot be launched at all now?

public static readonly VER_10_0 = MariaDbEngineVersion.of('10.0', '10.0');

public static readonly VER_10_1 = MariaDbEngineVersion.of('10.1', '10.1');

@sav-valerio sav-valerio changed the title chore(rds): add MariaDB engine versions and remove deprecated ones chore(rds): add MariaDB engine versions Jul 27, 2022
@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

Thank you for your contribution! Please see my note below about the 10.2 versions. Also, you don't necessarily have to do this in this PR, but I'm thinking we should maybe deprecate the old versions that aren't supported anymore. Thoughts on that?

I think that it'll be better to do that in a new PR. Just wondering, can we also remove all references to the older 10.0 and 10.1 versions (along with related minor versions), which cannot be launched at all now?

public static readonly VER_10_0 = MariaDbEngineVersion.of('10.0', '10.0');

public static readonly VER_10_1 = MariaDbEngineVersion.of('10.1', '10.1');

I don't think we can just remove them but we should deprecate them.

Copy link
Copy Markdown
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.

Ah, now I see that we already have these deprecated in a bunch of places. I'm concerned that just removing them would break customer's code, which we don't want to do. I'm also concerned that there are no tests for the MariaDB versions. I know this seems like a very trivial change that shouldn't require tests but I'd like to see some sort of test to ensure we're generating the expected output of these new values. Doesn't need to be 100% coverage or anything.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review August 2, 2022 23:00

Pull request has been modified.

@sav-valerio
Copy link
Copy Markdown
Author

sav-valerio commented Aug 2, 2022

Ah, now I see that we already have these deprecated in a bunch of places. I'm concerned that just removing them would break customer's code, which we don't want to do. I'm also concerned that there are no tests for the MariaDB versions. I know this seems like a very trivial change that shouldn't require tests but I'd like to see some sort of test to ensure we're generating the expected output of these new values. Doesn't need to be 100% coverage or anything.

@TheRealAmazonKendra I just added the deprecation notices for 10.2.

About the tests, is this what you had in mind?
https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-rds/test/sql-server/sql-server.instance-engine.test.ts#L20

@sav-valerio sav-valerio changed the title chore(rds): add MariaDB engine versions chore(rds): add MariaDB engine versions and deprecate old ones Aug 2, 2022
@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

Ah, now I see that we already have these deprecated in a bunch of places. I'm concerned that just removing them would break customer's code, which we don't want to do. I'm also concerned that there are no tests for the MariaDB versions. I know this seems like a very trivial change that shouldn't require tests but I'd like to see some sort of test to ensure we're generating the expected output of these new values. Doesn't need to be 100% coverage or anything.

@TheRealAmazonKendra I just added the deprecation notices for 10.2.

About the tests, is this what you had in mind? https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-rds/test/sql-server/sql-server.instance-engine.test.ts#L20

Yeah, something like that is good. I was also thinking of asking for tests on the change to deprecated, but I think that's overkill. We've tested that functionality in general and that would just be extra busy work. Thanks for also adding the EOL notes in there!

@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

Ugh, the stupid trailing spaces issue. Just run yarn lint in this package real quick and it should fix that.

Copy link
Copy Markdown
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.

Just putting this back in request changes so I don't keep coming to look at it before change have been made.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review August 3, 2022 11:51

Pull request has been modified.

@sav-valerio
Copy link
Copy Markdown
Author

sav-valerio commented Aug 3, 2022

@TheRealAmazonKendra Tests added for all major versions and fixed the trailing spaces, should be ready now!

Just wondering, as this PR also contains the EOL notices maybe we should change the type to something else other than chore for making it show in the changelog?

@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

@TheRealAmazonKendra Tests added for all major versions and fixed the trailing spaces, should be ready now!

Just wondering, as this PR also contains the EOL notices maybe we should change the type to something else other than chore for making it show in the changelog?

I think it's sufficient that it will show up in the doc string.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 4, 2022

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
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 78258fd
  • 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 c019785 into aws:main Aug 4, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 4, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants