Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-144495

Investigate ModulesStructureTest failure

    Details

    • Fix Priority:
      3

      Description

      Testray
      Jenkins

      test-class-group:
           [echo] test.class.group.start.timestamp: 12-23-2021 07:11:46:303 PST
           [echo] test.cmd.start.timestamp: 12-23-2021 07:11:46:304 PST
          [junit] WARNING: multiple versions of ant detected in path for junit 
          [junit]          jar:file:/opt/dev/projects/github/liferay-jenkins-ee/commands/../lib/jenkins/ant.jar!/org/apache/tools/ant/Project.class
          [junit]      and jar:file:/opt/java/ant/lib/ant.jar!/org/apache/tools/ant/Project.class
          [junit] Running com.liferay.portal.modules.ModulesStructureTest
          [junit] Testsuite: com.liferay.portal.modules.ModulesStructureTest
          [junit] Loading file:/opt/dev/projects/github/liferay-portal/portal-kernel/test-classes/unit/system-ext.properties
          [junit] Tests run: 7, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 7.178 sec
          [junit] Tests run: 7, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 7.178 sec
          [junit] 
          [junit] Testcase: testScanBuildScripts(com.liferay.portal.modules.ModulesStructureTest):	FAILED
          [junit] Forbidden modules/test/poshi/poshi-standalone/gradle.properties
          [junit] junit.framework.AssertionFailedError: Forbidden modules/test/poshi/poshi-standalone/gradle.properties
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest$2.preVisitDirectory(ModulesStructureTest.java:229)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest$2.preVisitDirectory(ModulesStructureTest.java:168)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2677)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest.testScanBuildScripts(ModulesStructureTest.java:166)
          [junit] 
          [junit] 
          [junit] Testcase: testScanGradleFiles(com.liferay.portal.modules.ModulesStructureTest):	FAILED
          [junit] Artifact dependency {classpath group: "com.liferay", name: "com.liferay.gradle.plugins.source.formatter", version: "latest.release"} in modules/test/poshi/poshi-standalone/build.gradle not permitted on master branch. Use a project dependency instead.
          [junit] junit.framework.AssertionFailedError: Artifact dependency {classpath group: "com.liferay", name: "com.liferay.gradle.plugins.source.formatter", version: "latest.release"} in modules/test/poshi/poshi-standalone/build.gradle not permitted on master branch. Use a project dependency instead.
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest._testGradleFile(ModulesStructureTest.java:1448)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest.access$800(ModulesStructureTest.java:68)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest$4.visitFile(ModulesStructureTest.java:398)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest$4.visitFile(ModulesStructureTest.java:372)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2670)
          [junit] 	at java.nio.file.Files.walkFileTree(Files.java:2742)
          [junit] 	at com.liferay.portal.modules.ModulesStructureTest.testScanGradleFiles(ModulesStructureTest.java:370)
          [junit] 
          [junit] 
          [junit] Test com.liferay.portal.modules.ModulesStructureTest FAILED
      [stopwatch] [test.cmd: 7.595 sec]
      [stopwatch] [test.class.group: 7.596 sec]
      

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            melody.wu Melody Wu
            Participants of an Issue:
            Recent user:
            Brian Wulbern
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              20 weeks ago

                Packages

                Version Package