Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5361

Native Image tests are not configured correctly on persistence addons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • None
    • Core Engine
    • 3
    • False
    • False
    • Undefined
    • 2021 Week 22-24 (from May 31)

      The surefire runner is misconfigured, causing the surefire tests to fail with the error :

      [ERROR] Error: --add-modules requires modules to be specified
      

      detailed (-X) output shows:

      [INFO] -------------------------------------------------------
      [INFO]  T E S T S
      [INFO] -------------------------------------------------------
      [DEBUG] Determined Maven Process ID 41115
      [DEBUG] Fork Channel [1] connection string 'pipe://1' for the implementation class org.apache.maven.plugin.surefire.extensions.LegacyForkChannel
      ...
      [DEBUG] Path to args file: /Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence/target/surefire/surefireargs18304580677320166598
      [DEBUG] args file content:
      --module-path
      "/Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence/target/integration-tests-quarkus-processes-kafka-persistence-2.0.0-SNAPSHOT.jar"
      --class-path
      ...
      --patch-module
      ="/Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence/target/test-classes"
      --add-exports
      /org.kie.kogito.it=ALL-UNNAMED
      --add-modules
      
      --add-reads
      =ALL-UNNAMED
      org.apache.maven.surefire.booter.ForkedBooter
      [DEBUG] Forking command line: /bin/sh -c cd /Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence && /Users/evacchi/.sdkman/candidates/java/21.1.0.r16-grl/bin/java @/Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence/target/surefire/surefireargs18304580677320166598 /Users/evacchi/Devel/rh/kogito/kogito-runtimes/integration-tests/integration-tests-quarkus-processes-persistence/integration-tests-quarkus-processes-kafka-persistence/target/surefire 2021-06-17T17-14-19_562-jvmRun1 surefire2215502540132174805tmp surefire_110577495752832462825tmp
      [DEBUG] Fork Channel [1] connected to the client.
      [ERROR] Error: --add-modules requires modules to be specified
      [DEBUG] Closing the fork 1 after not saying Good Bye.
      

              evacchi Edoardo Vacchi (Inactive)
              evacchi Edoardo Vacchi (Inactive)
              Marian Macik Marian Macik
              Marian Macik Marian Macik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: