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

KogitoAddOnMonitoringPrometheusProcessor broken on 1.27.0 Release

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.28.0.Final
    • 1.27.0.Final
    • Core Engine
    • None

    Description

      During a PR for kogito-SWF the CI fail with the following error

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.12.0.Final:build (default) on project dmn-drools-quarkus-metrics: Failed to build quarkus application: java.lang.IllegalArgumentException: Build step 'org.kie.kogito.monitoring.prometheus.quarkus.deployment.KogitoAddOnMonitoringPrometheusProcessor#verifyCapabilities' does not produce any build item and thus will never get executed. Either change the return type of the method to a build item type, add a parameter of type BuildProducer<[some build item type]>/Consumer<[some build item type]>, or annotate the method with @Produces. Use @Produce(EmptyBuildItem.class) if you want to always execute this step. -> [Help 1]
      

      this is originated by this change https://github.com/kiegroup/kogito-runtimes/pull/2388

      How to reproduce, clone kogito-examples and run mvn -Dquarkus.platform.artifact-id=quarkus-universe-bom clean install

      [ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:2.12.0.Final:build (default) on project dmn-drools-quarkus-metrics: Failed to build quarkus application: java.lang.IllegalArgumentException: Build step 'org.kie.kogito.monitoring.prometheus.quarkus.deployment.KogitoAddOnMonitoringPrometheusProcessor#verifyCapabilities' does not produce any build item and thus will never get executed. Either change the return type of the method to a build item type, add a parameter of type BuildProducer<[some build item type]>/Consumer<[some build item type]>, or annotate the method with @Produces. Use @Produce(EmptyBuildItem.class) if you want to always execute this step. -> [Help 1]
      
      

      Seems the 1.27 download some 1.26 version files

      [INFO] Building Kogito Example :: DMN Metrics Quarkus 1.27.0.Final
      [INFO] --------------------------------[ jar ]---------------------------------
      Downloading from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/kogito-quarkus-rules/1.26.0.Final/kogito-quarkus-rules-1.26.0.Final.pom
      Downloaded from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/kogito-quarkus-rules/1.26.0.Final/kogito-quarkus-rules-1.26.0.Final.pom (2.9 kB at 12 kB/s)
      Downloading from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/kogito-quarkus-rules-extension/1.26.0.Final/kogito-quarkus-rules-extension-1.26.0.Final.pom
      Downloaded from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/kogito-quarkus-rules-extension/1.26.0.Final/kogito-quarkus-rules-extension-1.26.0.Final.pom (843 B at 3.5 kB/s)
      Downloading from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/quarkus-extensions/1.26.0.Final/quarkus-extensions-1.26.0.Final.pom
      Downloaded from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/quarkus-extensions/1.26.0.Final/quarkus-extensions-1.26.0.Final.pom (2.3 kB at 9.3 kB/s)
      Downloading from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/quarkus/1.26.0.Final/quarkus-1.26.0.Final.pom
      Downloaded from jboss-public-repository-group: https://repository.jboss.org/nexus/content/groups/public/org/kie/kogito/quarkus/1.26.0.Final/quarkus-1.26.0.Final.pom (1.3 kB at 5.4 kB/s)
      

      The fix is here https://github.com/kiegroup/kogito-runtimes/pull/2442

      Attachments

        Activity

          People

            jcarvaja@redhat.com Jose Carvajal Hilario
            mdessi-1 Massimiliano Dessi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: