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

[Freemarker loop size]LPS-124811 #9685

Closed
wants to merge 201 commits into from

Conversation

tinatian
Copy link

No description provided.

dgarciasarai and others added 30 commits December 16, 2020 08:25
… if applies. Database goalTarget keeps the same format
This order was on purpose. Originally we were taking the v= value as
everything to the right including parameters which was wrong. With those
tests we were ensuring this wouldn't happen again.

This reverts commit d0cab88.
…ent scheduled Web Contents by getting their id_ as classPK instead of their resourcePrimKey
…se the user click on the fragment it prevents to play the video and behaves the same than any other fragment
…ntation

This basically means that the server will render an empty placeholder
and then components (if passed) will be hydrated client-side.

Additionally, we introduce a temporary workaround to reduce cumulative
layout shift. If a `__placeholder__` property is passed in the `context`
object, the renderer will use that instead of an empty placeholder so tag
implementors can choose to manually generate it temporarily.
This effectively removes server-side support for Soy rendering, meaning that
there won't be an available template manager for soy templates in the server.

This doesn't mean that compiled soy templates to JavaScript won't work which
reamin as a viable path forward if a developer decides to use them
This markup is used server-side to provide initial markup as a fallback now
that we're no longer rendering soy to limit layout cumulative shift when the
component hydrates client-side

This commit still leaves a slight shift because an empty toolbar has different
height than one with content. This is a small adjustment to adress later either
by agreeing on a fixed height or by rendering additional elements in the
placeholder
…doesn't exist

This is necessary because in some contexts the toolbar lacks an ide
at this point. This can happen if no id or componentId is set and the
toolbar is not linked to a search container
@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.

@tinatian
Copy link
Author

ci:test:relevant

@tinatian
Copy link
Author

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: c273cecd70ab4ba75d05cf6c8d7b9f0058d7e2cc

Sender Branch:

Branch Name: LPS-124811-1
Branch GIT ID: 999a44ba8a84fe061c06d3f93ebf903cb6183e74

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:stable - 9 out of 9 jobs passed

❌ ci:test:relevant - 20 out of 24 jobs passed in 2 hours 8 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: ff0e5e147ea14773fc626b3a4024d041bfefb138

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 0ff04d9f73a4643abdd2b335581feef26b985b8a

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

Failures unique to this pull:

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

    159 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #318245
      1. FreeMarkerTemplateTest.testLoopSizeThreshold
        java.lang.AssertionError: 
        	at org.junit.Assert.fail(Assert.java:88)
        	at org.junit.Assert.assertTrue(Assert.java:41)
        	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplateTest._testLoopSizeThreshold(FreeMarkerTemplateTest.java:411)
        	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplateTest.testLoopSizeThreshold(FreeMarkerTemplateTest.java:131)
        	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.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        	at org.junit.runners.Parent...

Failures in common with acceptance upstream results at ff0e5e1:
  1. test-portal-acceptance-pullrequest-batch(master)/semantic-versioning-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #314364

      Please fix semantic versioning on tinatian/LPS-124811-1

           [exec] 			+   return     void
           [exec] 		+   method     <init>(java.lang.String)
           [exec] 			+   return     void
           [exec] 		+   method     <init>(java.lang.String,java.lang.Throwable)
           [exec] 			+   return     void
           [exec] 		+   method     <init>(java.lang.Throwable)
           [exec] 			+   return     void
           [exec] 		+   method     addSuppressed(java.lang.Throwable)
           [exec] 			+   access     final
           [exec] 			+   return     void
           [exec] 		+   method     clone()
           [exec] 			+   access     protected
           [exec] 			+   return     java.lang.Object
           [exec] 		+   method     equals(java.lang.Object)
           [exec] 			+   return     boolean
           [exec] 		+   method     fillInStackTrace()
           [exec] 			+   return     java.lang.Throwable
           [exec] 		+   method     finalize()
           [exec] 			+   access     protected
           [exec] 			+   return     void
           [exec] 		+   method     getCause()
           [exec] 			+   return     java.lang.Throwable
           [exec] 		+   method     getLocalizedMessage()
           [exec] 			+   return     java.lang.String
           [exec] 		+   method     getMessage()
           [exec] 			+   return     java.lang.String
           [exec] 		+   method     getStackTrace()
           [exec] 			+   return     java.lang.StackTraceElement[]
           [exec] 		+   method     getSuppressed()
           [exec] 			+   access     final
           [exec] 			+   return     java.lang.Throwable[]
           [exec] 		+   method     hashCode()
           [exec] 			+   return     int
           [exec] 		+   method     initCause(java.lang.Throwable)
           [exec] 			+   return     java.lang.Throwable
           [exec] 		+   method     printStackTrace()
           [exec] 			+   return     void
           [exec] 		+   method     printStackTrace(java.io.PrintStream)
           [exec] 			+   return     void
           [exec] 		+   method     printStackTrace(java.io.PrintWriter)
           [exec] 			+   return     void
           [exec] 		+   method     setStackTrace(java.lang.StackTraceElement[])
           [exec] 			+   return     void
           [exec] 		+   method     toString()
           [exec] 			+   return     java.lang.String
           [exec] [Baseline Report] Mode: diff (persisted)
           [exec] Semantic versioning is incorrect while checking /opt/dev/projects/github/liferay-portal/portal-kernel/portal-kernel.jar against /opt/dev/projects/github/liferay-portal/.gradle/caches/modules-2/files-2.1/com.liferay.portal/com.liferay.portal.kernel/9.18.0/471e51c2d8cc477362ba9dd7449b8c3974545660/com.liferay.portal.kernel-9.18.0.jar

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

    159 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #318245
      1. SampleSQLBuilderTest.testGenerateAndInsertSampleSQL
        java.lang.Exception: Unable to process FreeMarker template 
        	at com.liferay.portal.tools.sample.sql.builder.SampleSQLBuilder.compressSQL(SampleSQLBuilder.java:211)
        	at com.liferay.portal.tools.sample.sql.builder.SampleSQLBuilder.<init>(SampleSQLBuilder.java:80)
        	at com.liferay.portal.tools.sample.sql.builder.SampleSQLBuilderTest.testGenerateAndInsertSampleSQL(SampleSQLBuilderTest.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.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        	at org.junit.runners.Pare...

@tinatian tinatian closed this Dec 17, 2020
@liferay-continuous-integration
Copy link
Collaborator

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