Added versions.lock for unit testing dependency in lucene-jmh module

This commit is contained in:
expani 2024-10-14 16:26:07 +05:30
parent 16c6c2b694
commit fa34d4ead8
2 changed files with 312 additions and 303 deletions

View File

@ -161,6 +161,7 @@ public class DocIdEncodingBenchmark {
private static final Map<String, DocIdEncoder> ENCODER_NAME_TO_INSTANCE_MAPPING =
new HashMap<>();
/** Add all the encoders that have custom constructors. */
private static final Set<Class<? extends DocIdEncoder>> EXCLUDED_ENCODERS =
Set.of(Bit21HybridEncoder.class);
@ -198,7 +199,7 @@ public class DocIdEncodingBenchmark {
new Bit21HybridEncoder(
SingletonFactory.fromClazz(Bit21With2StepsEncoder.class),
SingletonFactory.fromClazz(Bit21With3StepsEncoder.class)));
} else if (Constants.OS_ARCH.equals("x86")) {
} else if (Constants.OS_ARCH.equals("amd64")) {
ENCODER_NAME_TO_INSTANCE_MAPPING.put(
parsedClazzName(Bit21HybridEncoder.class),
new Bit21HybridEncoder(
@ -214,7 +215,7 @@ public class DocIdEncodingBenchmark {
return ENCODER_NAME_TO_INSTANCE_MAPPING.get(parsedEncoderName);
} else {
throw new IllegalArgumentException(
String.format("Unknown DocIdEncoder [%s]", parsedEncoderName));
String.format(Locale.ROOT, "Unknown DocIdEncoder [%s]", parsedEncoderName));
}
}

View File

@ -27,7 +27,7 @@
"xerces:xercesImpl:2.12.0" : "5ce8cdc6,refs=2"
},
"test_dependencies" : {
"com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.8.1" : "b35e5d7a,refs=74",
"com.carrotsearch.randomizedtesting:randomizedtesting-runner:2.8.1" : "129da9bf,refs=76",
"com.carrotsearch:procfork:1.0.6" : "b7ba1646,refs=2",
"com.github.ben-manes.caffeine:caffeine:3.0.5" : "6897bc09,refs=38",
"com.github.kevinstern:software-and-algorithms:1.0" : "6897bc09,refs=38",
@ -50,7 +50,7 @@
"io.github.java-diff-utils:java-diff-utils:4.0" : "6897bc09,refs=38",
"io.sgr:s2-geometry-library-java:1.0.0" : "1d5a4b2b,refs=4",
"javax.inject:javax.inject:1" : "6897bc09,refs=38",
"junit:junit:4.13.1" : "b35e5d7a,refs=74",
"junit:junit:4.13.1" : "129da9bf,refs=76",
"net.sf.jopt-simple:jopt-simple:5.0.4" : "152d9f78,refs=3",
"net.sourceforge.nekohtml:nekohtml:1.9.17" : "6f16ff86,refs=2",
"org.antlr:antlr4-runtime:4.11.1" : "6fbc4021,refs=5",
@ -64,7 +64,7 @@
"org.checkerframework:checker-qual:3.19.0" : "6897bc09,refs=38",
"org.checkerframework:dataflow-errorprone:3.27.0" : "6897bc09,refs=38",
"org.eclipse.jgit:org.eclipse.jgit:4.4.1.201607150455-r" : "6897bc09,refs=38",
"org.hamcrest:hamcrest:2.2" : "b35e5d7a,refs=74",
"org.hamcrest:hamcrest:2.2" : "129da9bf,refs=76",
"org.locationtech.jts:jts-core:1.17.0" : "180518e6,refs=2",
"org.locationtech.spatial4j:spatial4j:0.8" : "1d5a4b2b,refs=4",
"org.openjdk.jmh:jmh-core:1.37" : "152d9f78,refs=3",
@ -79,6 +79,312 @@
}
},
"because" : {
"129da9bf" : [
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:backward-codecs"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:backward-codecs"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:benchmark"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:benchmark"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:benchmark-jmh"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:benchmark-jmh"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:classification"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:classification"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:codecs"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:codecs"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:core"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:core"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:core.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:core.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:demo"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:demo"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:distribution.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:distribution.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:expressions"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:expressions"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:facet"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:facet"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:grouping"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:grouping"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:highlighter"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:highlighter"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:join"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:join"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:luke"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:luke"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:memory"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:memory"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:misc"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:misc"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:monitor"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:monitor"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:queries"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:queries"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:queryparser"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:queryparser"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:replicator"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:replicator"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:sandbox"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:sandbox"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial-extras"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial-extras"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial-test-fixtures"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial-test-fixtures"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial3d"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial3d"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:suggest"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:suggest"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:test-framework"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:test-framework"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:common"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:common"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:icu"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:icu"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:kuromoji"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:kuromoji"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:morfologik"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:morfologik"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:morfologik.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:morfologik.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:nori"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:nori"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:opennlp"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:opennlp"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:phonetic"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:phonetic"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:smartcn"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:smartcn"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:stempel"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:stempel"
}
],
"152d9f78" : [
{
"configuration" : "annotationProcessor",
@ -415,304 +721,6 @@
"projectPath" : ":lucene:benchmark-jmh"
}
],
"b35e5d7a" : [
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:backward-codecs"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:backward-codecs"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:benchmark"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:benchmark"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:classification"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:classification"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:codecs"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:codecs"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:core"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:core"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:core.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:core.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:demo"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:demo"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:distribution.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:distribution.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:expressions"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:expressions"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:facet"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:facet"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:grouping"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:grouping"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:highlighter"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:highlighter"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:join"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:join"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:luke"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:luke"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:memory"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:memory"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:misc"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:misc"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:monitor"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:monitor"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:queries"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:queries"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:queryparser"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:queryparser"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:replicator"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:replicator"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:sandbox"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:sandbox"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial-extras"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial-extras"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial-test-fixtures"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial-test-fixtures"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:spatial3d"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:spatial3d"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:suggest"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:suggest"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:test-framework"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:test-framework"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:common"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:common"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:icu"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:icu"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:kuromoji"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:kuromoji"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:morfologik"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:morfologik"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:morfologik.tests"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:morfologik.tests"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:nori"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:nori"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:opennlp"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:opennlp"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:phonetic"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:phonetic"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:smartcn"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:smartcn"
},
{
"configuration" : "testCompileClasspath",
"projectPath" : ":lucene:analysis:stempel"
},
{
"configuration" : "testRuntimeClasspath",
"projectPath" : ":lucene:analysis:stempel"
}
],
"b7ba1646" : [
{
"configuration" : "testCompileClasspath",