Description
The current approach to running IT tests on document-store seems to rely on downloading (&starting) the latest MongoDB. [0]
I think there are a few problems with this:
- the mechanics fail if you try to run IT tests offline and this will fail your build
[INFO] Running org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.068 s <<< FAILURE! - in org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT [ERROR] majorityWriteConcern(org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT) Time elapsed: 0.048 s <<< ERROR! de.flapdoodle.embed.process.exceptions.DistributionException: java.io.IOException: Could not open inputStream for https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.10.tgz at org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT.before(ReplicaSetDefaultWriteConcernIT.java:52) Caused by: java.io.IOException: Could not open inputStream for https://fastdl.mongodb.org/osx/mongodb-osx-x86_64-3.4.10.tgz at org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT.before(ReplicaSetDefaultWriteConcernIT.java:52) Caused by: java.net.UnknownHostException: fastdl.mongodb.org at org.apache.jackrabbit.oak.plugins.document.mongo.ReplicaSetDefaultWriteConcernIT.before(ReplicaSetDefaultWriteConcernIT.java:52)
- the basic cache scheme is redundant against maven best practice of cleaning before building. the mongo archive will be downloaded under /target which is wiped clean if one runs mvn clean install.
I understand the need to run mongo tests for coverage, so I'm not against having a smart setup, and I always try to run the entire integration suite before pushing a change, but this doesn't have to be so intrusive.
Attachments
Issue Links
- relates to
-
OAK-7783 Default write concern and read concern level not applied
- Closed