Various Build issues with Master

I'm trying to set myself up so I can contribute code.

Here is my fork: GitHub - smonasco/elasticsearch: Open Source, Distributed, RESTful Search Engine

Just typing `gradlew build' fails. It's looking for elasticsearch:8.0.0-SNAPSHOT, but can't find it which seems weird. This causes it to get no further than trying to build :benchmarks:runtime. Here's a build scan Build Scan® | Gradle Cloud Services

I thought maybe it needed to build the server project in order to use that and the dependencies just weren't setup. So I ran `gradlew :server:test' so I could also test things. That seems to repeatedly fail on org.elasticsearch.common.logging.JsonThrowablePatternConverterTests.testStacktraceWithJson . Here's a build scan Build Scan® | Gradle Cloud Services , but the following actually showed up in my console and not on the build scan:

Suite: org.elasticsearch.common.logging.JsonThrowablePatternConverterTests
1> [2019-02-11T00:46:57,475][INFO ][o.e.c.l.JsonThrowablePatternConverterTests] [testStacktraceWithJson] before test
1> [2019-02-11T00:46:57,480][INFO ][o.e.c.l.JsonThrowablePatternConverterTests] [testStacktraceWithJson] asdf
1> [2019-02-11T00:46:57,500][INFO ][o.e.c.l.JsonThrowablePatternConverterTests] [testStacktraceWithJson] after test
2> REPRODUCE WITH: gradlew :server:unitTest -Dtests.seed=2C70A6A35913036C -Dtests.class=org.elasticsearch.common.logging.JsonThrowablePatternConverterTests -Dtests.method="testStacktraceWithJson" -Dtests.security.manager=true -Dtests.loca
FAILURE 0.05s J0 | JsonThrowablePatternConverterTests.testStacktraceWithJson <<< FAILURES!

Throwable #1: java.lang.AssertionError: stacktrace should formatted in multiple lines
Expected: <47>
but: was <38>
at __randomizedtesting.SeedInfo.seed([2C70A6A35913036C:A4839636D03D5DE]:0)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.elasticsearch.common.logging.JsonThrowablePatternConverterTests.testStacktraceWithJson(JsonThrowablePatternConverterTests.java:79)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.base/java.lang.Thread.run(Thread.java:834)
1> [2019-02-11T00:46:57,526][INFO ][o.e.c.l.JsonThrowablePatternConverterTests] [testNoStacktrace] before test
1> [2019-02-11T00:46:57,528][INFO ][o.e.c.l.JsonThrowablePatternConverterTests] [testNoStacktrace] after test
2> NOTE: leaving temporary files on disk at: C:\gitkraken\elasticsearch\server\build\testrun\unitTest\J0\temp\org.elasticsearch.common.logging.JsonThrowablePatternConverterTests_2C70A6A35913036C-001
2> NOTE: test params are: codec=Asserting(Lucene80): {}, docValues:{}, maxPointsInLeafNode=61, maxMBSortInHeap=6.301749144096524, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@689f73ab), locale=en-CK, timezone=Poland
2> NOTE: Windows 10 10.0 amd64/Oracle Corporation 11.0.2 (64-bit)/cpus=8,threads=1,free=228343312,total=536870912
2> NOTE: All tests run in this JVM: [RecoveryDuringReplicationTests, ScheduleWithFixedDelayTests, AggregationCollectorTests, SignificantTextTests, ExpectedShardSizeAllocationTests, BinaryFieldTypeTests, FieldDataCacheTests, SimpleQueryStringBuilderTests, MemorySizeSettingsTests, DocsStatsTests, StupidBackoffModelTests, ActionTests, IgnoredFieldTypeTests, AvgBucketTests, MurmurHash3Tests, CancellableThreadsTests, PrimaryReplicaSyncerTests, BulkPrimaryExecutionContextTests, SingleNodeDiscoveryTests, DiscoveryModuleTests, FloatNestedSortingTests, NullValueObjectMappingTests, SpanMultiTermQueryBuilderTests, StoreTests, ClearScrollControllerTests, TermsSetQueryBuilderTests, LegacyMapperServiceTests, SecureStringTests, RoutingFieldMapperTests, TransportReplicationActionTests, SimpleQueryStringQueryParserTests, ClusterStateToStringTests, PrimaryElectionRoutingTests, DefaultShardOperationFailedExceptionTests, AbstractLifecycleRunnableTests, ClusterIndexHealthTests, GetPipelineResponseTests, SearchScrollAsyncActionTests, BalancedSingleShardTests, ClusterRerouteTests, SignificanceHeuristicTests, IngestServiceTests, TypeFieldTypeTests, ClearIndicesCacheResponseTests, TransportClearVotingConfigExclusionsActionTests, SearchSlowLogTests, XContentBuilderTests, DecisionTests, ThreadContextTests, InternalStatsTests, SpecialPermissionTests, ScriptedSimilarityTests, ValueCountTests, ESPolicyTests, RestAnalyzeActionTests, DateFieldMapperTests, PersistentTasksExecutorResponseTests, SettingsTests, GeoCentroidTests, AutoDateHistogramTests, InternalTopHitsTests, MultiPolygonBuilderTests, QueriesTests, OperatorTests, GatewayMetaStateTests, StringsTests, ShardCoreKeyMapTests, MetaDataCreateIndexServiceTests, InternalGeoDistanceTests, PutRepositoryRequestTests, RemoteClusterAwareClientTests, UnknownNamedObjectExceptionTests, CoreAnalysisFactoryTests, ToAndFromJsonMetaDataTests, InSyncAllocationIdTests, ClusterStateResponseTests, CamelCaseFieldNameTests, ClusterChangedEventTests, AddIncrementallyTests, ListenableFutureTests, TransportBulkActionIngestTests, InternalMedianAbsoluteDeviationTests, CountedBitSetTests, SearchRequestBuilderTests, CompositeAggregationBuilderTests, GetAliasesResponseTests, CacheTests, PeerFinderTests, ScrollContextTests, RestGetFieldMappingActionTests, IndicesServiceTests, RecoveryTests, ObjectMapperMergeTests, JsonThrowablePatternConverterTests]
Completed [452/1240] on J0 in 0.09s, 2 tests, 1 failure <<< FAILURES!

--Shannon Monasco

P.S. Usually I see more interesting unit test output in the build scan (a separate tab on the left) but I'm not seeing a good report with your setup.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.