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-122028 create unit tests #236

Closed
wants to merge 5 commits into from

Conversation

marcosapmf
Copy link

@marcosapmf marcosapmf commented Oct 21, 2020

@liferay-forms
Copy link
Collaborator

Hi, you don’t need to run the CI commands anymore, I’ll do it for you and let you know if any issue happens.

@liferay-forms
Copy link
Collaborator

ci:test:sf

@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.

@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: e035cc567da2b8aba5f511714e052127ef347634

Sender Branch:

Branch Name: LPS-122028
Branch GIT ID: 5db2bd89c1512991eeba95d33739c869594b5fee

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

@liferay-forms
Copy link
Collaborator

ci:test:relevant

@carolmariaabb
Copy link
Owner

Just started reviewing :)

:octocat: Sent from GH.

@liferay-continuous-integration
Copy link
Collaborator

@carolmariaabb
Copy link
Owner

Just started reviewing :)

:octocat: Sent from GH.

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 14 out of 14 jobs passed

❌ ci:test:relevant - 114 out of 119 jobs passed in 2 hours 9 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: e035cc567da2b8aba5f511714e052127ef347634

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 27bc57847a0fbdd19ff9c855a0e2eda43d622c23

ci:test:stable - 14 out of 14 jobs PASSED
14 Successful Jobs:
ci:test:relevant - 114 out of 119 jobs PASSED
114 Successful Jobs:
For more details click here.

Failures unique to this pull:


Failures in common with acceptance upstream results at 4474e93:
  1. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mysql57-jdk8
    Job Results:

    1160 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=2,label_exp=!master #317788
      1. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError: 
        HikariPool-1 - Connection is not available, request timed out after 600000ms.
        	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)
        

@liferay-forms
Copy link
Collaborator

Hey @marcosapmf, can you please check if these failures are related to your changes? Thanks

@carolmariaabb
Copy link
Owner

ci:test:relevant

@liferay-continuous-integration
Copy link
Collaborator

@liferay-continuous-integration
Copy link
Collaborator

✔️ ci:test:stable - 14 out of 14 jobs passed

❌ ci:test:relevant - 114 out of 119 jobs passed in 2 hours 3 minutes

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: e035cc567da2b8aba5f511714e052127ef347634

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: 27bc57847a0fbdd19ff9c855a0e2eda43d622c23

ci:test:stable - 14 out of 14 jobs PASSED
14 Successful Jobs:
ci:test:relevant - 114 out of 119 jobs PASSED
114 Successful Jobs:
For more details click here.

Failures unique to this pull:

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

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #444016
      Triggering projects: verification-node
      [liferay-jenkins-ee] $ /bin/bash -e -x /tmp/jenkins7842459471171543354.sh
      + echo 'Update the workspace repository for post-build steps.'
      Update the workspace repository for post-build steps.
      + git clean -d -f -x
      Removing git/
      Removing hs_err_pid13804.log
      + git reset --hard
      HEAD is now at b0410f6dc9 LRCI-1643 Move 'environments' upstream suite away from private branches
      + set +e
      + git show-ref --verify --quiet refs/heads/master-temp-1603296150601
      + VERIFY_BRANCH_RESULT=0
      + set -e
      + [[ 0 == 0 ]]
      + git checkout master-temp-1603296150601
      Already on 'master-temp-1603296150601'
      + git log -n 1
      commit b0410f6dc978823717c69b05be2587465e878b5a
      Author: yichenroy <yi-chen.tsai@liferay.com>
      Date:   Tue Oct 20 10:02:44 2020 -0700
      
      LRCI-1643 Move 'environments' upstream suite away from private branches
      
      • echo 'Exit shell.'
        Exit shell.
        [liferay-jenkins-ee] $ /bin/bash -e -x /tmp/jenkins8386830295051053587.sh
      • echo 'Execute: build-test-portal-acceptance-pullrequest-batch.sh stop-current-job'
        Execute: build-test-portal-acceptance-pullrequest-batch.sh stop-current-job
      • commands/build-test-portal-acceptance-pullrequest-batch.sh stop-current-job
        Execute: ant -f commands/build-common.xml run-ant-target -Dant.file.name=build-test-portal-acceptance-pullrequest-batch.xml -Dant.target=stop-current-job -lib commands/../lib/jenkins
        Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c0000000, 805306368, 0) failed; error='Cannot allocate memory' (errno=12)

      There is insufficient memory for the Java Runtime Environment to continue.

      Native memory allocation (mmap) failed to map 805306368 bytes for committing reserved memory.

      An error report file with more information is saved as:

      /opt/dev/projects/github/liferay-jenkins-ee/hs_err_pid13847.log

      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - [ERROR] - The given properties file path '/opt/dev/projects/github/liferay-jenkins-ee/stop.properties' doesn't exist.
      [EnvInject] - [ERROR] - Missing file path was resolved from pattern '${WORKSPACE}/stop.properties' .
      [EnvInject] - [ERROR] - Problems occurs on injecting env vars as a build step: java.io.IOException: The given properties file path '/opt/dev/projects/github/liferay-jenkins-ee/stop.properties' doesn't exist.
      [description-setter] Description set: ${BUILD_DESCRIPTION}
      Build step 'Execute Scripts' marked build as failure
      Finished: FAILURE

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

    1 Test Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #444017
      Triggering projects: verification-node
      [liferay-jenkins-ee] $ /bin/bash -e -x /tmp/jenkins2724061227355544207.sh

      • echo 'Update the workspace repository for post-build steps.'
        Update the workspace repository for post-build steps.

      • git clean -d -f -x
        Removing git/
        Removing hs_err_pid17937.log

      • git reset --hard
        HEAD is now at b0410f6dc9 LRCI-1643 Move 'environments' upstream suite away from private branches

      • set +e

      • git show-ref --verify --quiet refs/heads/master-temp-1603296151044

      • VERIFY_BRANCH_RESULT=0

      • set -e

      • [[ 0 == 0 ]]

      • git checkout master-temp-1603296151044
        Already on 'master-temp-1603296151044'

      • git log -n 1
        commit b0410f6dc978823717c69b05be2587465e878b5a
        Author: yichenroy <yi-chen.tsai@liferay.com>
        Date: Tue Oct 20 10:02:44 2020 -0700

        LRCI-1643 Move 'environments' upstream suite away from private branches

      • echo 'Exit shell.'
        Exit shell.
        [liferay-jenkins-ee] $ /bin/bash -e -x /tmp/jenkins7618613223207123578.sh

      • echo 'Execute: build-test-portal-acceptance-pullrequest-batch.sh stop-current-job'
        Execute: build-test-portal-acceptance-pullrequest-batch.sh stop-current-job

      • commands/build-test-portal-acceptance-pullrequest-batch.sh stop-current-job
        Execute: ant -f commands/build-common.xml run-ant-target -Dant.file.name=build-test-portal-acceptance-pullrequest-batch.xml -Dant.target=stop-current-job -lib commands/../lib/jenkins
        Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006c0000000, 805306368, 0) failed; error='Cannot allocate memory' (errno=12)

      There is insufficient memory for the Java Runtime Environment to continue.

      Native memory allocation (mmap) failed to map 805306368 bytes for committing reserved memory.

      An error report file with more information is saved as:

      /opt/dev/projects/github/liferay-jenkins-ee/hs_err_pid18024.log

      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - [ERROR] - The given properties file path '/opt/dev/projects/github/liferay-jenkins-ee/stop.properties' doesn't exist.
      [EnvInject] - [ERROR] - Missing file path was resolved from pattern '${WORKSPACE}/stop.properties' .
      [EnvInject] - [ERROR] - Problems occurs on injecting env vars as a build step: java.io.IOException: The given properties file path '/opt/dev/projects/github/liferay-jenkins-ee/stop.properties' doesn't exist.
      [description-setter] Description set: ${BUILD_DESCRIPTION}
      Build step 'Execute Scripts' marked build as failure
      Finished: FAILURE

For upstream results, click here.

@liferay-forms
Copy link
Collaborator

Hey @marcosapmf, can you please check if these failures are related to your changes? Thanks

@liferay-continuous-integration
Copy link
Collaborator

@carolmariaabb
Copy link
Owner

carolmariaabb commented Oct 21, 2020

@marcosapmf to corrigindo os testes de poshi que falharam por causa do option ID que não ta mais la.

@carolmariaabb
Copy link
Owner

Just started reviewing :)

:octocat: Sent from GH.

@carolmariaabb
Copy link
Owner

Pull request submitted to carolmariaabb#239.

:octocat: Sent from GH.

@carolmariaabb
Copy link
Owner

Closed #236.

:octocat: Sent from GH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants