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 128873 Hibernate 2022 3 17 #2191

Closed
wants to merge 51 commits into from
Closed

Conversation

dantewang
Copy link
Owner

  • LPS-149268 Inline org.hibernate.type.StringClobType and fix SF. This class is deprecated and removed in Hibernate 5, but migrating to the replacement will cause incompatibility with various database software and the databases created by previous Liferay versions.
  • LPS-149268 Semantic Versioning
  • LPS-128873 Migrate patched lib "spring-orm": check in original class
  • LPS-128873 Migrate patched lib "spring-orm": apply LPS-100343 for the Hibernate 5 version of SpringSessionSynchronization
  • LPS-128873 Migrate patched lib "spring-orm": FAKE GRADLE CACHE
  • LPS-128873 Upgrade to Hibernate-core 5.6.3.Final with required dependencies
  • LPS-128873 Auto SF
  • LPS-128873 Build lib versions
  • LPS-128873 Migrate custom types, we should implement UserType rather than CompositeUserType. CompositeUserType is just a workaround to fix LPS-17984, now we are upgrading to hibernate 5.X, no longer need the workaround anymore.
  • LPS-128873 Migrate StringClobType; keep its logic for backwards compatibility; migrating it to extend MaterializedClobType will cause a lot of problems on upgrading & PostgreSQL, but will revisit in the future to see if we can make it extend TextType instead.
  • LPS-128873 Migrate LockModeTranslator: org.hibernate.LockMode#parse(String) -> org.hibernate.LockMode#fromExternalForm(String)
  • LPS-128873 Migrate CacheModeTranslator: org.hibernate.CacheMode#parse(String) -> org.hibernate.CacheMode#interpretExternalSetting(String)
  • LPS-128873 Migrate IDGenerator: org.hibernate.engine.SessionImplementor -> org.hibernate.engine.spi.SharedSessionContractImplementor
  • LPS-128873 Migrate SessionFactoryImpl: org.hibernate.engine.SessionFactoryImplementor -> org.hibernate.engine.spi.SessionFactoryImplementor
  • LPS-128873 Migrate event listeners: 1) update packages; 2) avoid using deprecated methods in event listeners
  • LPS-128873 Migrate customized property accessors: PropertyAccessor -> PropertyAccessStrategy that works as factory of PropertyAccess
  • LPS-128873 Migrate SessionImpl: 1) Session#close() in Hibernate 5 no longer returns Connection, return null here to quick fail; 2) SessionFactoryImplementor#getEntityPersister(String) -> MetamodelImplementor#entityPersister(Class); 3) constructor of EntityKey
  • LPS-128873 Migrate: remove FieldInterceptionHelperUtil as the bytecode instrumentation code has been removed from Hibernate and replaced by another infrastructure, see HHH-10280
  • LPS-128873 Migrate PortalHibernateConfiguration: move logic to CTModelIntegrator
  • LPS-128873 Migrate PortalHibernateConfiguration: move event listeners logic to integrator
  • LPS-128873 Migrate PortalHibernateConfiguration: move newConfiguration logic to afterPropertiesSet and buildSessionFactory
  • LPS-128873 Migrate PortalHibernateConfiguration: remove the optimization for QueryPlanCache and related property. The related Hibernate issue HHH-4959 has been fixed since 5.2.6, so this particular optimization should not be needed for now.
  • LPS-128873 Migrate PortalHibernateConfiguration: move this to buildSessionFactory, as it needs the Configuration (LocalSessionFactoryBuilder)
  • LPS-128873 Migrate PortalHibernateConfiguration: Remove deprecated property, use new property
  • LPS-128873 Migrate PortalHibernateConfiguration: remove Javassist related code since Hibernate only uses ByteBuddy since 5.6.3
  • LPS-128873 Update usage of PortalHibernateConfiguration
  • LPS-128873 Migrate: use default DialectResolver as fallback. The proper way to integrate into Hibernate is to customize the DialectFactory service during creating of session factory, but in Liferay there are code depending on the DialectDetector to determine database type outside Hibernate, executed even before initialization of Hibernate. If we go with the Hibernate 5 native way, the execution order during startup needs to be adjusted which would be a big change.
  • LPS-128873 Migrate: update packages to org.springframework.orm.hibernate5
  • LPS-128873 Migrate: use SessionBuilder from SessionFactory to create session from provided connection
  • LPS-128873 Migrate: package name
  • LPS-128873 Migrate: portal-spring-extender-impl; the javax.persistence-api is required for compiling as Hibernate 5 SessionFactory extends javax.persistence.EntityManagerFactory
  • LPS-128873 Migrate: portal-lock-service; the javax.persistence-api is required for compiling as some Hibernate 5 Exceptions extend javax.persistence.PersistenceException
  • LPS-128873 Migrate: StatisticsService
  • LPS-128873 Migrate VerifySessionFactoryWrapper: org.hibernate.internal.SessionFactoryImpl#getAllClassMetadata() -> org.hibernate.internal.SessionFactoryImpl#getMetamodel()
  • LPS-128873 Fix zero based positional query parameters, see https://hibernate.atlassian.net/browse/HHH-13414
  • LPS-128873 Fix no transaction issue
  • LPS-128873 Fix compile for test
  • LPS-128873 Fix compile for aspectj-hibernate-stale-object-state
  • LPS-128873 Fix compile for aspectj-hibernate-unexpected-row-count
  • LPS-128873 Fix, auto flush is not working for portlet session as it is considered not in active transaction, add logic to check spring's thread local as what's did in hibernate 3.6
  • LPS-128873 Fix exception check in LockLocalServiceTest
  • LPS-128873 Fix log assertion by adding expected log on BatchingBatch because SQLExceptions in BatchingBatch are logged twice -- see Log failing SQL when batched execution fails with RTE like StaleStateException hibernate/hibernate-orm#1544
  • LPS-128873 Fix exception handling and assertion; when the error "Row was updated or deleted by another transaction" happened, hibernate.core-3.6.10 throw StaleObjectStateException(refer to AbstractEntityPersister.check()). However, hibernate-core-5.5.2 throw StaleStateException(refer to Expectations#BasicExpectation.checkBatched()).
  • LPS-128873 Fix LockLocalServiceImpl: Now Hibernate throws a PersistenceException containing a ConstraintViolationException
  • LPS-128873 Fix compile for test
  • LPS-128873 Fix failure of ViewCountEntryLocalServiceTest caused by double logging (BatchingBatch)
  • LPS-128873 [NEED REVISIT] Workaround: solve Hibernate lazy proxy issue "java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy" during portal startup.
  • LPS-128873 Override the method to use LegacyLimitHandler so that it can invoke our SQLServerLimitStringUtil.getLimitString() to generate the sql. Otherwise, it will use SQLServer2005LimitHandler. This will cause JournalFolderServiceImpl.getFoldersAndArticles() generated sql parse failed. But LegacyLimitHandler is deprecated, only LegacyLimitHandler may invoke the getLimitString() method when processing sql.
  • LPS-128873 PostgreSQLDialect was deprecated by PostgreSQL82Dialect. In addition, hibernate 5.5.2 provides one class to return different dialects based on different database versions, please see org.hibernate.dialect.Database. In our case, it will return PostgreSQL10Dialect, and PostgreSQL10Dialect extends PostgreSQL82Dialect. So use PostgreSQL10Dialect as the condition.
  • LPS-128873 Bypass the strict entity check in Hibernate 5 for Session#contains. In Hibernate 3, if the object's class is not recognized as an entity class (FooImpl in our case), it just returns false; while in Hibernate 5, it throws IllegalArgumentException.
  • LPS-128873 Websphere issue. The issue is in the org.hibernate.cfg.AnnotationBinder#bindDefaults(), it will load classes javax.persistence.TableGenerator and javax.persistence.TableGenerators. TableGenerator will be loaded from appserver globalLibDir websphere-9.0.0.0\lib\j2ee.jar, however, TableGenerators doesn't exist in the j2ee.jar. And it existed in portalShieldedContainerLibDir persistence.jar. For the same package, different classes are loaded from different jars which cause the error. For the hibernate 3.6.10, in org.hibernate.cfg.AnnotationBinder#bindDefaults(), it didn't load javax.persistence.TableGenerators, so the issue didn't happen.

dantewang and others added 30 commits March 17, 2022 10:14
…class is deprecated and removed in Hibernate 5, but migrating to the replacement will cause incompatibility with various database software and the databases created by previous Liferay versions.
… Hibernate 5 version of SpringSessionSynchronization
…than CompositeUserType. CompositeUserType is just a workaround to fix LPS-17984, now we are upgrading to hibernate 5.X, no longer need the workaround anymore.
…tibility; migrating it to extend MaterializedClobType will cause a lot of problems on upgrading & PostgreSQL, but will revisit in the future to see if we can make it extend TextType instead.
…tring) -> org.hibernate.LockMode#fromExternalForm(String)
…(String) -> org.hibernate.CacheMode#interpretExternalSetting(String)
…or -> org.hibernate.engine.spi.SharedSessionContractImplementor
…ctoryImplementor -> org.hibernate.engine.spi.SessionFactoryImplementor
… PropertyAccessStrategy that works as factory of PropertyAccess
…longer returns Connection, return null here to quick fail; 2) SessionFactoryImplementor#getEntityPersister(String) -> MetamodelImplementor#entityPersister(Class); 3) constructor of EntityKey
…e instrumentation code has been removed from Hibernate and replaced by another infrastructure, see HHH-10280
…n logic to afterPropertiesSet and buildSessionFactory
…ion for QueryPlanCache and related property. The related Hibernate issue HHH-4959 has been fixed since 5.2.6, so this particular optimization should not be needed for now.
…ssionFactory, as it needs the Configuration (LocalSessionFactoryBuilder)
…ated code since Hibernate only uses ByteBuddy since 5.6.3
…er way to integrate into Hibernate is to customize the DialectFactory service during creating of session factory, but in Liferay there are code depending on the DialectDetector to determine database type outside Hibernate, executed even before initialization of Hibernate. If we go with the Hibernate 5 native way, the execution order during startup needs to be adjusted which would be a big change.
hai.yu and others added 3 commits March 17, 2022 10:31
…n addition, hibernate 5.5.2 provides one class to return different dialects based on different database versions, please see org.hibernate.dialect.Database. In our case, it will return PostgreSQL10Dialect, and PostgreSQL10Dialect extends PostgreSQL82Dialect. So use PostgreSQL10Dialect as the condition.
…contains. In Hibernate 3, if the object's class is not recognized as an entity class (FooImpl in our case), it just returns false; while in Hibernate 5, it throws IllegalArgumentException.
…otationBinder#bindDefaults(), it will load classes javax.persistence.TableGenerator and javax.persistence.TableGenerators. TableGenerator will be loaded from appserver globalLibDir websphere-9.0.0.0\lib\j2ee.jar, however, TableGenerators doesn't exist in the j2ee.jar. And it existed in portalShieldedContainerLibDir persistence.jar. For the same package, different classes are loaded from different jars which cause the error. For the hibernate 3.6.10, in org.hibernate.cfg.AnnotationBinder#bindDefaults(), it didn't load javax.persistence.TableGenerators, so the issue didn't happen.
@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.

