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-145293 Add support for deployment of custom elements as ES modules #1916

Closed
wants to merge 13 commits into from

Conversation

izaera
Copy link
Collaborator

@izaera izaera commented Feb 15, 2022

⚠⚠ NO NEED TO REVIEW THIS, IT WAS ALREADY REVIEWED IN A PREVIOUS PR ⚠⚠


This adds a new boolean field so that custom element remote apps may be bootstrapped using <script type="module"> as opposed to plain vanilla JavaScript.

This is needed for:

  1. The new JS Toolkit build for Remote Apps that lets developers consume react from the portal
  2. Angular projects for version >=13 that need this feature
  3. Any other deployment that wants to leverage ESM

The simplest way to test that this works would be creating a new remote app, checking "Use ES modules":

image

and then looking at how the <script> tag is rendered:

image

…type="module">

Note that I'm using a TopHeadDynamicInclude to render the portlet's .js
files because we cannot use the standard mechanisms based on portlet's
properties as those are only intended for plain JavaScript files.

The TopHeadDynamicInclude registers URLs whenever a new
RemoteAppEntryPortlet is deployed and the cleanup is made when the
Portlet is destroyed (listening to the event using OSGi).

We keep reference counts to each URL so that if more than one portlet
refers to the same JS URL, it is not removed from the page until all
portlets have been unregistered.
Although it is not failing now, we need to make sure that the importmap node
appears before any other <script> node so I'm setting this to the maximum value
to make it appear on top of any other DynamicInclude.

This is because it is very likely that in the future we render ESM <script>
nodes from DynamicIncludes.
@izaera
Copy link
Collaborator Author

izaera commented Feb 15, 2022

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

CI is automatically triggering the following test suites:

  •     ci:test:relevant
  •     ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 6345c62ea4e608c6cd23db768242a45552e4d324

Sender Branch:

Branch Name: LPS-145293-1
Branch GIT ID: 6b751ad1cf2d41de81d98b10fad9c8aca511183a

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

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:sf - 1 out of 1 jobs passed in 4 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 6345c62ea4e608c6cd23db768242a45552e4d324

Sender Branch:

Branch Name: LPS-145293-1
Branch GIT ID: 6b751ad1cf2d41de81d98b10fad9c8aca511183a

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

@liferay-continuous-integration
Copy link
Collaborator

@magjed4289
Copy link

Just started reviewing :)

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

@magjed4289
Copy link

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:stable - 24 out of 28 jobs passed

❌ ci:test:relevant - 24 out of 29 jobs passed in 2 hours 7 minutes

Click here for more details.

This pull is eligible for reevaluation. When this upstream build has completed, using the following CI command will compare this pull request result against a more recent upstream result:

ci:reevaluate:1337401_1096

Base Branch:

Branch Name: master
Branch GIT ID: 3b5cfe0822faf8e57b7ef5c35189a0a26f58536b

Upstream Comparison:

Branch GIT ID: 233dea919ef0ab6061f0b27121e3b76d3b960383
Jenkins Build URL: Acceptance Upstream DXP (master) #2924

ci:test:stable - 24 out of 28 jobs PASSED
24 Successful Jobs:
ci:test:relevant - 24 out of 29 jobs PASSED
24 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/js-unit-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #399756
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:dynamic-data-mapping:dynamic-data-mapping-form-field-type:packageRunTest'.
           [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 ':apps:dynamic-data-mapping:dynamic-data-mapping-form-field-type:packageRunTest'.
           [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]   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)
           [exec]   at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
  2. test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/0
    Job Results:

    2335 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #476854
      1. junit.framework.TestSuite.com.liferay.portal.kernel.util.URLCodecTest
        junit.framework.AssertionFailedError: com.liferay.portal.kernel.util.URLCodec is not fully covered
          at com.liferay.whip.agent.InstrumentationAgent._assertClassDataCoverage(InstrumentationAgent.java:343)
          at com.liferay.whip.agent.InstrumentationAgent.assertCoverage(InstrumentationAgent.java:66)
          at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor.afterClass(CodeCoverageAssertor.java:119)
          at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:84)
        

Failures in common with acceptance upstream results at 233dea9:
  1. test-portal-acceptance-pullrequest-batch(master)/lpkg-base-jdk8/0
    Job Results:

    2 Tests Passed.
    3 Tests Failed.

    1. AXIS_VARIABLE=0 #488796
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog
        junit.framework.AssertionFailedError: 
        Portal log assert failure, OSGi log found: /opt/dev/projects/github/liferay-portal/bundles/osgi/state/1645094910003.log:
        !SESSION 2022-02-17 10:48:47.724 -----------------------------------------------
        eclipse.buildId=unknown
        java.version=1.8.0_121
        java.vendor=Oracle Corporation
        BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
        

        !ENTRY com.liferay.exportimport.service 4 0 2022-02-17 10:48:47.724
        !MESSAGE FrameworkEvent ERROR
        !STACK 0
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.exportimport.service [94]
        Unresolved requirement: Import-Package: com.thoughtworks.xstream; version="1.4.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

        !ENTRY com.liferay.portal.odata.im...

      2. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        FrameworkEvent ERROR
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.exportimport.service [94]
        Unresolved requirement: Import-Package: com.thoughtworks.xstream; version="1.4.0"

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAs...

  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8/0
    Job Results:

    466 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=1 #34634
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        The type property is deprecated. Use the DBType property instead.
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)
  3. test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/0
    Job Results:

    2335 Tests Passed.
    4 Tests Failed.

    1. AXIS_VARIABLE=0 #476854
      1. com.liferay.portal.kernel.util.URLCodecTest.testDecodeURL
        junit.framework.AssertionFailedError: expected:<[java.nio.charset.UnmappableCharacterException: ]Input length = 1> but was:<[]Input length = 1>
        at com.liferay.portal.kernel.util.URLCodecTest._testCharacterCodingException(URLCodecTest.java:186)
        at com.liferay.portal.kernel.util.URLCodecTest.testDecodeURL(URLCodecTest.java:81)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      2. com.liferay.portal.kernel.util.URLCodecTest.testEncodeURL
        junit.framework.AssertionFailedError: expected:<[java.nio.charset.UnmappableCharacterException: ]Input length = 1> but was:<[]Input length = 1>
        at com.liferay.portal.kernel.util.URLCodecTest._testCharacterCodingException(URLCodecTest.java:186)
        at com.liferay.portal.kernel.util.URLCodecTest.testEncodeURL(URLCodecTest.java:124)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      3. com.liferay.portal.kernel.servlet.SessionMapsTest.testInvalidatedSession
        junit.framework.AssertionFailedError: expected:<[java.lang.IllegalStateException: ]Invalidated> but was:<[]Invalidated>
        at com.liferay.portal.kernel.servlet.SessionMapsTest.testInvalidatedSession(SessionMapsTest.java:133)
        at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      4. ...
Test bundle downloads:

@liferay-continuous-integration
Copy link
Collaborator

@magjed4289
Copy link

Reviewed. Test failures are unrelated. ✔️
Ok to manually forward.

@magjed4289
Copy link

ci:test:stable

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test:stable - 24 out of 28 jobs passed

❌ ci:test:relevant - 24 out of 29 jobs passed in 3 hours 3 minutes

Click here for more details.

This pull is eligible for reevaluation. When this upstream build has completed, using the following CI command will compare this pull request result against a more recent upstream result:

ci:reevaluate:1327401_2544

Base Branch:

Branch Name: master
Branch GIT ID: 3b5cfe0822faf8e57b7ef5c35189a0a26f58536b

Upstream Comparison:

Branch GIT ID: 233dea919ef0ab6061f0b27121e3b76d3b960383
Jenkins Build URL: Acceptance Upstream DXP (master) #2924

ci:test:stable - 24 out of 28 jobs PASSED
24 Successful Jobs:
ci:test:relevant - 24 out of 29 jobs PASSED
24 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/js-unit-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #11580
           [exec] * What went wrong:
           [exec] Execution failed for task ':apps:dynamic-data-mapping:dynamic-data-mapping-form-field-type:packageRunTest'.
           [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 ':apps:dynamic-data-mapping:dynamic-data-mapping-form-field-type:packageRunTest'.
           [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]   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)
           [exec]   at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:409)
  2. test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/0
    Job Results:

    2335 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0 #33807
      1. junit.framework.TestSuite.com.liferay.portal.kernel.util.URLCodecTest
        junit.framework.AssertionFailedError: com.liferay.portal.kernel.util.URLCodec is not fully covered
          at com.liferay.whip.agent.InstrumentationAgent._assertClassDataCoverage(InstrumentationAgent.java:343)
          at com.liferay.whip.agent.InstrumentationAgent.assertCoverage(InstrumentationAgent.java:66)
          at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor.afterClass(CodeCoverageAssertor.java:119)
          at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:84)
        

Failures in common with acceptance upstream results at 233dea9:
  1. test-portal-acceptance-pullrequest-batch(master)/lpkg-base-jdk8/0
    Job Results:

    2 Tests Passed.
    3 Tests Failed.

    1. AXIS_VARIABLE=0 #31153
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog
        junit.framework.AssertionFailedError: 
        Portal log assert failure, OSGi log found: /opt/dev/projects/github/liferay-portal/bundles/osgi/state/1645097013846.log:
        !SESSION 2022-02-17 11:23:51.021 -----------------------------------------------
        eclipse.buildId=unknown
        java.version=1.8.0_121
        java.vendor=Oracle Corporation
        BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
        

        !ENTRY com.liferay.portal.odata.impl 4 0 2022-02-17 11:23:51.022
        !MESSAGE FrameworkEvent ERROR
        !STACK 0
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.odata.impl [233]
        Unresolved requirement: Import-Package: io.netty.buffer

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

        !ENTRY com.liferay.site.initializer.extender 4 0 2022-02-17 11:23...

      2. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        FrameworkEvent ERROR
        org.osgi.framework.BundleException: Could not resolve module: com.liferay.portal.odata.impl [233]
        Unresolved requirement: Import-Package: io.netty.buffer

        at org.eclipse.osgi.container.Module.start(Module.java:444)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1682)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1662)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1624)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1555)
        at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1)
        at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
        at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)

        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(Po...

  2. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8/0
    Job Results:

    466 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=1 #29198
      1. com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError:
        The type property is deprecated. Use the DBType property instead.
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.scanXMLLogFile(PortalLogAssertorTest.java:171)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:98)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest$1.visitFile(PortalLogAssertorTest.java:88)
        at java.nio.file.Files.walkFileTree(Files.java:2670)
        at java.nio.file.Files.walkFileTree(Files.java:2742)
        at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanXMLLog(PortalLogAssertorTest.java:86)
  3. test-portal-acceptance-pullrequest-batch(master)/unit-jdk8/0
    Job Results:

    2335 Tests Passed.
    4 Tests Failed.

    1. AXIS_VARIABLE=0 #33807
      1. com.liferay.portal.kernel.util.URLCodecTest.testDecodeURL
        junit.framework.AssertionFailedError: expected:<[java.nio.charset.UnmappableCharacterException: ]Input length = 1> but was:<[]Input length = 1>
        at com.liferay.portal.kernel.util.URLCodecTest._testCharacterCodingException(URLCodecTest.java:186)
        at com.liferay.portal.kernel.util.URLCodecTest.testDecodeURL(URLCodecTest.java:81)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      2. com.liferay.portal.kernel.util.URLCodecTest.testEncodeURL
        junit.framework.AssertionFailedError: expected:<[java.nio.charset.UnmappableCharacterException: ]Input length = 1> but was:<[]Input length = 1>
        at com.liferay.portal.kernel.util.URLCodecTest._testCharacterCodingException(URLCodecTest.java:186)
        at com.liferay.portal.kernel.util.URLCodecTest.testEncodeURL(URLCodecTest.java:124)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      3. com.liferay.portal.kernel.servlet.SessionMapsTest.testInvalidatedSession
        junit.framework.AssertionFailedError: expected:<[java.lang.IllegalStateException: ]Invalidated> but was:<[]Invalidated>
        at com.liferay.portal.kernel.servlet.SessionMapsTest.testInvalidatedSession(SessionMapsTest.java:133)
        at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
        at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
        at com.liferay.portal.kernel.test.rule.CodeCoverageAssertor$1.evaluate(CodeCoverageAssertor.java:81)
      4. ...
Test bundle downloads:

@liferay-continuous-integration
Copy link
Collaborator

@magjed4289
Copy link

Reviewed again. Test failures are unrelated. ✔️
Ok to manually forward.

@liferay-continuous-integration
Copy link
Collaborator

@izaera
Copy link
Collaborator Author

izaera commented Feb 17, 2022

Forwarded as brianchandotcom#113562

@izaera izaera closed this Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants