-
Notifications
You must be signed in to change notification settings - Fork 492
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
No longer test against MySQL 5.7 #5487
Conversation
MySQL 5.7 is EOL as of October 2023. Stop using MySQL 5.7 in integration tests, since it is not easy for the project to support end-of-life database versions. Also log a warning when MySQL 5.7 is used with SPIRE. Importantly, this commit does not remove any existing support for MySQL 5.7. SPIRE may continue to work for some time with MySQL 5.7, but the project makes no compatibility guarantees with MySQL 5.7 anymore, and any existing compatibility with MySQL 5.7 may break at any time without notice. It is recommended that all SPIRE users using MySQL as a SQL backend upgrade to MySQL 8.0. Signed-off-by: Ryan Turner <[email protected]>
156feea
to
477b75b
Compare
@@ -61,6 +64,10 @@ func (my mysqlDB) connect(cfg *configuration, isReadOnly bool) (db *gorm.DB, ver | |||
return nil, "", false, err | |||
} | |||
|
|||
if version == "5.7" { |
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 we are getting the version running a SELECT VERSION()
query, isn't the version string the complete version number, like 5.7.44?
I'm thinking that this should probably check if the version starts with rather than comparing with a complete string.
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.
Yeah, good catch. I changed the logic to check for the version prefix "5.7." so we can handle any 5.7 versions.
Signed-off-by: Ryan Turner <[email protected]>
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.
Thank you @rturner3!
MySQL 5.7 is EOL as of October 2023.
Stop using MySQL 5.7 in integration tests, since it is not easy for the project to support end-of-life database versions. Also log a warning when MySQL 5.7 is used with SPIRE.
Importantly, this commit does not remove any existing support for MySQL 5.7. SPIRE may continue to work for some time with MySQL 5.7, but the project makes no compatibility guarantees with MySQL 5.7 anymore, and any existing compatibility with MySQL 5.7 may break at any time without notice.
It is recommended that all SPIRE users using MySQL as a SQL backend upgrade to MySQL 8.0.
Closes #4270.