Skip to content

Run tests using shaded dependencies - #5146

Merged
bsideup merged 8 commits into
masterfrom
test_shaded_jars
Mar 3, 2022
Merged

bsideup merged 8 commits into
masterfrom
test_shaded_jars

Conversation

@bsideup

@bsideup bsideup commented Mar 2, 2022

Copy link
Copy Markdown
Member

No description provided.

Comment thread modules/k3s/build.gradle
api project(":testcontainers")

shaded 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.13.1'
// https://youtu.be/otCpCn0l4Wo

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lol 🤣

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Maybe we should say why, and under what circumstances this should be changed.

Have we disabled dependabot for this module/dependency combination yet?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done! 👍

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We can keep Dependabot as the CI would fail now

@kiview

kiview commented Mar 3, 2022

Copy link
Copy Markdown
Member

Did we end up with the wrong docker-java version through this?
https://ge.testcontainers.org/s/sp5tcx75pjjyg/tests/overview?outcome=failed

@rnorth

rnorth commented Mar 3, 2022

Copy link
Copy Markdown
Member

Did we end up with the wrong docker-java version through this? ge.testcontainers.org/s/sp5tcx75pjjyg/tests/overview?outcome=failed

I don't know, but another possibility is that we've found two tests that should have been failing but haven't been...

@bsideup

bsideup commented Mar 3, 2022

Copy link
Copy Markdown
Member Author

@kiview @rnorth these two are failing because of the class mismatch - shaded in TC, but tests are using the non-shaded versions. I have the fix locally, 1 sec

@rnorth

rnorth commented Mar 3, 2022

Copy link
Copy Markdown
Member

Ping @YannickWeber for awareness
We need to set up CODEOWNERS some time...

@bsideup perhaps the title of this PR should be tweaked and/or the description modified, so that we or others can understand why this was done in 5 years time. Maybe a title like Run Testcontainers unit tests using shaded dependencies or something?

@bsideup bsideup changed the title Test shaded JARs Run tests using shaded dependencies Mar 3, 2022
@bsideup

bsideup commented Mar 3, 2022

Copy link
Copy Markdown
Member Author

@rnorth good idea, changed the title 👍

@bsideup
bsideup merged commit 71a0679 into master Mar 3, 2022
@delete-merged-branch
delete-merged-branch Bot deleted the test_shaded_jars branch March 3, 2022 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants