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

Update testcontainers and derby #2612

Merged
merged 2 commits into from
Jan 26, 2024
Merged

Update testcontainers and derby #2612

merged 2 commits into from
Jan 26, 2024

Conversation

hgschmie
Copy link
Contributor

tc 1.19.4 contains the mysql fix for mysql 8.3.x
derby 1.16 runs on JDK 17+ only

@hgschmie hgschmie force-pushed the versions-fix branch 4 times, most recently from cb7f867 to 288708f Compare January 26, 2024 05:48
tc 1.19.4 contains the mysql fix for mysql 8.3.x
derby 1.16 runs on JDK 17+ only
Use the `all` variant which shadows all dependencies into the driver.
Copy link

sonarcloud bot commented Jan 26, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

mysql-version: [ "mysql:latest" ]
# 1.18.3 does not work with mysql:latest (8.3.x).
include:
- testcontainer-version: 1.18.3
Copy link
Member

Choose a reason for hiding this comment

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

Why do we keep testing against old, buggy versions of the library?
It is nice to be able to leave bugs in the past at some point.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

tc 1.18 is still the "previous minor". These tests exist mainly to ensure that when we adopt a new version of a library, we do not accidentally break users that are stuck on that version because e.g. their test framework requires it. Gives a somewhat smoother path to adoption.

We leave that version behind as soon as tc 1.20 is released.

@hgschmie hgschmie merged commit 3d7f23e into jdbi:master Jan 26, 2024
50 checks passed
@hgschmie hgschmie deleted the versions-fix branch January 26, 2024 18:37
@hgschmie
Copy link
Contributor Author

it's the same BTW with derby. We could upgrade to 1.17 and just run the test when Java 21 is used. Right now, we run the test when 17+ is used (and stick with 1.16) because we support compiling the codebase with 17 and 21. Once we drop 17 for compilation, we can upgrade derby.

I also resolved the dependabot issue, we are not actually using the LDAP piece that was in the CVE.

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

Successfully merging this pull request may close these issues.

None yet

2 participants