Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TEST-FAILURE] org.elasticsearch.client.documentation.LicensingDocumentationIT fails on release-tests CI #32580

Closed
colings86 opened this issue Aug 2, 2018 · 6 comments
Assignees
Labels
>test-failure Triaged test failures from CI

Comments

@colings86
Copy link
Contributor

colings86 commented Aug 2, 2018

Build URL: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+release-tests/855/console

I have tried to reproduce this locally without any luck, although I was not able to run with -Dbuild.snapshot=false locally so this bug might be specific to release builds.

Reproduce command (as lifted from CI failure, locally I removed the -Dbuild.snapshot=false):

REPRODUCE WITH: ./gradlew :client:rest-high-level:integTestRunner \
  -Dtests.seed=6B866F493C3B7898 \
  -Dtests.class=org.elasticsearch.client.documentation.LicensingDocumentationIT \
  -Dtests.method="testPutLicense" \
  -Dtests.security.manager=true \
  -Dbuild.snapshot=false \
  -Dtests.jvm.argline="-Dbuild.snapshot=false" \
  -Dtests.locale=el-GR \
  -Dtests.timezone=Africa/Khartoum

It looks like the test is trying to put an invalid license and expecting ES to return an exception saying the license is valid but the server is returning that the licence is invalid. Maybe the way the test is creating an valid licence might be wrong:

  1> [2018-08-02T10:45:24,332][INFO ][o.e.c.d.LicensingDocumentationIT] [testPutLicense] before test
  2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/workspace/elastic+elasticsearch+master+release-tests/client/rest-high-level/build/testrun/integTestRunner/J0/temp/org.elasticsearch.client.documentation.LicensingDocumentationIT_6B866F493C3B7898-001
  2> NOTE: test params are: codec=Asserting(Lucene70): {}, docValues:{}, maxPointsInLeafNode=1403, maxMBSortInHeap=7.8940949346565645, sim=RandomSimilarity(queryNorm=false): {}, locale=el-GR, timezone=Africa/Khartoum
  2> NOTE: Linux 4.4.0-1061-aws amd64/Oracle Corporation 1.8.0_181 (64-bit)/cpus=16,threads=1,free=360450152,total=516947968
  1> [2018-08-02T10:45:24,333][INFO ][o.e.c.d.LicensingDocumentationIT] [testPutLicense] initializing REST clients against [http://[::1]:39337]
  2> NOTE: All tests run in this JVM: [SnapshotClientDocumentationIT, TasksClientDocumentationIT, WatcherDocumentationIT, TasksIT, PingAndInfoIT, IndicesClientDocumentationIT, MigrationDocumentationIT, SearchDocumentationIT, WatcherIT, CRUDDocumentationIT, ClusterClientDocumentationIT, IngestClientIT, IndicesClientIT, SnapshotIT, BulkProcessorIT, IngestClientDocumentationIT, RankEvalIT, StoredScriptsIT, StoredScriptsDocumentationIT, BulkProcessorRetryIT, ClusterClientIT, CrudIT, SearchIT, LicensingDocumentationIT]
  1> [2018-08-02T10:45:24,352][INFO ][o.e.c.d.LicensingDocumentationIT] [testPutLicense] after test
FAILURE 0.03s | LicensingDocumentationIT.testPutLicense <<< FAILURES!
   > Throwable #1: java.lang.AssertionError: expected:<invalid> but was:<valid>
   > 	at __randomizedtesting.SeedInfo.seed([6B866F493C3B7898:8EDA9690B7D4DA9F]:0)
   > 	at org.elasticsearch.client.documentation.LicensingDocumentationIT.testPutLicense(LicensingDocumentationIT.java:68)
   > 	at java.lang.Thread.run(Thread.java:748)
@colings86 colings86 added >test-failure Triaged test failures from CI :Security/License License functionality for commercial features labels Aug 2, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

@colings86
Copy link
Contributor Author

It looks like the test inlines a licence in raw json which I assume will not have a correct signature for release builds

@colings86
Copy link
Contributor Author

Test muted on master in 097c428

@colings86
Copy link
Contributor Author

Also muted on 6.x in f45e954

@jasontedor
Copy link
Member

We should blacklist this test for release builds, but not completely mute the test for all builds.

dnhatn added a commit that referenced this issue Aug 3, 2018
* master:
  HLRC: Move commercial clients from XPackClient (#32596)
  Add cluster UUID to Cluster Stats API response (#32206)
  Security: move User to protocol project (#32367)
  [TEST] Test for shard failures, add debug to testProfileMatchesRegular
  Minor fix for javadoc (applicable for java 11). (#32573)
  Painless: Move Some Lookup Logic to PainlessLookup (#32565)
  TEST: Avoid merges in testSeqNoAndCheckpoints
  [Rollup] Remove builders from HistoGroupConfig (#32533)
  Mutes failing SQL string function tests due to #32589
  fixed elements in array of produced terms (#32519)
  INGEST: Enable default pipelines (#32286)
  Remove cluster state initial customs (#32501)
  Mutes LicensingDocumentationIT due to #32580
  [ML] Remove multiple_bucket_spans (#32496)
  [ML] Rename JobProvider to JobResultsProvider (#32551)
  Correct minor typo in explain.asciidoc for HLRC
  Build: Add elastic maven to repos used by BuildPlugin (#32549)
  Clarify the error message when a pipeline agg is used in the 'order' parameter. (#32522)
  Revert "[test] turn on host io cache for opensuse (#32053)"
  Enable packaging tests on suse boxes
  [ML] Improve error when no available field exists for rule scope (#32550)
  [ML] Improve error for functions with limited rule condition support (#32548)
  Painless: Clean Up PainlessField (#32525)
  Add @AwaitsFix for #32554
  Remove broken @link in Javadoc
  Scripting: Conditionally use java time api in scripting (#31441)
  [ML] Fix thread leak when waiting for job flush (#32196) (#32541)
  Add AwaitsFix to failing test - see #32546
  Core: Minor size reduction for AbstractComponent (#32509)
  SQL: Added support for string manipulating functions with more than one parameter (#32356)
  [DOCS] Reloadable Secure Settings (#31713)
  Watcher: Reenable HttpSecretsIntegrationTests#testWebhookAction test (#32456)
  [Rollup] Remove builders from TermsGroupConfig (#32507)
  Use hostname instead of IP with SPNEGO test (#32514)
  Switch x-pack rolling restart to new style Requests (#32339)
  NETWORKING: Fix Netty Leaks by upgrading to 4.1.28 (#32511)
  [DOCS] Small fixes in rule configuration page (#32516)
  Painless: Clean up PainlessMethod (#32476)
  Build: Remove shadowing from benchmarks (#32475)
  Docs: Add all JDKs to CONTRIBUTING.md
  Add licensing enforcement for FIPS mode (#32437)
  SQL: Add test for handling of partial results (#32474)
  Mute testFilterCacheStats
  [ML][DOCS] Fix typo applied_to => applies_to
  Scripting: Fix painless compiler loader to know about context classes (#32385)
@jkakavas jkakavas self-assigned this Aug 3, 2018
@colings86
Copy link
Contributor Author

@jasontedor Thats a better idea, I'd be happy to make that change so its only muted for release tests, but could you explain what I need to change because I'm not sure how to add tests to the blacklist in this way?

@jkakavas jkakavas removed their assignment Aug 3, 2018
@imotov imotov self-assigned this Aug 3, 2018
imotov added a commit to imotov/elasticsearch that referenced this issue Aug 3, 2018
The testPutLicense test tries to put a license generated using
snapshot keys into release cluster. This commit suppresses the
test during the release builds.

Closes elastic#32580
@imotov imotov added :Core/Java High Level REST Client and removed :Security/License License functionality for commercial features labels Aug 3, 2018
imotov added a commit that referenced this issue Aug 3, 2018
…32613)

The testPutLicense test tries to put a license generated using
snapshot keys into release cluster. This commit suppresses the
test during the release builds.

Closes #32580
imotov added a commit that referenced this issue Aug 3, 2018
…32613)

The testPutLicense test tries to put a license generated using
snapshot keys into release cluster. This commit suppresses the
test during the release builds.

Closes #32580
dnhatn added a commit that referenced this issue Aug 6, 2018
* 6.x:
  [Kerberos] Use canonical host name (#32588)
  Cross-cluster search: preserve cluster alias in shard failures (#32608)
  [TEST] Allow to run in FIPS JVM (#32607)
  Handle AlreadyClosedException when bumping primary term
  [Test] Add ckb to the list of unsupported languages (#32611)
  SCRIPTING: Move Aggregation Scripts to their own context (#32068) (#32629)
  [TEST] Enhance failure message when bulk updates have failures
  [ML] Add ML result classes to protocol library (#32587)
  Suppress LicensingDocumentationIT.testPutLicense in release builds (#32613)
  [Rollup] Improve ID scheme for rollup documents (#32558)
  Mutes failing SQL string function tests due to #32589
  Suppress Wildfly test in FIPS JVMs (#32543)
  Add cluster UUID to Cluster Stats API response (#32206)
  [ML] Add some ML config classes to protocol library (#32502)
  [TEST]Split transport verification mode none tests (#32488)
  [Rollup] Remove builders from DateHistogramGroupConfig (#32555)
  [ML] Add Detector config classes to protocol library (#32495)
  [Rollup] Remove builders from MetricConfig (#32536)
  Fix race between replica reset and primary promotion (#32442)
  HLRC: Move commercial clients from XPackClient (#32596)
  Security: move User to protocol project (#32367)
  Minor fix for javadoc (applicable for java 11). (#32573)
  Painless: Move Some Lookup Logic to PainlessLookup (#32565)
  Core: Minor size reduction for AbstractComponent (#32509)
  INGEST: Enable default pipelines (#32286) (#32591)
  TEST: Avoid merges in testSeqNoAndCheckpoints
  [Rollup] Remove builders from HistoGroupConfig (#32533)
  fixed elements in array of produced terms (#32519)
  Mutes ReindexFailureTests.searchFailure dues to #28053
  Mutes LicensingDocumentationIT due to #32580
  Remove the SATA controller from OpenSUSE box
  [ML] Rename JobProvider to JobResultsProvider (#32551)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

5 participants