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

COMMERCE-2369 Shipment Refactor (from Alec) #1791

Closed
wants to merge 865 commits into from

Conversation

ethanbustad
Copy link
Contributor

riccardo-alberti and others added 30 commits November 29, 2019 18:23
@liferay-continuous-integration
Copy link
Member

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.

@ethanbustad
Copy link
Contributor Author

ci:test

@liferay-continuous-integration
Copy link
Member

Validation PASSED. Running batch tests.

Build Time: 32 minutes 48 seconds 857 ms

Base Branch:

Branch Name: 7.1.x
Branch GIT ID: d81ea66aa0cd49e165b51bb6a7fa126e1a6396aa

Task Summary:
  • subrepository-compile-jdk8 - ✔️
  • subrepository-semantic-versioning-jdk8 - ✔️
  • subrepository-pmd-jdk8 - ✔️
  • subrepository-source-format-jdk8 - ✔️
  • central-requirements-jdk8/subrepository-unit-jdk8 - ✔️
For full console, click here.

Test Results:

22 Tests Passed.
0 Tests Failed.

For all test results, click here.

@liferay-continuous-integration
Copy link
Member

❌ ci:test:default - 11 out of 13 jobs passed in 2 hours 24 minutes 40 seconds 904 ms

Click here for more details.

Base Branch:

Branch Name: 7.1.x
Branch GIT ID: d81ea66aa0cd49e165b51bb6a7fa126e1a6396aa

ci:test:default - 11 out of 13 jobs PASSED
11 Successful Jobs:
For more details click here.

Failures (upstream comparison is not available):

  1. test-subrepository-acceptance-pullrequest-batch(7.1.x)/subrepository-integration-mysql57-jdk8
    Job Results:

    1948 Tests Passed.
    5 Tests Failed.

    1. AXIS_VARIABLE=2,label_exp=!master #827
      1. CommerceVirtualOrderItemLocalServiceTest.testAddCommerceVirtualOrderItem
        java.lang.AssertionError: 
        [
        SCENARIO Add a virtual order item
        GIVEN An order item
        WHEN An order is paid
        THEN I should be able to see the created virtual order item
        ]
        [
        Message: expected:<null> but was:<2019-12-11 20:02:32.526>
        ]
        	at org.junit.Assert.fail(Assert.java:88)
        	at org.junit.Assert.failNotEquals(Assert.java:834)
        	at org.junit.Assert.assertEquals(Assert.java:118)
        	at org.junit.Assert.assertEquals(Assert.java:144)
        	at com.liferay.commerce.product.type.virtual.order.service.test.CommerceVirtualOrderItemLocalServiceTest.testAddCommerceVirtualOrderItem(CommerceVirtualOrderItemLocalServiceTest.java:175)
        	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 com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
        	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
        	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
        	at com.liferay.portal.kernel.test.rule.BaseTestRule$1.evaluate(BaseTestRule.java:55)
        	at com.liferay.portal.kernel.test.rule.BaseTestRule$...
      2. CommerceShipmentItemTest.testAddCommerceShipmentItem
        com.liferay.commerce.exception.CommerceOrderValidatorException
        	at com.liferay.commerce.service.impl.CommerceOrderItemLocalServiceImpl.validate(CommerceOrderItemLocalServiceImpl.java:756)
        	at com.liferay.commerce.service.impl.CommerceOrderItemLocalServiceImpl.addCommerceOrderItem(CommerceOrderItemLocalServiceImpl.java:104)
        	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 com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
        	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:51)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
        	at com.liferay.portal.spring.aop.ServiceBe...
      3. CommerceShipmentItemTest.testAddCommerceShipmentItemOnShippedShipment
        com.liferay.commerce.exception.CommerceOrderValidatorException
        	at com.liferay.commerce.service.impl.CommerceOrderItemLocalServiceImpl.validate(CommerceOrderItemLocalServiceImpl.java:756)
        	at com.liferay.commerce.service.impl.CommerceOrderItemLocalServiceImpl.addCommerceOrderItem(CommerceOrderItemLocalServiceImpl.java:104)
        	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 com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:153)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:203)
        	at com.liferay.portal.spring.transaction.DefaultTransactionExecutor.execute(DefaultTransactionExecutor.java:94)
        	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
        	at com.liferay.portal.service.ServiceContextAdvice.invoke(ServiceContextAdvice.java:51)
        	at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:130)
        	at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:55)
        	at com.liferay.portal.spring.aop.ServiceBe...
      4. ...

@ethanbustad
Copy link
Contributor Author

ci:test

@liferay-continuous-integration
Copy link
Member

Validation PASSED. Running batch tests.

Build Time: 40 minutes 2 seconds 306 ms

Base Branch:

Branch Name: 7.1.x
Branch GIT ID: 499c441afe2ece76c1a9550e06ae3e211d023373

Task Summary:
  • subrepository-compile-jdk8 - ✔️
  • subrepository-semantic-versioning-jdk8 - ✔️
  • subrepository-pmd-jdk8 - ✔️
  • subrepository-source-format-jdk8 - ✔️
  • central-requirements-jdk8/subrepository-unit-jdk8 - ✔️
For full console, click here.

Test Results:

22 Tests Passed.
0 Tests Failed.

For all test results, click here.

@liferay-continuous-integration
Copy link
Member

❌ ci:test:default - 11 out of 13 jobs passed in 2 hours 17 minutes 8 seconds 221 ms

Click here for more details.

Base Branch:

Branch Name: 7.1.x
Branch GIT ID: 499c441afe2ece76c1a9550e06ae3e211d023373

ci:test:default - 11 out of 13 jobs PASSED
11 Successful Jobs:
For more details click here.

Failures (upstream comparison is not available):

  1. test-subrepository-acceptance-pullrequest-batch(7.1.x)/subrepository-integration-mysql57-jdk8
    Job Results:

    1948 Tests Passed.
    5 Tests Failed.

    1. AXIS_VARIABLE=2,label_exp=!master #828
      1. CommerceShipmentItemTest.testAddCommerceShipmentItem
        java.lang.AssertionError: 
        [
        SCENARIO Create a Shipment Item for an Order
        GIVEN A Group
         AND An Order Item
         AND A CPInstance
        WHEN A Shipment Item is added to a Shipment
        THEN That Shipment should contain the Shipment Item
        ]
        [
        Message: {level=ERROR, loggerName=com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl, message=com.liferay.commerce.exception.NoSuchOrderItemException: No CommerceOrderItem exists with the primary key 88645
        ]
        	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        	at org.apache.log4j.Category.callAppenders(Category.java:206)
        	at org.apache.log4j.Category.forcedLog(Category.java:391)
        	at org.apache.log4j.Category.log(Category.java:856)
        	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        	at com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl.deleteCommerceShipmentItem(CommerceShipmentItemLocalServiceImpl.java:116)
        	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 com.liferay.porta...
      2. CommerceShipmentItemTest.testAddCommerceShipmentItemOnShippedShipment
        java.lang.AssertionError: 
        [
        SCENARIO Try to add a new Shipment Item after a shipment is marked as shipped
        GIVEN A Group
         AND A ShipmentItem
         AND A CPInstance
        WHEN A Shipment is marked as shipped
        THEN Shipment Items should not be able to be added
        ]
        [
        Message: {level=ERROR, loggerName=com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl, message=com.liferay.commerce.exception.NoSuchOrderItemException: No CommerceOrderItem exists with the primary key 88690
        ]
        	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        	at org.apache.log4j.Category.callAppenders(Category.java:206)
        	at org.apache.log4j.Category.forcedLog(Category.java:391)
        	at org.apache.log4j.Category.log(Category.java:856)
        	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        	at com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl.deleteCommerceShipmentItem(CommerceShipmentItemLocalServiceImpl.java:116)
        	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:...
      3. CommerceShipmentItemTest.testDeleteCommerceShipmentItemOnShippedShipment
        java.lang.AssertionError: 
        [
        SCENARIO Try to delete a Shipment Item after a shipment is marked as shipped
        GIVEN A Group
         AND A ShipmentItem
         AND A CPInstance
        WHEN A Shipment is marked as shipped
        THEN Shipment Items should not be able to be added
        ]
        [
        Message: {level=ERROR, loggerName=com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl, message=com.liferay.commerce.exception.NoSuchOrderItemException: No CommerceOrderItem exists with the primary key 88752
        ]
        	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        	at org.apache.log4j.Category.callAppenders(Category.java:206)
        	at org.apache.log4j.Category.forcedLog(Category.java:391)
        	at org.apache.log4j.Category.log(Category.java:856)
        	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        	at com.liferay.commerce.service.impl.CommerceShipmentItemLocalServiceImpl.deleteCommerceShipmentItem(CommerceShipmentItemLocalServiceImpl.java:116)
        	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:4...
      4. ...

@marco-leo
Copy link
Member

@alecsloan This looks like a real fail

@ethanbustad
Copy link
Contributor Author

Forwarded to #1804.

@ethanbustad ethanbustad deleted the COMMERCE-2369-alec branch January 31, 2020 19:05
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.

None yet