Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21990

Libreoffice docker tests failing to execute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 16.1.0
    • Test Framework
    • None
    • Mac M1 (ARM)
    • Unknown

    Description

      On mac M1, locally:

      [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 87.43 s <<< FAILURE! -- in org.xwiki.officeimporter.test.ui.AllIT
      [ERROR] org.xwiki.officeimporter.test.ui.AllIT -- Time elapsed: 87.43 s <<< ERROR!
      java.lang.RuntimeException: Error setting up the XWiki testing environment
              at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.raiseException(XWikiDockerExtension.java:539)
              at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.beforeAll(XWikiDockerExtension.java:111)
              at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
      Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=<resolving>, imagePullPolicy=DefaultPullPolicy(), imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@27570478)
              at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1364)
              at org.xwiki.test.docker.internal.junit5.DockerTestUtils.startContainer(DockerTestUtils.java:151)
              at org.xwiki.test.docker.internal.junit5.AbstractContainerExecutor.start(AbstractContainerExecutor.java:56)
              at org.xwiki.test.docker.internal.junit5.servletengine.ServletContainerExecutor.startContainer(ServletContainerExecutor.java:329)
              at org.xwiki.test.docker.internal.junit5.servletengine.ServletContainerExecutor.start(ServletContainerExecutor.java:156)
              at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.startServletEngine(XWikiDockerExtension.java:462)
              at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.beforeAllInternal(XWikiDockerExtension.java:179)
              at org.xwiki.test.docker.internal.junit5.XWikiDockerExtension.beforeAll(XWikiDockerExtension.java:109)
              ... 1 more
      Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c apt-get update && apt-get --no-install-recommends -y install curl wget unzip procps libxinerama1 libdbus-glib-1-2 libcairo2 libcups2 libsm6 libx11-xcb1 libnss3 && rm -rf /var/lib/apt/lists/* /var/cache/apt/* && wget --no-verbose -O /tmp/libreoffice.tar.gz $LIBREOFFICE_DOWNLOAD_URL && mkdir /tmp/libreoffice && tar -C /tmp/ -xvf /tmp/libreoffice.tar.gz && cd `ls -d /tmp/LibreOffice_${LIBREOFFICE_VERSION}*_Linux_x86-64_deb/DEBS` && dpkg -i *.deb && ln -fs `ls -d /opt/libreoffice*` /opt/libreoffice' returned a non-zero code: 1
              at com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:71)
              at com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)
              at org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:163)
              at org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:42)
              at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
              at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
              at org.testcontainers.shaded.com.google.common.util.concurrent.Futures$1.get(Futures.java:536)
              at org.testcontainers.images.RemoteDockerImage.getImageName(RemoteDockerImage.java:130)
              at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:67)
              at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:28)
              at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
              at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
              at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1362)
              ... 8 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: