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-125550 rebase on LPS-128599 #2168

Closed
wants to merge 29 commits into from
Closed

Conversation

yuhai
Copy link

@yuhai yuhai commented Mar 4, 2021

@tinatian, I add the last two commits for you review clearly. And do the change about the commit 2a4259f (because the pr rebased on shuyangzhou#9823). In addition, after LPS-128599 merged to master. The pr should lack packageinfo change due to the commit 2a4259f (I add new constructor for CaptureAppender and LogEvent).

cc @dantewang

hai.yu and others added 28 commits March 3, 2021 09:06
….test.log to com.liferay.portal.test.log.log4j, deprecate original ones
…portal.kernel.test to com.liferay.portal.test.log.jdk, deprecate original ones
…stPermission" "register")" during ant all.
…keep rename action, do it as one commit), this is needed as the proeprty file name is hard coded in log4j2.
…to log4j2 DefaultMergeStrategy to custom our merge rule. Merge new configuration to our centralizedConfiguration.
…es, setAdditive let log event will not be propagated to parents.
…r's level is null or fake, it will use its parent Logger level (default Root logger level is Error); 2),Log4j2 logger's appender is aggregated, log4j1 logger's appender is overrided.
…ired by log4j-core.jar as it is exporting package "org.apache.logging.log4j.core.osgi" which contains a class referencing osgi related classes
@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.

@yuhai
Copy link
Author

yuhai commented Mar 4, 2021

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2

Upstream Comparison:

Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2
Jenkins Build URL: Acceptance Upstream DXP (master) #1603

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.

    A CI failure has occurred. QA Engineering has been notified. Please try again later or contact QA Engineering for an update.

For upstream results, click here.

@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: 4ef1e49a5565418b5bf991238ee548fb8a8965e2

Sender Branch:

Branch Name: LPS-125550-0304
Branch GIT ID: ec60c367649102dad8de55fd203dd4c75af6b46d

0 out of 1jobs PASSED
For more details click here.
     [java] java.lang.Exception: Found 3 formatting issues:
     [java] 1: Combine the literal string 'price-value-inactive' with 'StringPool.SPACE': ./modules/apps/commerce/commerce-frontend-taglib/src/main/resources/META-INF/resources/price/default.jsp 23 (Checkstyle:PlusStatementCheck)
     [java] 2: Combine the literal string 'price-value-inactive' with 'StringPool.SPACE': ./modules/apps/commerce/commerce-frontend-taglib/src/main/resources/META-INF/resources/price/promo.jsp 23 (Checkstyle:PlusStatementCheck)
     [java] 3: ./modules/apps/data-engine/data-engine-service/src/main/java/com/liferay/data/engine/internal/exportimport/data/handler/DEDataDefinitionFieldLinkStagedModelDataHandler.java expected:<...initionFieldLink.set[MvccVersion(
     [java] 				existingDEDataDefinitionFieldLink.getMvccVersion());
     [java] 			importedDEDataDefinitionFieldLink.set]DeDataDefinitionFiel...> but was:<...initionFieldLink.set[]DeDataDefinitionFiel...>
     [java] 
     [java] 	at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:445)
     [java] 	at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:290)
[stopwatch] [run.batch.test.action: 15:03.317 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:562: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:706: Java returned: 1
      [get] Getting: http://test-1-10/job/test-portal-source-format/2592//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20210303233017748.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/20210303233017748.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null2000262577.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null240071277
[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: 431ms
[junitreport] Deleting: /tmp/null240071277
[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

@@ -223,6 +223,12 @@ Export-Package:\
org.apache.commons.logging.impl;version="1.2",\
org.apache.commons.validator.routines;version='1.5.1',\
org.apache.log4j;version='2.14.0',\
org.apache.log4j.bridge;version='2.14.0',\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yuhai portal-test is deployed as a module, but my RollingFileAppenderBuilder is in petra-log4j which is deployed as a lib in core, which is in the same class loader as log4j jars. What packages does the latter one need?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dantewang, except org.apache.log4j.spi, RollingFileAppenderBuilder needs the other packages. I will remove these.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dantewang, I just push force the change. Only keep portal-test needed.

@yuhai yuhai force-pushed the LPS-125550-0304 branch 2 times, most recently from a337fdb to 73922e4 Compare March 4, 2021 08:45
@yuhai
Copy link
Author

yuhai commented Mar 4, 2021

ci:test:sf

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2

Sender Branch:

Branch Name: LPS-125550-0304
Branch GIT ID: 73922e4e5f97817e14f932b35e4654badc9bc027

0 out of 1jobs PASSED
For more details click here.
     [java] java.lang.Exception: Found 3 formatting issues:
     [java] 1: Combine the literal string 'price-value-inactive' with 'StringPool.SPACE': ./modules/apps/commerce/commerce-frontend-taglib/src/main/resources/META-INF/resources/price/default.jsp 23 (Checkstyle:PlusStatementCheck)
     [java] 2: Combine the literal string 'price-value-inactive' with 'StringPool.SPACE': ./modules/apps/commerce/commerce-frontend-taglib/src/main/resources/META-INF/resources/price/promo.jsp 23 (Checkstyle:PlusStatementCheck)
     [java] 3: ./modules/apps/data-engine/data-engine-service/src/main/java/com/liferay/data/engine/internal/exportimport/data/handler/DEDataDefinitionFieldLinkStagedModelDataHandler.java expected:<...initionFieldLink.set[MvccVersion(
     [java] 				existingDEDataDefinitionFieldLink.getMvccVersion());
     [java] 			importedDEDataDefinitionFieldLink.set]DeDataDefinitionFiel...> but was:<...initionFieldLink.set[]DeDataDefinitionFiel...>
     [java] 
     [java] 	at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:445)
     [java] 	at com.liferay.source.formatter.SourceFormatter.main(SourceFormatter.java:290)
[stopwatch] [run.batch.test.action: 16:26.188 sec]
     [echo] The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:562: The following error occurred while executing this line:
     [echo] /opt/dev/projects/github/liferay-portal/portal-impl/build.xml:706: Java returned: 1
      [get] Getting: http://test-1-16/job/test-portal-source-format/5094//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20210304013649195.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/20210304013649195.txt
   [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1387895271.properties

merge-test-results:
[mkdir] Created dir: /opt/dev/projects/github/liferay-portal/test-results
[junitreport] Processing /opt/dev/projects/github/liferay-portal/test-results/TESTS-TestSuites.xml to /tmp/null1287152935
[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: 223ms
[junitreport] Deleting: /tmp/null1287152935
[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

@yuhai
Copy link
Author

yuhai commented Mar 4, 2021

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

Jenkins Build:test-portal-source-format#2592
Jenkins Report:jenkins-report.html
Jenkins Suite: sf
Pull Request:tinatian#2168
Spira Release:/Liferay DXP 7.4/Pull Request/ci:test:sf
Spira Release Build:master - yuhai > tinatian - PR#2168 - 2021-03-03[23:13:50]
Spira Jenkins Build:publish-spira-report#16924

@liferay-continuous-integration
Copy link
Collaborator

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

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2

Upstream Comparison:

Branch GIT ID: 4ef1e49a5565418b5bf991238ee548fb8a8965e2
Jenkins Build URL: Acceptance Upstream DXP (master) #1603

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.

    A CI failure has occurred. QA Engineering has been notified. Please try again later or contact QA Engineering for an update.

For upstream results, click here.

@liferay-continuous-integration
Copy link
Collaborator

Jenkins Build:test-portal-source-format#5094
Jenkins Report:jenkins-report.html
Jenkins Suite: sf
Pull Request:tinatian#2168
Spira Release:/Liferay DXP 7.4/Pull Request/ci:test:sf
Spira Release Build:master - yuhai > tinatian - PR#2168 - 2021-03-04[00:47:04]
Spira Jenkins Build:publish-spira-report#20983

@liferay-continuous-integration
Copy link
Collaborator

@yichenroy
Copy link

@yuhai @tinatian should the following pull request go to liferay-plugins-ee instead of liferay-plugins?

shuyangzhou/liferay-plugins#162

@tinatian tinatian closed this Mar 4, 2021
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.

5 participants