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

LPS-83506 portal-search-test-util: added searchCount test case for FacetSelection #570

Conversation

wcao20170619
Copy link

No description provided.

Pedro Queiroz and others added 30 commits July 31, 2018 10:03
@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@wcao20170619
Copy link
Author

ci:test

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test - 171 out of 176 jobs passed in 2 hours 25 minutes 44 seconds 898 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 3295fa51f8b44d7746c04ff2719ef061d785215b

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 9ddf558ed78e4fdd7985f7bfac6318297205d1b3

171 out of 176 jobs PASSED
171 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/functional-tomcat90-mysql57-jdk8/53
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #228021
      start-elasticsearch-node:
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:340: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1061: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1065: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:46: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:54: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:9731: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-elasticsearch6.xml:668: Elasticsearch server failed to initialize.
            [get] Getting: http://test-1-5/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/228021//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20180802225736831.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20180802225736831.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null921512695.properties
  2. test-portal-acceptance-pullrequest-batch(master)/source-format-jdk8
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #223665
           [java] Exception in thread "main" java.lang.Exception: Found 3 formatting issues:
           [java] 1: ./modules/apps/portal-search/portal-search-test-util/src/main/java/com/liferay/portal/search/test/util/facet/BaseFacetTestCase.java expected:<...xception(e);
           [java] 		}
           [java] 	}
           [java] [
           [java] 	protected long doSearchCount(SearchContext searchContext) {
           [java] 		return searchCount(searchContext);
           [java] 	}
           [java] 
           [java] 	protected abstract String getField();
           [java] 
           [java] 	protected Facet initFacet(Facet facet) {
           [java] 		FacetConfiguration facetConfiguration = facet.getFacetConfiguration();
           [java] 
           [java] 		facetConfiguration.setDataJSONObject(jsonFactory.createJSONObject());
           [java] 
           [java] 		return facet;
           [java] 	}
           [java] 
           [java] 	protected final JSONFactory jsonFactory = new JSONFactoryImpl();
           [java] 
           [java] 	protected class FacetTestHelper {
           [java] 
           [java] 		public FacetTestHelper() {
           [java] 			_searchContext = createSearchContext();
           [java] 		}
           [java] 
           [java] 		public <T extends Facet> T addFacet(
           [java] 			Function<SearchContext, ? extends T> function) {
           [java] 
           [java] 			T facet = function.apply(_searchContext);
           [java] 
           [java] 			_searchContext.addFacet(facet);
           [java] 
           [java] 			return facet;
           [java] 		}
           [java] 
           [java] 		public void assertFrequencies(Facet facet, List<String> expected) {
           [java] 			FacetsAssert.assertFrequencies(
           [java] 				facet.getFieldName(), _searchContext, expected);
           [java] 		}
           [java] 
           [java] 		public void assertResultCount(int expected) {
           [java] 			Document[] documents = _hits.getDocs();
           [java] 
           [java] 			Assert.assertEquals(
           [java] 				Arrays.toString(documents), expected, documents.length);
           [java] 		}
           [java] 
           [java] 		public void search() {
           [java] 			_hits = doSearch(_searchContext);
           [java] 		}
           [java] 
           [java] 		public void search(QueryContributor queryContributor) {
           [java] 			_hits = doSearch(_searchContext, queryContributor);
           [java] 		}
           [java] 
           [java] 		public long searchCount() {
           [java] 			return doSearchCount(_searchContext);
           [java] 		}
           [java] 
           [java] 		public void setSearchContextAttribute(String name, Serializable value) {
           [java] 			_searchContext.setAttribute(name, value]);
           [java] 		}
           [java] 

Failures in common with acceptance upstream results at 59f10b0:
  1. test-portal-acceptance-pullrequest-batch(master)/tck-jdk8
    Job Results:

    622 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #200889
      1. CheckResourceURLNotChangePortletModeTest.test
        
        Test case throws exception: [BasePortletUrlClient] CheckResourceURLNotChangePortletModeTest failed! Test FAILED!
        		
      2. ResourceURLAppendParameterTest.test
        
        Test case throws exception: [BasePortletUrlClient] ResourceURLAppendParameterTest failed! Test FAILED!
        		

@wcao20170619 wcao20170619 force-pushed the LPS-83506-SearchCount-FacetSlections branch from 846fbbc to 193a587 Compare August 6, 2018 14:45
@wcao20170619
Copy link
Author

ci:test

@liferay-continuous-integration
Copy link
Collaborator

The pull request tester is still running.

Please wait until you get the final report before running 'ci:retest'.

See this link to check on the status of your test:

@wcao20170619


However, the pull request was closed.

The pull request was closed because the following critical batches had failed:

For information as to why we automatically close out certain pull requests see this article.

*This pull will no longer automatically close if this comment is available. If you believe this is a mistake please reopen this pull by entering the following command as a comment.

ci:reopen

Critical Failure Details:

test-portal-acceptance-pullrequest-batch(master)/modules-integration-hypersonic20-jdk8
Job Results:

22 Tests Passed.
1 Test Failed.

  1. AXIS_VARIABLE=15,label_exp=!master #220231
        [junit] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
        [junit] 	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
        [junit] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
        [junit] 	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:141)
        [junit] 	at com.sun.proxy.$Proxy33.getCompany(Unknown Source)
        [junit] 	at com.liferay.portal.kernel.service.CompanyLocalServiceUtil.getCompany(CompanyLocalServiceUtil.java:361)
        [junit] 	at com.liferay.portal.kernel.security.auth.CompanyThreadLocal.setCompanyId(CompanyThreadLocal.java:61)
        [junit] 	at com.liferay.portal.kernel.messaging.BaseAsyncDestination.populateThreadLocalsFromMessage(BaseAsyncDestination.java:293)
        [junit] 	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:50)
        [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
        [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
        [junit] 	at java.lang.Thread.run(Thread.java:745)
        [junit] 
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:174)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:100)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:90)
        [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2670)
        [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:88)
        [junit] 
        [junit] 
        [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
         [exec] fake hypersonic service stop
         [echo] 
          [get] Getting: http://test-1-1/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=15,label_exp=!master/220231//consoleText
          [get] To: /opt/dev/projects/github/liferay-portal/20180806160612214.txt
       [delete] Deleting: /opt/dev/projects/github/liferay-portal/20180806160612214.txt
       [delete] Deleting: /opt/dev/projects/github/liferay-portal/null960732829.properties
test-portal-acceptance-pullrequest-batch(master)/modules-integration-mariadb100-jdk8
Job Results:

9600 Tests Passed.
1 Test Failed.

  1. AXIS_VARIABLE=5,label_exp=!master #162080
    1. DeprecatedModulesUpgradeTest.testDeprecatedModulesUpgradeShopping
      java.lang.AssertionError: expected null, but was:<{mvccVersion=0, releaseId=64106, createDate=Mon Aug 06 16:05:04 GMT 2018, modifiedDate=Mon Aug 06 16:05:04 GMT 2018, servletContextName=com.liferay.shopping.service, schemaVersion=0.0.0, buildNumber=0, buildDate=null, verified=false, state=0, testString=}>
      	at org.junit.Assert.fail(Assert.java:88)
      	at org.junit.Assert.failNotNull(Assert.java:755)
      	at org.junit.Assert.assertNull(Assert.java:737)
      	at org.junit.Assert.assertNull(Assert.java:747)
      	at com.liferay.deprecated.modules.upgrade.test.DeprecatedModulesUpgradeTest._testDeprecatedModulesUpgrade(DeprecatedModulesUpgradeTest.java:152)
      	at com.liferay.deprecated.modules.upgrade.test.DeprecatedModulesUpgradeTest.testDeprecatedModulesUpgradeShopping(DeprecatedModulesUpgradeTest.java:95)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
      	at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:370)
      	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.ex...
test-portal-acceptance-pullrequest-batch(master)/modules-integration-sybase160-jdk8
Job Results:

18 Tests Passed.
1 Test Failed.

  1. AXIS_VARIABLE=15,label_exp=!master #98926
        [junit] 	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:50)
        [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
        [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
        [junit] 	at java.lang.Thread.run(Thread.java:745)
        [junit] 
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:174)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:100)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:90)
        [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2670)
        [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
        [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:88)
        [junit] 
        [junit] 
        [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
         [exec] Buildfile: /opt/dev/projects/github/liferay-portal/build-test-batch.xml
         [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1679266784.properties
         [exec] 
         [exec] sybase-service-stop:
         [exec]      [exec] Server SHUTDOWN by request.
         [exec]      [exec] ASE is terminating this process.
         [exec]      [exec] CT-LIBRARY error:
         [exec]      [exec] 	ct_results(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
         [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1679266784.properties
         [exec] 
         [exec] clean-up-sybase-processes:
         [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/clean_up_sybase_processes.sh
         [exec] 
         [exec] BUILD SUCCESSFUL
         [exec] Total time: 1 second
         [echo] 
          [get] Getting: http://test-1-23/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=15,label_exp=!master/98926//consoleText
          [get] To: /opt/dev/projects/github/liferay-portal/20180806161039358.txt
       [delete] Deleting: /opt/dev/projects/github/liferay-portal/20180806161039358.txt
       [delete] Deleting: /opt/dev/projects/github/liferay-portal/null974278642.properties

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test - 164 out of 176 jobs passed in 2 hours 16 minutes 54 seconds 807 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 1ca5f8ff9ec93cf208b79f422c94c0bf49673c8d

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 4dd06b14de78614de680cd3406667608f563e4e7

164 out of 176 jobs PASSED

12 Failed Jobs:

164 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/modules-integration-hypersonic20-jdk8
    Job Results:

    22 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=15,label_exp=!master #220231
          [junit] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
          [junit] 	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:56)
          [junit] 	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:135)
          [junit] 	at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:141)
          [junit] 	at com.sun.proxy.$Proxy33.getCompany(Unknown Source)
          [junit] 	at com.liferay.portal.kernel.service.CompanyLocalServiceUtil.getCompany(CompanyLocalServiceUtil.java:361)
          [junit] 	at com.liferay.portal.kernel.security.auth.CompanyThreadLocal.setCompanyId(CompanyThreadLocal.java:61)
          [junit] 	at com.liferay.portal.kernel.messaging.BaseAsyncDestination.populateThreadLocalsFromMessage(BaseAsyncDestination.java:293)
          [junit] 	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:50)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:174)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:100)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:90)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2670)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:88)
          [junit] 
          [junit] 
          [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
           [exec] fake hypersonic service stop
           [echo] 
            [get] Getting: http://test-1-1/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=15,label_exp=!master/220231//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20180806160612214.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20180806160612214.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null960732829.properties
  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mariadb100-jdk8
    Job Results:

    9600 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=5,label_exp=!master #162080
      1. DeprecatedModulesUpgradeTest.testDeprecatedModulesUpgradeShopping
        java.lang.AssertionError: expected null, but was:<{mvccVersion=0, releaseId=64106, createDate=Mon Aug 06 16:05:04 GMT 2018, modifiedDate=Mon Aug 06 16:05:04 GMT 2018, servletContextName=com.liferay.shopping.service, schemaVersion=0.0.0, buildNumber=0, buildDate=null, verified=false, state=0, testString=}>
        	at org.junit.Assert.fail(Assert.java:88)
        	at org.junit.Assert.failNotNull(Assert.java:755)
        	at org.junit.Assert.assertNull(Assert.java:737)
        	at org.junit.Assert.assertNull(Assert.java:747)
        	at com.liferay.deprecated.modules.upgrade.test.DeprecatedModulesUpgradeTest._testDeprecatedModulesUpgrade(DeprecatedModulesUpgradeTest.java:152)
        	at com.liferay.deprecated.modules.upgrade.test.DeprecatedModulesUpgradeTest.testDeprecatedModulesUpgradeShopping(DeprecatedModulesUpgradeTest.java:95)
        	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        	at java.lang.reflect.Method.invoke(Method.java:498)
        	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        	at org.jboss.arquillian.junit.Arquillian$8$1.invoke(Arquillian.java:370)
        	at org.jboss.arquillian.container.test.impl.execution.LocalTestExecuter.ex...
  3. test-portal-acceptance-pullrequest-batch(master)/modules-integration-sybase160-jdk8
    Job Results:

    18 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=15,label_exp=!master #98926
          [junit] 	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:50)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
          [junit] 	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
          [junit] 	at java.lang.Thread.run(Thread.java:745)
          [junit] 
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:174)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:100)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:90)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2670)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
          [junit] 	at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:88)
          [junit] 
          [junit] 
          [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
           [exec] Buildfile: /opt/dev/projects/github/liferay-portal/build-test-batch.xml
           [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1679266784.properties
           [exec] 
           [exec] sybase-service-stop:
           [exec]      [exec] Server SHUTDOWN by request.
           [exec]      [exec] ASE is terminating this process.
           [exec]      [exec] CT-LIBRARY error:
           [exec]      [exec] 	ct_results(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
           [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1679266784.properties
           [exec] 
           [exec] clean-up-sybase-processes:
           [exec]    [delete] Deleting: /opt/dev/projects/github/liferay-portal/clean_up_sybase_processes.sh
           [exec] 
           [exec] BUILD SUCCESSFUL
           [exec] Total time: 1 second
           [echo] 
            [get] Getting: http://test-1-23/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=15,label_exp=!master/98926//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20180806161039358.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20180806161039358.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null974278642.properties

Failures in common with acceptance upstream results at 1ca5f8f:
  1. ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet