Testcontainers-java: Release of 1.10.4 of junit-jupiter module contains wrong classes - REPUBLISHED AS 1.10.5

Created on 2 Jan 2019  路  7Comments  路  Source: testcontainers/testcontainers-java

I was investigating why https://github.com/testcontainers/testcontainers-java/issues/1019 still fails me even if https://github.com/testcontainers/testcontainers-java/pull/1020 was merged.

The test in the project works (I have checked it several times), so I tried to build super plain reproducers (for Maven and Gradle), which both fail with 1.10.4.

So I finally ended up debugging and make my way through the delomboked sources and in 1.10.4 TestcontainersExtension still only implements BeforeEachCallback and not BeforeAllCallback.

Please see the sources from central:
https://search.maven.org/remotecontent?filepath=org/testcontainers/junit-jupiter/1.10.4/junit-jupiter-1.10.4-sources.jar

I think one solution would be just drafting a new release in time. Being able to use the shared container in a BeforeAll seems to be crucial (at least from my perspective).

Thanks.

blocker resolutioacknowledged typbug

Most helpful comment

For anyone seeing this or a similar problem, please use 1.10.5 which was released to resolve this.

I'll keep this ticket open while we try and figure out what went wrong with 1.10.4 publication. It likely relates to either/both of issues we had when publishing artifacts to Bintray, or when syncing those artifacts to Maven Central.

Sorry for any inconvenience.

All 7 comments

@michael-simons thanks a lot for the investigation!
We had a major issue with Bintray and publishing, and it seems that wrong binaries were published by Bintray 馃槺

We will work on a new release process ASAP, directly to the Maven Central (without Bintray in the middle), such issues are too critical 馃槕

/cc @jbaruch

We're running a new release right now, 1.10.5, using the Bintray->Maven Central model.

Hopefully this will fix whatever's gone wrong here without taking the time of reverting to direct Maven Central publication.

https://dl.bintray.com/testcontainers/releases/org/testcontainers/junit-jupiter/1.10.5/junit-jupiter-1.10.5-sources.jar seems to contain the correct code:

...
class TestcontainersExtension implements BeforeEachCallback, BeforeAllCallback, TestInstancePostProcessor {
...

bintrayPublish has also succeeded on this release, instead of timing out the build: https://travis-ci.org/testcontainers/testcontainers-java/jobs/474365588

Synced 1.10.5 to Maven Central, and verified that the resultant JAR is correct. I'll put out some messages to prompt people to upgrade.

I have no idea what happened with the 1.10.4 publication, but we'll have to try and figure it out.

Thanks so much for noticing and raising the issue to our attention, @michael-simons.

I can confirm things regarding the JUnit 5 extension work now as expected (i.e. https://github.com/michael-simons/bootiful-music/commit/8759a485a7b429adb5cb848df321639e7a46fe7a)

I didn't check other artefacts, so I leave this issue for you to close. From my side, it's fixed. Thanks everyone.

For anyone seeing this or a similar problem, please use 1.10.5 which was released to resolve this.

I'll keep this ticket open while we try and figure out what went wrong with 1.10.4 publication. It likely relates to either/both of issues we had when publishing artifacts to Bintray, or when syncing those artifacts to Maven Central.

Sorry for any inconvenience.

Closed, as there's probably been enough time for people to see this ticket and act on it.

Was this page helpful?
0 / 5 - 0 ratings