Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30485

Fix TestPictureResize systematic failure in 10.10 T&P

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF49
    • Component/s: CI/CD, Tests

      Description

      org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizer
      org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizerForDoc

      java.lang.AssertionError
      	at org.junit.Assert.fail(Assert.java:86)
      	at org.junit.Assert.assertTrue(Assert.java:41)
      	at org.junit.Assert.assertNotNull(Assert.java:712)
      	at org.junit.Assert.assertNotNull(Assert.java:722)
      	at org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizer(TestPictureResize.java:86)
      
      Standard Output
      2021-06-21 13:50:23,765 [main] ERROR [IMImageUtils$ImageMagickCaller] ImageMagick failed on command: resizer
      org.nuxeo.ecm.platform.commandline.executor.api.CommandException: Error code 1 after 0.71s for command: convert -define registry:temporary-path=#{nuxeo.tmp.dir} -quiet -background white -flatten -depth #{targetDepth} #{inputFilePath}[0] jpg:- | convert - -resize #{targetWidth}x#{targetHeight} #{outputFilePath}, parameters: java.io.tmpdir=/opt/jenkins/workspace/TestAndPush/ondemand-testandpush-ataillefer-10.10/nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/target/nxruntime-main-5244486568975720301.tmp/tmp, targetHeight=300.0, nuxeo.tmp.dir=/opt/jenkins/workspace/TestAndPush/ondemand-testandpush-ataillefer-10.10/nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/target/nxruntime-main-5244486568975720301.tmp/tmp, inputFilePath=/opt/jenkins/workspace/TestAndPush/ondemand-testandpush-ataillefer-10.10/nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/target/test-classes/images/test.jpg, targetDepth=0, targetWidth=150.0, outputFilePath=/opt/jenkins/workspace/TestAndPush/ondemand-testandpush-ataillefer-10.10/nuxeo-features/nuxeo-platform-imaging/nuxeo-platform-imaging-core/target/nxruntime-main-5244486568975720301.tmp/tmp/nuxeoImageTarget4942899861740800917.jpg
      output: 
      	at org.nuxeo.ecm.platform.commandline.executor.api.ExecResult.<init>(ExecResult.java:62) ~[nuxeo-platform-commandline-executor-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.commandline.executor.service.executors.ShellExecutor.exec(ShellExecutor.java:98) ~[nuxeo-platform-commandline-executor-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.commandline.executor.service.CommandLineExecutorComponent.execCommand(CommandLineExecutorComponent.java:190) ~[nuxeo-platform-commandline-executor-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.picture.magick.utils.ImageResizer.resize(ImageResizer.java:69) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$2.callImageMagick(IMImageUtils.java:157) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils$ImageMagickCaller.call(IMImageUtils.java:67) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.core.im.IMImageUtils.resize(IMImageUtils.java:159) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.ImagingComponent.resize(ImagingComponent.java:111) ~[classes/:?]
      	at org.nuxeo.ecm.platform.picture.convert.ResizePictureConverter.convert(ResizePictureConverter.java:65) ~[nuxeo-platform-imaging-convert-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.picture.operation.PictureResize.run(PictureResize.java:106) ~[classes/:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.doInvoke(InvokableMethod.java:174) ~[nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.InvokableMethod.invoke(InvokableMethod.java:179) ~[nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$OperationMethod.invoke(OperationChainCompiler.java:151) ~[nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.lambda$invoke$0(OperationChainCompiler.java:218) ~[nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.OperationContext.call(OperationContext.java:314) [nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.OperationContext.callWithChainParameters(OperationContext.java:279) [nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationChainCompiler$CompiledChainImpl.invoke(OperationChainCompiler.java:215) [nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.run(OperationServiceImpl.java:115) [nuxeo-automation-core-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.ecm.platform.picture.core.test.TestPictureResize.testResizer(TestPictureResize.java:84) [test-classes/:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12]
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12]
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeMethodRunStatement.evaluate(FeaturesRunner.java:285) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$BeforeSetupStatement.evaluate(FeaturesRunner.java:314) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterMethodRunStatement.evaluate(FeaturesRunner.java:345) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$AfterTeardownStatement.evaluate(FeaturesRunner.java:362) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:440) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.RuntimeDeployment$DeploymentStatement.evaluate(RuntimeDeployment.java:326) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.test.runner.FeaturesRunner$RulesFactory$1.evaluate(FeaturesRunner.java:440) [nuxeo-runtime-test-10.10-HF49-SNAPSHOT.jar:?]
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20) [junit-4.12.jar:4.12]
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.