@dantewang
Copy link
Owner Author

ci:test:sf

@dantewang
Copy link
Owner Author

ci:test:relevant

@dantewang
Copy link
Owner Author

ci:test

@dantewang
Copy link
Owner Author

ci:test:upgrade

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:sf - 0 out of 1 jobs passed in 17 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05

Sender Branch:

Branch Name: LPS-128873-Hibernate-2022-3-17
Branch GIT ID: 6afae19a52f8805fdc9ac4a4928863fad7c9d0e8

0 out of 1jobs PASSED
For more details click here.
     [java] java.lang.Exception: Found 1 formatting issues:
     [java] 1: ./modules/dxp/apps/portal-search-similar-results/portal-search-similar-results-web/src/main/java/com/liferay/portal/search/similar/results/web/internal/contributor/blogs/BlogsSimilarResultsContributor.java expected:<...erer.getGroupId() !=[ destinationHelper.getScopeGroupId()) \{]
     [java]       destinationBuild...> but was:<...erer.getGroupId() !=[
     [java]         destinationHelper.getScopeGroupId()) \{
     [java] ]
     [java]       destinationBuild...>
     [java] 
     [java]   at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:435)
     [java]   at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:281)
[stopwatch] [run.batch.test.action: 14:20.625 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:440: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:593: Java returned: 1
      [get] Getting: http://test-1-37/job/test-portal-source-format/612//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20220316223523560.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/20220316223523560.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null2145717470.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[beanshell] Truncating errors in /opt/dev/projects/github/liferay-portal/portal-impl/test-results/TEST-JenkinsLogAssertTest.xml
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null1219934333
[junitreport] Loading stylesheet jar:file:/opt/java/ant/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl
[junitreport] Transform time: 151ms
[junitreport] Deleting: /tmp/null1219934333
[echo] A report with all the test results can be found at test-results/html/index.html.
[mkdir] Created dir: /opt/dev/projects/github/liferay-jenkins-ee/test-results
[copy] Copying 1 file to /opt/dev/projects/github/liferay-jenkins-ee/test-results
[echo] run.batch.test.tear.down.start.timestamp: 03-16-2022 22:35:25:522 PDT
[stopwatch] [run.batch.test.tear.down: 0.000 sec]
[delete] Deleting: /opt/dev/projects/github/liferay-portal/null2145717470.properties

print-gc-logs:
[echo]

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:relevant - 0 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05

Upstream Comparison:

Branch GIT ID: be4e29241f15319c98af8d2ac975e28ce3b54b25
Jenkins Build URL: Acceptance Upstream DXP (master) #3039

ci:test:relevant - 0 out of 1 jobs PASSED
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest(master)
    Job Results:

    0 Jobs Passed.
    1 Job Failed.

    [beanshell]   at com.liferay.jenkins.results.parser.GitWorkingDirectory\$1.execute(GitWorkingDirectory.java:406)
    [beanshell]   at com.liferay.jenkins.results.parser.Retryable.executeWithRetries(Retryable.java:47)
    [beanshell]   at com.liferay.jenkins.results.parser.GitWorkingDirectory.createLocalGitBranch(GitWorkingDirectory.java:416)
    [beanshell]   at com.liferay.jenkins.results.parser.BaseWorkspaceGitRepository._createRemoteGitRefLocalGitBranch(BaseWorkspaceGitRepository.java:583)
    [beanshell]   at com.liferay.jenkins.results.parser.BaseWorkspaceGitRepository.getLocalGitBranch(BaseWorkspaceGitRepository.java:442)
    [beanshell]   at com.liferay.jenkins.results.parser.BaseWorkspaceGitRepository.setUp(BaseWorkspaceGitRepository.java:278)
    [beanshell]   at com.liferay.jenkins.results.parser.BaseWorkspace\$2.call(BaseWorkspace.java:118)
    [beanshell]   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    [beanshell]   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    [beanshell]   at java.util.concurrent.ThreadPoolExecutor\$Worker.run(ThreadPoolExecutor.java:617)
    [beanshell]   ... 1 more
    [beanshell] Created cache file in /tmp/jenkins-cached-files/-1707427835.txt
    

    BUILD FAILED
    /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13890: The following error occurred while executing this line:
    /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13907: The following error occurred while executing this line:
    /opt/dev/projects/github/liferay-jenkins-ee/commands/build-test-portal-acceptance-pullrequest.xml:589: The following error occurred while executing this line:
    /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:14699: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : TargetError : at Line: 126 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : throw exception ;

    Target exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to create local branch master-temp-1647495988943 at 89435442a773fa6e6ee69bb102001a094d2b8106
    error: inflate: data stream error (incorrect data check)
    fatal: packed object 525c565071a56ed2a8ced3e0adc7ae496578d8c2 (stored in .git/objects/pack/pack-6b0507470f44c020bf3eb7d85ecff14f9f2dbd44.pack) is corrupt

For upstream results, click here.

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:upgrade - 5 out of 18 jobs passed in 3 hours 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05

Upstream Comparison:

Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05
Jenkins Build URL: Acceptance Upstream DXP (master) #3041

ci:test:upgrade - 5 out of 18 jobs PASSED

13 Failed Jobs:

5 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/database-upgrade-client-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #37751
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/bundles/tools/portal-tools-db-upgrade-client/app-server.properties
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/bundles/tools/portal-tools-db-upgrade-client/portal-upgrade-database.properties
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/bundles/tools/portal-tools-db-upgrade-client/portal-upgrade-ext.properties
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/temp.expect
           [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal
           [exec] spawn /opt/dev/projects/github/liferay-portal/bundles/tools/portal-tools-db-upgrade-client/db_upgrade.sh
           [exec] Database upgrade client is already running with process ID 3663581.
           [exec] 
           [exec] If the following process is not the database upgrade client process, remove db_upgrade.pid and try again.
           [exec] UID          PID    PPID  C STIME TTY          TIME CMD
           [exec] root     3663581       1  0 00:20 ?        00:00:00 /bin/bash /opt/dev/projects/
           [exec] expect: spawn id exp5 not open
           [exec]     while executing
           [exec] "expect "Please enter your application server directory" {
           [exec]   send "\r"
           [exec] }"
           [exec]     (file "./temp.expect" line 9)
            [for] check-upgrade-properties-none-set: The following error occurred while executing this line:
            [for] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:3717: The following error occurred while executing this line:
            [for] /opt/dev/projects/github/liferay-portal/modules/util/portal-tools-db-upgrade-client/src/testFunctional/ant/build-test-db-upgrade-client.xml:613: The following error occurred while executing this line:
            [for] /opt/dev/projects/github/liferay-portal/modules/util/portal-tools-db-upgrade-client/src/testFunctional/ant/util/build-test-expect.xml:82: exec returned: 1
      [stopwatch] [run.batch.test.action: 45:16.544 sec]
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:3715: Keepgoing execution: 6 of 16 iterations failed.
            [get] Getting: ${dependencies.url}/archive/test-1-26/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0/37751consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20220317243615955.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20220317243615955.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null379033421.properties
  2. test-portal-acceptance-pullrequest-batch(master)/functional-upgrade-tomcat90-db2111-jdk8/0
    Job Results:

    6 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=0 #35028
           [exec] * What went wrong:
           [exec] Execution failed for task ':runPoshi'.
           [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
           [exec] 
           [exec] * Try:
           [exec] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
           [exec] 
           [exec] * Get more help at https://help.gradle.org
           [exec] 
           [exec] BUILD FAILED in 6m 6s
           [exec] 
           [exec] com.liferay.poshi.runner.PoshiRunner > test[LocalFile.PortalSmokeUpgrade#ViewPortalSmokeArchive621021] FAILED
           [exec]     java.lang.Exception at PoshiRunner.java:258
           [exec] 
           [exec] > Task :runPoshi FAILED
           [exec] Gradle build finished at 2022-03-17 07:24:02.271.
           [exec] 4 actionable tasks: 3 executed, 1 up-to-date
           [exec] 
           [exec] See the profiling report at: file:///opt/dev/projects/github/liferay-portal/portal-web/build/reports/profile/profile-2022-03-17-00-17-56.html
           [exec] A fine-grained performance profile is available: use the --scan option.
           [exec] Result: 1
           [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0/builds/35028
           [copy] Copying 3 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0/builds/35028/screenshots
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null603944339.properties
      

      clean-up-selenium-driver:
      [exec] chromedriver: no process found
      [exec] Result: 1
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null603944339.properties

      clean-up-logs:
      [parallel] 2022-03-17 07:24:03.955 INFO [main][ThemeHotDeployListener:171] 1 theme for speedwell-theme was unregistered
      [parallel] 2022-03-17 07:24:04.252 INFO [main][ThemeHotDeployListener:171] 1 theme for admin-theme was unregistered
      [parallel] 2022-03-17 07:24:05.256 INFO [main][ThemeHotDeployListener:171] 1 theme for minium-theme was unregistered
      [parallel] 2022-03-17 07:24:06.077 INFO [main][ThemeHotDeployListener:171] 1 theme for classic-theme was unregistered
      [parallel] 2022-03-17 07:24:06.215 INFO [main][ThemeHotDeployListener:171] 1 theme for dialect-theme was unregistered
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null603944339.properties

      run-poshi-evaluate-console:

    2. AXIS_VARIABLE=3 #35028
           [exec] * What went wrong:
      [exec] Execution failed for task ':runPoshi'.
      [exec] > There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/portal-web/tests/index.html
      [exec]
      [exec] * Try:
      [exec] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
      [exec]
      [exec] * Get more help at https://help.gradle.org
      [exec]
      [exec] BUILD FAILED in 6m 12s
      [exec] Result: 1
      [copy] Copying 1 file to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=3/builds/35028
      [copy] Copying 3 files to /opt/dev/projects/github/liferay-portal/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=3/builds/35028/screenshots
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null799307058.properties

      clean-up-selenium-driver:
      [exec] chromedriver: no process found
      [exec] Result: 1
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null799307058.properties

      clean-up-logs:
      [parallel] 2022-03-17 07:22:14.018 INFO [main][ThemeHotDeployListener:171] 1 theme for speedwell-theme was unregistered
      [parallel] 2022-03-17 07:22:14.376 INFO [main][ThemeHotDeployListener:171] 1 theme for dialect-theme was unregistered
      [parallel] 2022-03-17 07:22:15.521 INFO [main][ThemeHotDeployListener:171] 1 theme for classic-theme was unregistered
      [parallel] 2022-03-17 07:22:15.988 INFO [main][ThemeHotDeployListener:171] 1 theme for admin-theme was unregistered
      [parallel] 2022-03-17 07:22:16.148 INFO [main][ThemeHotDeployListener:171] 1 theme for minium-theme was unregistered
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null799307058.properties

      run-poshi-evaluate-console:
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1394809038.properties

      prepare-poshi-runner-properties:
      [propertyfile] Updating property file: /opt/dev/projects/github/liferay-portal/.gradle/gradle.properties
      [sync-dir] Synchronizing /opt/dev/projects/github/liferay-binaries-cache-2020/.gradle/caches/modules-2/files-2.1 into /opt/dev/projects/github/liferay-portal/.gradle/caches/modules-2/files-2.1
      [sync-dir] 0 files synchronized in 457ms
      [echo] Executing Gradle task: evaluatePoshiConsole
      [exec] Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

  3. test-portal-acceptance-pullrequest-batch(master)/functional-upgrade-tomcat90-mariadb102-jdk8/0
    Job Results:

    10 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=7 #12242
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 223
      [beanshell] Remote execution completed in 223ms.
      [beanshell] Remote execution starting with 1 threads.
      [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 root@test-1-37 'mkdir -p "/mnt/mfs-hdd1-10.0.10/jenkins/testray-results/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2579/functional-upgrade-tomcat90-mariadb102-jdk8/0/7"'
      [beanshell] Average thread duration: 222ms
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 222
      [beanshell] Remote execution completed in 222ms.
      [beanshell] Executing commands: rsync -aqz --chmod=go=rx "/opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_rsync_logs"/* "test-1-37::testray-results/production/logs/"
      [beanshell] Uploaded https://testray.liferay.com/reports/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2579/functional-upgrade-tomcat90-mariadb102-jdk8/0/7/jenkins-console.txt.gz
      [beanshell] Unable to delete because file does not exist /opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_s3_logs
      [beanshell] Created S3 Object https://storage.cloud.google.com/testray-results/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2579/functional-upgrade-tomcat90-mariadb102-jdk8/0/7/jenkins-console.txt.gz in 623 ms
      [stopwatch] [run.current.job: 1:34.471 sec]
      [beanshell] Created cache file in /tmp/jenkins-cached-files/-1301805505.txt

      BUILD FAILED
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13846: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:14699: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : TargetError : at Line: 126 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : throw exception ;

      Target exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to create local branch master-temp-1647499740707 at 89435442a773fa6e6ee69bb102001a094d2b8106
      error: inflate: data stream error (incorrect data check)
      fatal: packed object 525c565071a56ed2a8ced3e0adc7ae496578d8c2 (stored in .git/objects/pack/pack-6b0507470f44c020bf3eb7d85ecff14f9f2dbd44.pack) is corrupt

  4. ...

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:default - 77 out of 121 jobs passed in 3 hours 43 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05

Upstream Comparison:

Branch GIT ID: 523fbcc89f5e13432496630f9e2af72f5ee40b05
Jenkins Build URL: Acceptance Upstream DXP (master) #3041

ci:test:default - 77 out of 121 jobs PASSED

44 Failed Jobs:

77 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/bundle-blacklist-restart-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #37752
           [exec] * What went wrong:
           [exec] Execution failed for task ':yarnInstall'.
           [exec] > Process 'command '/opt/dev/projects/github/liferay-portal/build/node/bin/node'' finished with non-zero exit value 1
           [exec] 
           [exec] * Try:
           [exec] Run with --info or --debug option to get more log output. Run with --scan to get full insights.
           [exec] 
           [exec] * Exception is:
           [exec] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':yarnInstall'.
           [exec]   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:208)
           [exec]   at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:263)
           [exec]   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:206)
           [exec]   at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:187)
           [exec]   at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:114)
           [exec]   at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
           [exec]   at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
           [exec]   at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
           [exec] 2 actionable tasks: 1 executed, 1 up-to-date
           [exec] 
           [exec] See the profiling report at: file:///opt/dev/projects/github/liferay-portal/build/reports/profile/profile-2022-03-16-23-53-46.html
           [exec] A fine-grained performance profile is available: use the --scan option.
           [exec]   at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
           [exec]   at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
           [exec]   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
           [exec]   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
           [exec]   at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
  2. test-portal-acceptance-pullrequest-batch(master)/functional-tomcat90-mariadb102-jdk8/1
    Job Results:

    24 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=22 #12246
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 223
      [beanshell] Remote execution completed in 223ms.
      [beanshell] Remote execution starting with 1 threads.
      [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 root@test-1-37 'mkdir -p "/mnt/mfs-hdd1-10.0.10/jenkins/testray-results/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mariadb102-jdk8/1/22"'
      [beanshell] Average thread duration: 222ms
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 222
      [beanshell] Remote execution completed in 222ms.
      [beanshell] Executing commands: rsync -aqz --chmod=go=rx "/opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_rsync_logs"/* "test-1-37::testray-results/production/logs/"
      [beanshell] Uploaded https://testray.liferay.com/reports/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mariadb102-jdk8/1/22/jenkins-console.txt.gz
      [beanshell] Unable to delete because file does not exist /opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_s3_logs
      [beanshell] Created S3 Object https://storage.cloud.google.com/testray-results/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mariadb102-jdk8/1/22/jenkins-console.txt.gz in 611 ms
      [stopwatch] [run.current.job: 1:26.265 sec]
      [beanshell] Created cache file in /tmp/jenkins-cached-files/-484050424.txt
      

      BUILD FAILED
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13846: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:14699: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : TargetError : at Line: 126 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : throw exception ;

      Target exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to create local branch master-temp-1647503052406 at 89435442a773fa6e6ee69bb102001a094d2b8106
      error: inflate: data stream error (incorrect data check)
      fatal: packed object 525c565071a56ed2a8ced3e0adc7ae496578d8c2 (stored in .git/objects/pack/pack-6b0507470f44c020bf3eb7d85ecff14f9f2dbd44.pack) is corrupt

  3. test-portal-acceptance-pullrequest-batch(master)/functional-tomcat90-mariadb104-jdk8/2
    Job Results:

    7 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=6 #16617
           [echo] ##
      [echo]
      [beanshell] 2022-03-17 01:35:37
      [beanshell] Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.121-b13 mixed mode):
      [beanshell]
      [beanshell] "Attach Listener" #40 daemon prio=9 os_prio=0 tid=0x00007fa470001000 nid=0x118d29 waiting on condition [0x0000000000000000]
      [beanshell] java.lang.Thread.State: RUNNABLE
      [beanshell]
      [beanshell] Locked ownable synchronizers:
      [beanshell] - None
      [beanshell]
      [beanshell] "http-nio-8080-exec-14" #39 daemon prio=5 os_prio=0 tid=0x00007fa43c020000 nid=0x118cf4 waiting on condition [0x00007fa4543f1000]
      [beanshell]
      [delete] Deleting: /tmp/Bootstrap__1149804.log
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/jps_output
      [stopwatch] [run.batch.test.action: 35:10.760 sec]
      [echo] The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:365: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1662: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:1666: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:39: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:51: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:13937: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:14302: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:4755: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:4838: The following error occurred while executing this line:
      [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:5851: No server is available at http://localhost:8080/web/guest
      [get] Getting: ${dependencies.url}/archive/test-1-36/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=6/16617consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20220317013538328.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20220317013538328.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null320064320.properties
  4. test-portal-acceptance-pullrequest-batch(master)/functional-tomcat90-mysql57-jdk8/24
    Job Results:

    19 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=18 #12244
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 223
      [beanshell] Remote execution completed in 223ms.
      [beanshell] Remote execution starting with 1 threads.
      [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 root@test-1-37 'mkdir -p "/mnt/mfs-hdd1-10.0.10/jenkins/testray-results/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/18"'
      [beanshell] Average thread duration: 222ms
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 222
      [beanshell] Remote execution completed in 222ms.
      [beanshell] Executing commands: rsync -aqz --chmod=go=rx "/opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_rsync_logs"/* "test-1-37::testray-results/production/logs/"
      [beanshell] Uploaded https://testray.liferay.com/reports/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/18/jenkins-console.txt.gz
      [beanshell] Unable to delete because file does not exist /opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_s3_logs
      [beanshell] Created S3 Object https://storage.cloud.google.com/testray-results/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/18/jenkins-console.txt.gz in 577 ms
      [stopwatch] [run.current.job: 1:27.431 sec]
      [beanshell] Created cache file in /tmp/jenkins-cached-files/-61391687.txt

      BUILD FAILED
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13846: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:14699: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : TargetError : at Line: 126 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : throw exception ;

      Target exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to create local branch master-temp-1647502239326 at 89435442a773fa6e6ee69bb102001a094d2b8106
      error: inflate: data stream error (incorrect data check)
      fatal: packed object 525c565071a56ed2a8ced3e0adc7ae496578d8c2 (stored in .git/objects/pack/pack-6b0507470f44c020bf3eb7d85ecff14f9f2dbd44.pack) is corrupt

    2. AXIS_VARIABLE=20 #12244
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 223
      [beanshell] Remote execution completed in 223ms.
      [beanshell] Remote execution starting with 1 threads.
      [beanshell] Executing commands: ssh -o NumberOfPasswordPrompts=0 root@test-1-37 'mkdir -p "/mnt/mfs-hdd1-10.0.10/jenkins/testray-results/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/20"'
      [beanshell] Average thread duration: 222ms
      [beanshell] Busy slaves:0
      [beanshell] Finished slaves:1
      [beanshell] Target slaves:1
      [beanshell] Total duration: 223
      [beanshell] Remote execution completed in 223ms.
      [beanshell] Executing commands: rsync -aqz --chmod=go=rx "/opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_rsync_logs"/* "test-1-37::testray-results/production/logs/"
      [beanshell] Uploaded https://testray.liferay.com/reports/production/logs/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/20/jenkins-console.txt.gz
      [beanshell] Unable to delete because file does not exist /opt/dev/projects/github/liferay-jenkins-ee/testray/prepared_s3_logs
      [beanshell] Created S3 Object https://storage.cloud.google.com/testray-results/2022-03/test-1-30/test-portal-acceptance-pullrequest(master)/2578/functional-tomcat90-mysql57-jdk8/24/20/jenkins-console.txt.gz in 597 ms
      [stopwatch] [run.current.job: 1:28.064 sec]
      [beanshell] Created cache file in /tmp/jenkins-cached-files/16600656.txt

      BUILD FAILED
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:13846: The following error occurred while executing this line:
      /opt/dev/projects/github/liferay-jenkins-ee/commands/build-common.xml:14699: Sourced file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : TargetError : at Line: 126 : in file: inline evaluation of: import com.liferay.jenkins.results.parser.BuildDatabase; import com . . . '' : throw exception ;

      Target exception: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unable to create local branch master-temp-1647502027939 at 89435442a773fa6e6ee69bb102001a094d2b8106
      error: inflate: data stream error (incorrect data check)
      fatal: packed object 525c565071a56ed2a8ced3e0adc7ae496578d8c2 (stored in .git/objects/pack/pack-6b0507470f44c020bf3eb7d85ecff14f9f2dbd44.pack) is corrupt

  5. ...

@liferay-continuous-integration
Copy link
Collaborator

@dantewang dantewang closed this Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants