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

Behave tests with native builds and persistene enabled fail with to check files under ${KOGITO_HOME}/bin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial Trivial
    • 0.16.0
    • None
    • None
    • None
    • Hide

      can be reproduced with:

       s2i build --loglevel=5 --pull-policy if-not-present -e 'MAVEN_MIRROR_URL=http://nexus.apps.spolti.cloud/nexus/content/groups/public/' --context-dir=process-quarkus-example -r=master -E "/tmp/tmp8vxi5vtz" https://github.com/kiegroup/kogito-examples.git quay.io/kiegroup/kogito-quarkus-ubi8-s2i:0.10.0-rc1 integ-quay.io/kiegroup/kogito-quarkus-ubi8-s2i:0.10.0-rc1  --runtime-image=quay.io/kiegroup/kogito-quarkus-ubi8:latest
      

      Or by running the scenario described on the issue.

      Show
      can be reproduced with: s2i build --loglevel=5 --pull-policy if -not-present -e 'MAVEN_MIRROR_URL=http: //nexus.apps.spolti.cloud/nexus/content/groups/ public /' --context-dir=process-quarkus-example -r=master -E "/tmp/tmp8vxi5vtz" https://github.com/kiegroup/kogito-examples.git quay.io/kiegroup/kogito-quarkus-ubi8-s2i:0.10.0-rc1 integ-quay.io/kiegroup/kogito-quarkus-ubi8-s2i:0.10.0-rc1 --runtime-image=quay.io/kiegroup/kogito-quarkus-ubi8:latest Or by running the scenario described on the issue.

      On kogito-quarkus-ubi8-s2i feature, the scenario "Scenario: Verify if the s2i build is finished as expected performing a native build with persistence enabled" is failing in the following steps:

      file /home/kogito/bin/process-quarkus-example-runner should exist
       s2i build log should contain '/home/kogito/bin/demo.orders.proto' -> '/home/kogito/data/protobufs/demo.orders.proto'
      s2i build log should contain '/home/kogito/bin/persons.proto' -> '/home/kogito/data/protobufs/persons.proto'
      

      This can be caused due a permission error. After s2i build the bin directory has its owner is changed from:

      • kogito:root to 1000:1000

      It does not break the image utilization but looks like it is leading the test to fail

            rhn-support-fspolti Filippe Spolti
            rhn-support-fspolti Filippe Spolti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: