Skip to content

Conversation

@LizBaldo
Copy link
Collaborator

@LizBaldo LizBaldo commented Nov 26, 2024

Jira ticket: https://broadworkbench.atlassian.net/browse/AN-257

Summary of changes

What

Why

Testing these changes

What to test

  • Testing on a BEE with preexisting data from dev

Who tested and where

  • This change is covered by automated tests
    • NB: Rerun automation tests on this PR by commenting jenkins retest or jenkins multi-test.
  • I validated this change
  • Primary reviewer validated this change
  • I validated this change in the dev environment

@LizBaldo LizBaldo marked this pull request as ready for review November 26, 2024 14:47
@LizBaldo LizBaldo requested a review from lucymcnatt November 26, 2024 14:55
@codecov
Copy link

codecov bot commented Nov 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.79%. Comparing base (f3abaed) to head (7607506).
Report is 1 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #4804      +/-   ##
===========================================
+ Coverage    74.77%   74.79%   +0.02%     
===========================================
  Files          165      165              
  Lines        14951    14951              
  Branches      1187     1187              
===========================================
+ Hits         11179    11182       +3     
+ Misses        3772     3769       -3     

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f3abaed...7607506. Read the comment docs.

Copy link
Collaborator

@lucymcnatt lucymcnatt left a comment

Choose a reason for hiding this comment

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

Thanks for adding the comments!

Copy link
Contributor

@aednichols aednichols left a comment

Choose a reason for hiding this comment

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

We should consider MySQL 8.4, which is the current LTS [0].

It buys us a lot more time than 8.0, which expires in July 2026; meaning it's only a 1.5 year extension over 5.6.

[0] The mysql:lts tag currently points to mysql:8.4

services:
mysql:
image: mysql/mysql-server:5.6
image: mysql/mysql-server:8.0
Copy link
Contributor

Choose a reason for hiding this comment

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

mysql/mysql-server seems to be abandoned, no tags have been updated in 2 years.

We should consider moving to just mysql, which expands to library/mysql and is the official image.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good call, let me try that

db {
driver = "com.mysql.cj.jdbc.Driver"
url = "jdbc:mysql://"${mysql.host}":"${mysql.port}"/leotestdb?createDatabaseIfNotExist=true&useSSL=false&rewriteBatchedStatements=true&nullNamePatternMatchesAll=true"
url = "jdbc:mysql://"${mysql.host}":"${mysql.port}"/leotestdb?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useSSL=false&rewriteBatchedStatements=true&nullNamePatternMatchesAll=true"
Copy link
Contributor

Choose a reason for hiding this comment

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

I would love to enable SSL everywhere and disable allowPublicKeyRetrieval but that seems like a project for another PR.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I checked that this is only used for our unit testing at least

@LizBaldo
Copy link
Collaborator Author

Haha lots of folks mad about this originally undocumented breaking change with mySQL 8.4: https://bugs.mysql.com/bug.php?id=114838

@LizBaldo
Copy link
Collaborator Author

Grrr, driving me a bit nuts, the FK is referencing the primary key, how can it not be unique already? 🙄
Failed to add the foreign key constraint. Missing unique key for constraint 'FK_CLUSTER_ID' in the referenced table 'CLUSTER'

@LizBaldo LizBaldo changed the title [AN-257] Update mysql version to 8.0 take 2 [AN-257] Update mysql version to 5.7 Dec 4, 2024
@LizBaldo LizBaldo merged commit efdd655 into develop Dec 4, 2024
23 checks passed
@LizBaldo LizBaldo deleted the AN-257-mysql-upgrade-to-8.0 branch December 4, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants