Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9459

S2i build takes twice more time with CR3 than with CR2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.1
    • fuse-7.1
    • Fuse Online, Prod
    • None
    • % %
    • Hide

      build integration with cr3 build

      Show
      build integration with cr3 build

      This is how s2i build of the integration looks like in CR3: http://pastebin.test.redhat.com/642157 .

      Some change in CR3 brought up the integration build time by 100% :

      CR2 vs CR3 build times are ~25sec vs ~50sec minishift and ~4 minutes vs ~9 minutes on our openstack openshift

      In CR3 s2i image there are much more .lastUpdated files for each artifact:

      CR2:
      find /tmp/artifacts/m2/ -type f -name "*.lastUpdated" | wc -l
      166
      
      CR3:
      [jboss@e697de8dccbf ~]$ find /tmp/artifacts/m2/ -type f -name "*.lastUpdated" | wc -l
      1232
      

      I tried to create my own s2i image where I deleted all "_remote.repositories" and "*.lastUpdated" files from the local repository and there were no artifacts downloaded during the s2i build of the integration:

      Preparing to build docker.io/myproject/i-db-to-db-smoke-rest-test-1:d7bb6c64
      Copying sources from "/tmp/build/inputs" to "/tmp/upload/src"
      Clean build will be performed
      Running "assemble" in "docker.io/myproject/i-db-to-db-smoke-rest-test-1:d7bb6c64"
      ==================================================================
      Starting S2I Java Build .....
      S2I source build for Maven detected
      Using custom maven settings from /tmp/src/configuration/settings.xml
      Using MAVEN_OPTS '-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m'
      Found pom.xml ...
      Running 'mvn -Dmaven.repo.local=/tmp/artifacts/m2 -s /tmp/src/configuration/settings.xml package -DskipTests -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -Dmaven.source.skip=true -Djacoco.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true -Dpmd.skip=true -Dfabric8.skip=true -e -B '
      Apache Maven 3.3.9 (Red Hat 3.3.9-2.8)
      Maven home: /opt/rh/rh-maven33/root/usr/share/maven
      Java version: 1.8.0_181, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-3.b13.el7_5.x86_64/jre
      Default locale: en_US, platform encoding: ANSI_X3.4-1968
      OS name: "linux", version: "3.10.0-862.6.3.el7.x86_64", arch: "amd64", family: "unix"
      [INFO] Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Syndesis Integrations :: DB to DB smoke rest test 0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ project ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 3 resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ project ---
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to /tmp/src/target/classes
      [INFO]
      [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ project ---
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /tmp/src/src/test/resources
      [INFO]
      [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ project ---
      [INFO] No sources to compile
      [INFO]
      [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ project ---
      [INFO] Tests are skipped.
      [INFO]
      [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ project ---
      [INFO] Building jar: /tmp/src/target/project-0.1-SNAPSHOT.jar
      [INFO]
      [INFO] --- spring-boot-maven-plugin:1.5.13.RELEASE:repackage (default) @ project ---
      [INFO] Layout: ZIP
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 4.377 s
      [INFO] Finished at: 2018-09-06T14:13:49+00:00
      [INFO] Final Memory: 32M/109M
      [INFO] ------------------------------------------------------------------------
      Copying Maven artifacts from /tmp/src/target to /deployments ...
      Running: cp -v *.jar /deployments
      'project-0.1-SNAPSHOT.jar' -> '/deployments/project-0.1-SNAPSHOT.jar'
      Checking for fat jar archive...
      Found project-0.1-SNAPSHOT.jar...
      ... done
      Pushing image 172.30.1.1:5000/myproject/i-db-to-db-smoke-rest-test:1 ...
      Pushed 6/9 layers, 67% complete
      Pushed 7/9 layers, 78% complete
      Pushed 8/9 layers, 89% complete
      Pushed 9/9 layers, 100% complete
      Push successful
      

              dcoleman@redhat.com Darren Coleman
              avano@redhat.com Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: