apache / incubator-kie-kogito-images

Images for Kogito
http://kogito.kie.org
Apache License 2.0
23 stars 80 forks source link

Include SonataFlow Deployment Webapp #1734

Closed fantonangeli closed 8 months ago

fantonangeli commented 10 months ago

Fixes: https://github.com/apache/incubator-kie-issues/issues/1039

@ricardozanini, please help to test as this is my first PR in kogito-images

Many thanks for submitting your Pull Request :heart:!

Please make sure your PR meets the following requirements:

How to retest this PR or trigger a specific build: - (Re)run Jenkins tests Please add comment: Jenkins [test|retest] this
How to backport a pull request to a different branch? In order to automatically create a **backporting pull request** please add one or more labels having the following format `backport-`, where `` is the name of the branch where the pull request must be backported to (e.g., `backport-7.67.x` to backport the original PR to the `7.67.x` branch). > **NOTE**: **backporting** is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another. Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added. If something goes wrong, the author will be notified and at this point a manual backporting is needed. > **NOTE**: this automated backporting is triggered whenever a pull request on `main` branch is labeled or closed, but both conditions must be satisfied to get the new PR created.
ricardozanini commented 10 months ago

Thank you!! I'll test this PR today. Can you please add a bats test to verify if the POM.xml has the modifications you added to your script?

kie-ci3 commented 10 months ago

PR job #61 was: FAILURE Possible explanation: Pipeline failure or project build failure

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/61/display/redirect See console log:

Console Logs at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:623)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:852)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:158)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$GitCommandMasterToSlaveCallable.call(RemoteGitImpl.java:151)
at hudson.remoting.UserRequest.perform(UserRequest.java:211)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:377)
at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to builds48
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1784)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:1000)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:143)
at jdk.internal.reflect.GeneratedMethodAccessor1498.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:129)
at com.sun.proxy.$Proxy228.execute(Unknown Source)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1226)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1309)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
[Pipeline] deleteDir
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/61/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
ricardozanini commented 10 months ago

Also, we can have a script here to update this version in the YAML file (once you add the env): https://github.com/apache/incubator-kie-kogito-images/blob/main/scripts/update-repository.py#L32

ricardozanini commented 10 months ago

@fantonangeli one last thing, can you please rename your fork?


Cloning repository https://github.com/fantonangeli/incubator-kie-kogito-images.git

 > git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-images.build-and-test/incubator-kie-kogito-images/githubscm-prepare-commit-incubator-kie-kogito-images # timeout=10

Fetching upstream changes from https://github.com/fantonangeli/incubator-kie-kogito-images.git

 > git --version # timeout=10

 > git --version # 'git version 2.34.1'

using GIT_ASKPASS to set credentials asf-ci token

 > git fetch --tags --force --progress -- https://github.com/fantonangeli/incubator-kie-kogito-images.git +refs/heads/*:refs/remotes/origin/* # timeout=10

ERROR: Error cloning remote repo 'origin'

hudson.plugins.git.GitException: Command "git fetch --tags --force --progress -- https://github.com/fantonangeli/incubator-kie-kogito-images.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:

stdout: 

stderr: remote: Repository not found.

fatal: repository 'https://github.com/fantonangeli/incubator-kie-kogito-images.git/' not found
kie-ci3 commented 10 months ago

PR job #73 was: FAILURE Possible explanation: Pipeline failure or project build failure

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/73/display/redirect See console log:

Console Logs [Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-data-index-ephemeral: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-jobs-service-allinone: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-jit-runner: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-devmode: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-swf-devmode seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-data-index-postgresql: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-management-console: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-s2i-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: SUCCESS
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/73/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
ricardozanini commented 10 months ago

@fantonangeli wondering why there are problems with the task UI image:

https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-image/1028/console

rgdoliveira commented 10 months ago

@ricardozanini @fantonangeli it seems bat tests are broken, and IIUC the problem is because it uses https://github.com/bats-core/bats-core.git and probably something changed there.

I've created PR https://github.com/apache/incubator-kie-kogito-images/pull/1738 trying to fix them.

ricardozanini commented 9 months ago

@fantonangeli can you please rebase?

fantonangeli commented 9 months ago

fantonangeli can you please rebase?

@ricardozanini done

kie-ci3 commented 9 months ago

PR job #77 was: UNSTABLE Possible explanation: This should be test failures

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/77/display/redirect See console log:

Console Logs [Pipeline] unstable
WARNING: Tests on kogito-runtime-jvm seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-data-index-ephemeral: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-data-index-ephemeral seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-data-index-postgresql: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-data-index-postgresql seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-swf-builder seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-devmode: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-swf-devmode seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-s2i-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-s2i-builder seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/77/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
kie-ci3 commented 9 months ago

PR job #78 was: UNSTABLE Possible explanation: This should be test failures

Please look here: https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/78/display/redirect See console log:

Console Logs [Pipeline] unstable
WARNING: Tests on kogito-base-builder seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-runtime-native: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-runtime-native seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-jobs-service-allinone: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-jobs-service-allinone seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-swf-builder seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-swf-devmode: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-swf-devmode seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
Build KIE » kogito » main » pullrequest » kogito-images.build-image PR apache/incubator-kie-kogito-images#1734 - kogito-s2i-builder: https://github.com/apache/incubator-kie-kogito-images/pull/1734 completed: UNSTABLE
[Pipeline] unstable
WARNING: Tests on kogito-s2i-builder seems to have failed
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // parallel
[Pipeline] }
[Pipeline] // dir
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Declarative: Post Actions)
[Pipeline] script
[Pipeline] {
[Pipeline] sh
+ wget --no-check-certificate -qO - 'https://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-images.build-and-test/78/api/json?depth=0'
[Pipeline] readJSON
[Pipeline] sh
tiagobento commented 8 months ago

Please hold merging this because of https://lists.apache.org/thread/nknm6j641qk2c7cl621tsy3fy98tsc69

tiagobento commented 8 months ago

As we agreed, we're going to proceed temporarily moving kogito-swf-{builder,devmode} images to kie-tools, for Apache KIE 10. I'm going to close this PR and move the issue to kie-issues, so we can track it at the KIE level, not only on this repo. Please @fantonangeli send a PR to kie-tools once https://github.com/apache/incubator-kie-issues/issues/1001 is done.

ricardozanini commented 8 months ago

@tiagobento the copy is temporary and once we settle the process, the images/operator will be the last in the stream, so this PR is still valid.

tiagobento commented 8 months ago

@ricardozanini I don't think there's an agreement as to what's going to happen after the 10.0.0 release yet. Anyway, I closed this PR to not distract us from the places that matter for 10.0.0, but feel free to reopen it as you see fit.