Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KOGITO-9625: Upgrade quarkus-openapi-generator to 1.3.8 #3130

Merged
merged 3 commits into from
Jul 31, 2023

Conversation

manstis
Copy link
Contributor

@manstis manstis commented Jul 24, 2023

Many thanks for submitting your Pull Request ❤️!

Please make sure that your PR meets the following requirements:

See https://issues.redhat.com/browse/KOGITO-9625

  • You have read the contributors guide
  • Your code is properly formatted according to this configuration
  • Pull Request title is properly formatted: KOGITO-XYZ Subject
  • Pull Request title contains the target branch if not targeting main: [0.9.x] KOGITO-XYZ Subject
  • Pull Request contains link to the JIRA issue
  • Pull Request contains link to any dependent or related Pull Request
  • Pull Request contains description of the issue
  • Pull Request does not include fixes for issues other than the main ticket
How to replicate CI configuration locally?

Build Chain tool does "simple" maven build(s), the builds are just Maven commands, but because the repositories relates and depends on each other and any change in API or class method could affect several of those repositories there is a need to use build-chain tool to handle cross repository builds and be sure that we always use latest version of the code for each repository.

build-chain tool is a build tool which can be used on command line locally or in Github Actions workflow(s), in case you need to change multiple repositories and send multiple dependent pull requests related with a change you can easily reproduce the same build by executing it on Github hosted environment or locally in your development environment. See local execution details to get more information about it.

How to retest this PR or trigger a specific build:
  • for pull request checks
    Please add comment: Jenkins retest this

  • for a specific pull request check
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] tests

  • for quarkus branch checks
    Run checks against Quarkus current used branch
    Please add comment: Jenkins run quarkus-branch

  • for a quarkus branch specific check
    Run checks against Quarkus current used branch
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] quarkus-branch

  • for quarkus main checks
    Run checks against Quarkus main branch
    Please add comment: Jenkins run quarkus-main

  • for a specific quarkus main check
    Run checks against Quarkus main branch
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] quarkus-main

  • for quarkus lts checks
    Run checks against Quarkus lts branch
    Please add comment: Jenkins run quarkus-lts

  • for a specific quarkus lts check
    Run checks against Quarkus lts branch
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] quarkus-lts

  • for native checks
    Run native checks
    Please add comment: Jenkins run native

  • for a specific native check
    Run native checks
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] native

  • for native lts checks
    Run native checks against quarkus lts branch
    Please add comment: Jenkins run native-lts

  • for a specific native lts check
    Run native checks against quarkus lts branch
    Please add comment: Jenkins (re)run [kogito-runtimes|kogito-apps|kogito-examples] native-lts

  • Full Kogito testing (with cloud images and operator BDD testing)
    Please add comment: Jenkins run BDD
    This check should be used only if a big change is done as it takes time to run, need resources and one full BDD tests check can be done at a time ...

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-<branch-name>, where <branch-name> 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.

Quarkus-3 PR check is failing ... what to do ? The Quarkus 3 check is applying patches from the `.ci/environments/quarkus-3/patches`.

The first patch, called 0001_before_sh.patch, is generated from Openrewrite .ci/environments/quarkus-3/quarkus3.yml recipe. The patch is created to speed up the check. But it may be that some changes in the PR broke this patch.
No panic, there is an easy way to regenerate it. You just need to comment on the PR:

jenkins rewrite quarkus-3

and it should, after some minutes (~20/30min) apply a commit on the PR with the patch regenerated.

Other patches were generated manually. If any of it fails, you will need to manually update it... and push your changes.

Copy link
Contributor

@tiagodolphine tiagodolphine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @hbelmiro can you confirm we can upgrade it, we are having some issues with oneOf on openapi.

@hbelmiro
Copy link
Contributor

Yes, we can upgrade it.
@tiagodolphine, shouldn't these upgrades be automatically done by dependabot? I thought they were, that's why I rarelly upgrade quarkus-openapi-generator myself.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 24, 2023

(tests) - kogito-runtimes job #2914 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2914/display/redirect

Test results:

  • PASSED: 3351
  • FAILED: 5

Those are the test failures:

org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testFindByIdReadMode
expected: 5
but was: 0
org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testOpenApi io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testGrpc io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi2_0 No requests exactly matched. Most similar request was: expected:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id [matches] : 12345
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
> but was:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id: Basic amF2aWVyaXRvOmZ1bGFuaXRv
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
>
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi3_0 No requests exactly matched. Most similar request was: expected:<
POST
/

X-Client-Id [matches] : 12345
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
> but was:<
POST
/

X-Client-Id: Bearer mytoken,Bearer mytoken,Bearer
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
>

@manstis
Copy link
Contributor Author

manstis commented Jul 24, 2023

Jenkins (re)run kogito-runtimes.

@manstis
Copy link
Contributor Author

manstis commented Jul 24, 2023

Jenkins (re)run kogito-runtimes tests

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 24, 2023

(tests) - kogito-runtimes job #2916 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2916/display/redirect

Test results:

  • PASSED: 3351
  • FAILED: 5

Those are the test failures:

org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testFindByIdReadMode
expected: 5
but was: 0
org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testOpenApi io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testGrpc io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi2_0 No requests exactly matched. Most similar request was: expected:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id [matches] : 12345
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
> but was:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id: Basic amF2aWVyaXRvOmZ1bGFuaXRv
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
>
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi3_0 No requests exactly matched. Most similar request was: expected:<
POST
/

X-Client-Id [matches] : 12345
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
> but was:<
POST
/

X-Client-Id: Bearer mytoken,Bearer mytoken,Bearer
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
>

@manstis
Copy link
Contributor Author

manstis commented Jul 24, 2023

Jenkins (re)run kogito-runtimes tests

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 24, 2023

(tests) - kogito-runtimes job #2917 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2917/display/redirect

Test results:

  • PASSED: 3352
  • FAILED: 4

Those are the test failures:

org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testOpenApi io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.serverless.workflow.deployment.livereload.LiveReloadProcessorTest.testGrpc io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step org.kie.kogito.quarkus.serverless.workflow.deployment.ServerlessWorkflowDevServicesProcessor#startDataIndexDevService threw an exception: java.lang.RuntimeException: Failed to start Kogito Data Index Dev Services
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:121)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:909)
at io.quarkus.builder.BuildContext.run(BuildContext.java:281)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2449)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1478)
at java.base/java.lang.Thread.run(Thread.java:829)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:195)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndex(AbstractDevServicesProcessor.java:200)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.startDataIndexDevService(AbstractDevServicesProcessor.java:111)
... 11 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:349)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:322)
at org.kie.kogito.quarkus.workflow.deployment.AbstractDevServicesProcessor.lambda$startDataIndex$1(AbstractDevServicesProcessor.java:191)
... 14 more
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:88)
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:334)
... 16 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:344)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 17 more
Caused by: java.lang.IllegalStateException: Container exited with code 1
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:514)
... 19 more
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi2_0 No requests exactly matched. Most similar request was: expected:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id [matches] : 12345
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
> but was:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id: Basic amF2aWVyaXRvOmZ1bGFuaXRv
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
>
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi3_0 No requests exactly matched. Most similar request was: expected:<
POST
/

X-Client-Id [matches] : 12345
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
> but was:<
POST
/

X-Client-Id: Bearer mytoken,Bearer mytoken,Bearer
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
>

@hbelmiro
Copy link
Contributor

@manstis https://github.com/kiegroup/kogito-runtimes/pull/3131 fixes those failing tests in LiveReloadProcessorTest.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 25, 2023

(tests) - kogito-quarkus-examples job #1267 was: FAILURE
Possible explanation: Pipeline failure or project build failure

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-examples -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-quarkus-examples/1267/display/redirect
See console log:

Console Logs GitHub pull request #3130 of commit ba0e0ca, no merge conflicts.
Setting status of ba0e0ca to PENDING with url https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-quarkus-examples/1267/display/redirect and message: 'Build started.'
Using context: (build) kogito-quarkus-examples
Checking out git https://github.com/kiegroup/kogito-pipelines.git into /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-quarkus-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92 to read .ci/jenkins/Jenkinsfile.buildchain
The recommended git tool is: NONE
using credential kie-ci3
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-quarkus-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Commit message: "Add release branch 1.42.x after cut-off"
> git rev-list --no-walk 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Loading library jenkins-pipeline-shared-libraries@main
Attempting to resolve main from remote references...
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh1832900337992169471.key
Verifying host key using manually-configured host key entries
> git ls-remote -h -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Found match: refs/heads/main revision 154102e8350a7d952396c3a28edb983df906baec
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential kie-ci-user-key
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-quarkus-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kiegroup/jenkins-pipeline-shared-libraries
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-quarkus-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb@tmp/jenkins-gitclient-ssh3217802885615479830.key
Verifying host key using manually-configured host key entries
> git fetch --no-tags --force --progress -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 154102e8350a7d952396c3a28edb983df906baec (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 154102e8350a7d952396c3a28edb983df906baec # timeout=10
Commit message: "Add `githubscm.deleteReleaseAndTag` method (#291)"
> git rev-list --no-walk 154102e8350a7d952396c3a28edb983df906baec # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘kie-rhel8&&docker&&kie-mem16g&&!built-in’ are offline
Running on rhos-01-kie-rhel8-xlarge-docker-909 in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential kie-ci3
Cloning the remote Git repository
Cloning repository https://github.com/kiegroup/kogito-pipelines.git
> git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
Commit message: "Add release branch 1.42.x after cut-off"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
[2023-07-25T07:14:01.858Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[2023-07-25T07:14:01.968Z] Installing NodeJS from /var/jenkins_home/caches/nodejs/LINUX/amd64/16.2.0.tar.gz to /home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs-16.2.0 on rhos-01-kie-rhel8-xlarge-docker-909
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Initialize)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:04.233Z] + printenv
[Pipeline] archiveArtifacts
[2023-07-25T07:14:04.306Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check space before build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] dir
[2023-07-25T07:14:05.055Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:05.094Z] [INFO] space left on the machine
[Pipeline] sh
[2023-07-25T07:14:05.381Z] + df -h
[2023-07-25T07:14:05.382Z] Filesystem Size Used Avail Use% Mounted on
[2023-07-25T07:14:05.382Z] devtmpfs 7.7G 0 7.7G 0% /dev
[2023-07-25T07:14:05.382Z] tmpfs 7.7G 0 7.7G 0% /dev/shm
[2023-07-25T07:14:05.382Z] tmpfs 7.7G 17M 7.7G 1% /run
[2023-07-25T07:14:05.382Z] tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
[2023-07-25T07:14:05.382Z] /dev/vda3 80G 22G 59G 28% /
[2023-07-25T07:14:05.382Z] /dev/vda2 100M 5.8M 95M 6% /boot/efi
[2023-07-25T07:14:05.382Z] tmpfs 1.6G 0 1.6G 0% /run/user/1000
[Pipeline] echo
[2023-07-25T07:14:05.405Z] [INFO] space of /home/jenkins
[Pipeline] sh
[2023-07-25T07:14:05.688Z] + du -h -d1 /home/jenkins
[2023-07-25T07:14:05.689Z] 4.0K /home/jenkins/.ssh
[2023-07-25T07:14:05.689Z] 0 /home/jenkins/go
[2023-07-25T07:14:05.689Z] 8.0K /home/jenkins/.vnc
[2023-07-25T07:14:05.689Z] 8.0K /home/jenkins/.m2
[2023-07-25T07:14:05.689Z] 2.2G /home/jenkins/git-repos
[2023-07-25T07:14:05.689Z] 8.0K /home/jenkins/.config
[2023-07-25T07:14:05.950Z] du: cannot read directory '/home/jenkins/virtenvs/swf': Permission denied
[2023-07-25T07:14:05.950Z] 136M /home/jenkins/virtenvs
[2023-07-25T07:14:05.950Z] 4.0K /home/jenkins/.cekit
[2023-07-25T07:14:05.950Z] 32M /home/jenkins/remoting
[2023-07-25T07:14:05.950Z] 0 /home/jenkins/.cache
[2023-07-25T07:14:05.950Z] 13M /home/jenkins/workspace
[2023-07-25T07:14:05.950Z] 100M /home/jenkins/tools
[2023-07-25T07:14:05.950Z] 0 /home/jenkins/caches
[2023-07-25T07:14:05.950Z] 2.5G /home/jenkins
[Pipeline] }
[Pipeline] // dir
[Pipeline] echo
[2023-07-25T07:14:06.037Z] Error when checking the space on node ... hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Install build-chain tool)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:06.349Z] [INFO] Getting build-chain version from composite action file
[Pipeline] readFile
[Pipeline] echo
[2023-07-25T07:14:06.429Z] [INFO] build-chain version recovered '^v3'
[Pipeline] sh
[2023-07-25T07:14:06.731Z] + npm install -g '@kie/build-chain-action@^v3' -registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/
[2023-07-25T07:14:10.902Z]
[2023-07-25T07:14:10.902Z] added 95 packages, and audited 96 packages in 3s
[2023-07-25T07:14:10.902Z]
[2023-07-25T07:14:10.902Z] 5 packages are looking for funding
[2023-07-25T07:14:10.902Z] run `npm fund` for details
[2023-07-25T07:14:10.902Z]
[2023-07-25T07:14:10.902Z] found 0 vulnerabilities
[Pipeline] sh
[2023-07-25T07:14:11.197Z] + npm list -g
[2023-07-25T07:14:11.198Z] + grep build-chain
[2023-07-25T07:14:11.759Z] ├── @kie/[email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build projects)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:12.223Z] LD_LIBRARY_PATH = /opt/tools/graalvm/lib/server
[Pipeline] echo
[2023-07-25T07:14:12.256Z] BUILD_MVN_OPTS_CURRENT =
[Pipeline] configFileProvider
[2023-07-25T07:14:12.272Z] provisioning config files...
[2023-07-25T07:14:12.281Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples@tmp/config10349888261420444848tmp
[Pipeline] {
[Pipeline] withCredentials
[2023-07-25T07:14:12.331Z] Masking supported pattern matches of $GITHUB_TOKEN
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:12.380Z] BUILD_MVN_OPTS = -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples@tmp/config10349888261420444848tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true
[Pipeline] sh
[2023-07-25T07:14:12.404Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
[2023-07-25T07:14:12.404Z] Affected argument(s) used the following variable(s): [GITHUB_TOKEN]
[2023-07-25T07:14:12.404Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
[2023-07-25T07:14:12.710Z] + source /home/jenkins/virtenvs/swf/bin/activate
[2023-07-25T07:14:12.710Z] /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-quarkus-examples@tmp/durable-436d8351/script.sh: line 2: /home/jenkins/virtenvs/swf/bin/activate: Permission denied
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[2023-07-25T07:14:12.798Z] Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:13.230Z] + find . -type d -name node_modules -exec rm -rf '{}' ';'
[Pipeline] junit
[2023-07-25T07:14:13.266Z] Recording test results
[2023-07-25T07:14:13.423Z] [Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
[2023-07-25T07:14:13.442Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:13.851Z] + rm -rf console.log
[Pipeline] sh

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 25, 2023

(tests) - kogito-springboot-examples job #1279 was: FAILURE
Possible explanation: Pipeline failure or project build failure

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-examples -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-springboot-examples/1279/display/redirect
See console log:

Console Logs GitHub pull request #3130 of commit ba0e0ca, no merge conflicts.
Setting status of ba0e0ca to PENDING with url https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-springboot-examples/1279/display/redirect and message: 'Build started.'
Using context: (build) kogito-springboot-examples
Checking out git https://github.com/kiegroup/kogito-pipelines.git into /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-springboot-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92 to read .ci/jenkins/Jenkinsfile.buildchain
The recommended git tool is: NONE
using credential kie-ci3
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-springboot-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Commit message: "Add release branch 1.42.x after cut-off"
> git rev-list --no-walk 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Loading library jenkins-pipeline-shared-libraries@main
Attempting to resolve main from remote references...
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh879788051277779120.key
Verifying host key using manually-configured host key entries
> git ls-remote -h -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Found match: refs/heads/main revision 154102e8350a7d952396c3a28edb983df906baec
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential kie-ci-user-key
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-springboot-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kiegroup/jenkins-pipeline-shared-libraries
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-springboot-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb@tmp/jenkins-gitclient-ssh16647405298124407803.key
Verifying host key using manually-configured host key entries
> git fetch --no-tags --force --progress -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 154102e8350a7d952396c3a28edb983df906baec (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 154102e8350a7d952396c3a28edb983df906baec # timeout=10
Commit message: "Add `githubscm.deleteReleaseAndTag` method (#291)"
> git rev-list --no-walk 154102e8350a7d952396c3a28edb983df906baec # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘kie-rhel8&&docker&&kie-mem16g&&!built-in’ are offline
Running on rhos-01-kie-rhel8-xlarge-docker-902 in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential kie-ci3
Cloning the remote Git repository
Cloning repository https://github.com/kiegroup/kogito-pipelines.git
> git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
Commit message: "Add release branch 1.42.x after cut-off"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
[2023-07-25T07:14:13.456Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
[2023-07-25T07:14:13.555Z] Installing NodeJS from /var/jenkins_home/caches/nodejs/LINUX/amd64/16.2.0.tar.gz to /home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs-16.2.0 on rhos-01-kie-rhel8-xlarge-docker-902
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Initialize)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:15.843Z] + printenv
[Pipeline] archiveArtifacts
[2023-07-25T07:14:15.913Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check space before build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] dir
[2023-07-25T07:14:16.501Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:16.532Z] [INFO] space left on the machine
[Pipeline] sh
[2023-07-25T07:14:16.811Z] + df -h
[2023-07-25T07:14:16.811Z] Filesystem Size Used Avail Use% Mounted on
[2023-07-25T07:14:16.811Z] devtmpfs 7.7G 0 7.7G 0% /dev
[2023-07-25T07:14:16.811Z] tmpfs 7.7G 0 7.7G 0% /dev/shm
[2023-07-25T07:14:16.811Z] tmpfs 7.7G 17M 7.7G 1% /run
[2023-07-25T07:14:16.811Z] tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
[2023-07-25T07:14:16.811Z] /dev/vda3 80G 22G 59G 28% /
[2023-07-25T07:14:16.811Z] /dev/vda2 100M 5.8M 95M 6% /boot/efi
[2023-07-25T07:14:16.811Z] tmpfs 1.6G 0 1.6G 0% /run/user/1000
[Pipeline] echo
[2023-07-25T07:14:16.832Z] [INFO] space of /home/jenkins
[Pipeline] sh
[2023-07-25T07:14:17.111Z] + du -h -d1 /home/jenkins
[2023-07-25T07:14:17.112Z] 4.0K /home/jenkins/.ssh
[2023-07-25T07:14:17.112Z] 0 /home/jenkins/go
[2023-07-25T07:14:17.112Z] 8.0K /home/jenkins/.vnc
[2023-07-25T07:14:17.112Z] 8.0K /home/jenkins/.m2
[2023-07-25T07:14:17.112Z] 2.2G /home/jenkins/git-repos
[2023-07-25T07:14:17.112Z] 8.0K /home/jenkins/.config
[2023-07-25T07:14:17.367Z] du: cannot read directory '/home/jenkins/virtenvs/swf': Permission denied
[2023-07-25T07:14:17.367Z] 136M /home/jenkins/virtenvs
[2023-07-25T07:14:17.367Z] 4.0K /home/jenkins/.cekit
[2023-07-25T07:14:17.367Z] 32M /home/jenkins/remoting
[2023-07-25T07:14:17.367Z] 0 /home/jenkins/.cache
[2023-07-25T07:14:17.367Z] 13M /home/jenkins/workspace
[2023-07-25T07:14:17.367Z] 100M /home/jenkins/tools
[2023-07-25T07:14:17.367Z] 0 /home/jenkins/caches
[2023-07-25T07:14:17.367Z] 2.5G /home/jenkins
[Pipeline] }
[Pipeline] // dir
[Pipeline] echo
[2023-07-25T07:14:17.435Z] Error when checking the space on node ... hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Install build-chain tool)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:17.726Z] [INFO] Getting build-chain version from composite action file
[Pipeline] readFile
[Pipeline] echo
[2023-07-25T07:14:17.796Z] [INFO] build-chain version recovered '^v3'
[Pipeline] sh
[2023-07-25T07:14:18.088Z] + npm install -g '@kie/build-chain-action@^v3' -registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/
[2023-07-25T07:14:20.911Z]
[2023-07-25T07:14:20.911Z] added 95 packages, and audited 96 packages in 3s
[2023-07-25T07:14:20.911Z]
[2023-07-25T07:14:20.911Z] 5 packages are looking for funding
[2023-07-25T07:14:20.911Z] run `npm fund` for details
[2023-07-25T07:14:20.911Z]
[2023-07-25T07:14:20.911Z] found 0 vulnerabilities
[Pipeline] sh
[2023-07-25T07:14:21.218Z] + npm list -g
[2023-07-25T07:14:21.218Z] + grep build-chain
[2023-07-25T07:14:21.491Z] ├── @kie/[email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build projects)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:22.833Z] LD_LIBRARY_PATH = /opt/tools/graalvm/lib/server
[Pipeline] echo
[2023-07-25T07:14:22.859Z] BUILD_MVN_OPTS_CURRENT =
[Pipeline] configFileProvider
[2023-07-25T07:14:22.872Z] provisioning config files...
[2023-07-25T07:14:22.890Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples@tmp/config2874859477132369168tmp
[Pipeline] {
[Pipeline] withCredentials
[2023-07-25T07:14:22.928Z] Masking supported pattern matches of $GITHUB_TOKEN
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:22.969Z] BUILD_MVN_OPTS = -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples@tmp/config2874859477132369168tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true
[Pipeline] sh
[2023-07-25T07:14:23.004Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
[2023-07-25T07:14:23.004Z] Affected argument(s) used the following variable(s): [GITHUB_TOKEN]
[2023-07-25T07:14:23.004Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
[2023-07-25T07:14:23.887Z] + source /home/jenkins/virtenvs/swf/bin/activate
[2023-07-25T07:14:23.887Z] /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-springboot-examples@tmp/durable-3b2776dc/script.sh: line 2: /home/jenkins/virtenvs/swf/bin/activate: Permission denied
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[2023-07-25T07:14:24.195Z] Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:24.653Z] + find . -type d -name node_modules -exec rm -rf '{}' ';'
[Pipeline] junit
[2023-07-25T07:14:24.712Z] Recording test results
[2023-07-25T07:14:24.949Z] [Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
[2023-07-25T07:14:24.966Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:25.387Z] + rm -rf console.log
[Pipeline] sh

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 25, 2023

(tests) - kogito-runtimes job #2924 was: FAILURE
Possible explanation: Pipeline failure or project build failure

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2924/display/redirect
See console log:

Console Logs GitHub pull request #3130 of commit ba0e0ca, no merge conflicts.
Setting status of ba0e0ca to PENDING with url https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2924/display/redirect and message: 'Build started.'
Using context: (build) kogito-runtimes
Checking out git https://github.com/kiegroup/kogito-pipelines.git into /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.kogito-runtimes/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92 to read .ci/jenkins/Jenkinsfile.buildchain
The recommended git tool is: NONE
using credential kie-ci3
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.kogito-runtimes/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Commit message: "Add release branch 1.42.x after cut-off"
> git rev-list --no-walk 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Loading library jenkins-pipeline-shared-libraries@main
Attempting to resolve main from remote references...
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh928726185393418083.key
Verifying host key using manually-configured host key entries
> git ls-remote -h -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Found match: refs/heads/main revision 154102e8350a7d952396c3a28edb983df906baec
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential kie-ci-user-key
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.kogito-runtimes/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kiegroup/jenkins-pipeline-shared-libraries
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.kogito-runtimes/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb@tmp/jenkins-gitclient-ssh3494020054935274130.key
Verifying host key using manually-configured host key entries
> git fetch --no-tags --force --progress -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 154102e8350a7d952396c3a28edb983df906baec (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 154102e8350a7d952396c3a28edb983df906baec # timeout=10
Commit message: "Add `githubscm.deleteReleaseAndTag` method (#291)"
> git rev-list --no-walk 154102e8350a7d952396c3a28edb983df906baec # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘kie-rhel8&&docker&&kie-mem16g&&!built-in’ are offline
Running on rhos-01-kie-rhel8-xlarge-docker-909 in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential kie-ci3
Cloning the remote Git repository
Cloning repository https://github.com/kiegroup/kogito-pipelines.git
> git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
Commit message: "Add release branch 1.42.x after cut-off"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
[2023-07-25T07:14:24.287Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Initialize)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:25.104Z] + printenv
[Pipeline] archiveArtifacts
[2023-07-25T07:14:25.136Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check space before build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] dir
[2023-07-25T07:14:25.728Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:25.791Z] [INFO] space left on the machine
[Pipeline] sh
[2023-07-25T07:14:26.089Z] + df -h
[2023-07-25T07:14:26.090Z] Filesystem Size Used Avail Use% Mounted on
[2023-07-25T07:14:26.090Z] devtmpfs 7.7G 0 7.7G 0% /dev
[2023-07-25T07:14:26.090Z] tmpfs 7.7G 0 7.7G 0% /dev/shm
[2023-07-25T07:14:26.090Z] tmpfs 7.7G 17M 7.7G 1% /run
[2023-07-25T07:14:26.090Z] tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
[2023-07-25T07:14:26.090Z] /dev/vda3 80G 22G 59G 28% /
[2023-07-25T07:14:26.090Z] /dev/vda2 100M 5.8M 95M 6% /boot/efi
[2023-07-25T07:14:26.090Z] tmpfs 1.6G 0 1.6G 0% /run/user/1000
[Pipeline] echo
[2023-07-25T07:14:26.110Z] [INFO] space of /home/jenkins
[Pipeline] sh
[2023-07-25T07:14:26.390Z] + du -h -d1 /home/jenkins
[2023-07-25T07:14:26.390Z] 4.0K /home/jenkins/.ssh
[2023-07-25T07:14:26.390Z] 0 /home/jenkins/go
[2023-07-25T07:14:26.390Z] 8.0K /home/jenkins/.vnc
[2023-07-25T07:14:26.390Z] 8.0K /home/jenkins/.m2
[2023-07-25T07:14:26.390Z] 2.2G /home/jenkins/git-repos
[2023-07-25T07:14:26.390Z] 8.0K /home/jenkins/.config
[2023-07-25T07:14:26.390Z] du: cannot read directory '/home/jenkins/virtenvs/swf': Permission denied
[2023-07-25T07:14:26.390Z] 136M /home/jenkins/virtenvs
[2023-07-25T07:14:26.390Z] 4.0K /home/jenkins/.cekit
[2023-07-25T07:14:26.390Z] 33M /home/jenkins/remoting
[2023-07-25T07:14:26.390Z] 0 /home/jenkins/.cache
[2023-07-25T07:14:26.390Z] 13M /home/jenkins/workspace
[2023-07-25T07:14:26.390Z] 145M /home/jenkins/tools
[2023-07-25T07:14:26.390Z] 0 /home/jenkins/caches
[2023-07-25T07:14:26.390Z] 20M /home/jenkins/.npm
[2023-07-25T07:14:26.390Z] 2.5G /home/jenkins
[Pipeline] }
[Pipeline] // dir
[Pipeline] echo
[2023-07-25T07:14:26.463Z] Error when checking the space on node ... hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Install build-chain tool)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:26.828Z] [INFO] Getting build-chain version from composite action file
[Pipeline] readFile
[Pipeline] echo
[2023-07-25T07:14:26.912Z] [INFO] build-chain version recovered '^v3'
[Pipeline] sh
[2023-07-25T07:14:27.205Z] + npm install -g '@kie/build-chain-action@^v3' -registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/
[2023-07-25T07:14:29.094Z]
[2023-07-25T07:14:29.094Z] changed 95 packages, and audited 96 packages in 2s
[2023-07-25T07:14:29.094Z]
[2023-07-25T07:14:29.094Z] 5 packages are looking for funding
[2023-07-25T07:14:29.094Z] run `npm fund` for details
[2023-07-25T07:14:29.094Z]
[2023-07-25T07:14:29.094Z] found 0 vulnerabilities
[Pipeline] sh
[2023-07-25T07:14:29.391Z] + npm list -g
[2023-07-25T07:14:29.391Z] + grep build-chain
[2023-07-25T07:14:29.989Z] ├── @kie/[email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build projects)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:32.399Z] LD_LIBRARY_PATH = /opt/tools/graalvm/lib/server
[Pipeline] echo
[2023-07-25T07:14:32.430Z] BUILD_MVN_OPTS_CURRENT = -T 1C -Dvalidate-formatting -Prun-code-coverage
[Pipeline] configFileProvider
[2023-07-25T07:14:32.446Z] provisioning config files...
[2023-07-25T07:14:32.451Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes@tmp/config5319882880901847908tmp
[Pipeline] {
[Pipeline] withCredentials
[2023-07-25T07:14:32.522Z] Masking supported pattern matches of $GITHUB_TOKEN
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:32.563Z] BUILD_MVN_OPTS = -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes@tmp/config5319882880901847908tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true
[Pipeline] sh
[2023-07-25T07:14:32.608Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
[2023-07-25T07:14:32.608Z] Affected argument(s) used the following variable(s): [GITHUB_TOKEN]
[2023-07-25T07:14:32.608Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
[2023-07-25T07:14:32.877Z] + source /home/jenkins/virtenvs/swf/bin/activate
[2023-07-25T07:14:32.877Z] /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.kogito-runtimes@tmp/durable-594d42ab/script.sh: line 2: /home/jenkins/virtenvs/swf/bin/activate: Permission denied
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[2023-07-25T07:14:32.989Z] Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:33.413Z] + find . -type d -name node_modules -exec rm -rf '{}' ';'
[Pipeline] junit
[2023-07-25T07:14:33.437Z] Recording test results
[2023-07-25T07:14:33.454Z] [Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
[2023-07-25T07:14:33.495Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:33.888Z] + rm -rf console.log
[Pipeline] sh

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 25, 2023

(tests) - kogito-apps job #2915 was: FAILURE
Possible explanation: Pipeline failure or project build failure

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-apps -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/2915/display/redirect
See console log:

Console Logs GitHub pull request #3130 of commit ba0e0ca, no merge conflicts.
Setting status of ba0e0ca to PENDING with url https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/2915/display/redirect and message: 'Build started.'
Using context: (build) kogito-apps
Checking out git https://github.com/kiegroup/kogito-pipelines.git into /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-apps/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92 to read .ci/jenkins/Jenkinsfile.buildchain
The recommended git tool is: NONE
using credential kie-ci3
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-apps/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Commit message: "Add release branch 1.42.x after cut-off"
> git rev-list --no-walk 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Loading library jenkins-pipeline-shared-libraries@main
Attempting to resolve main from remote references...
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh11942516649603518110.key
Verifying host key using manually-configured host key entries
> git ls-remote -h -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Found match: refs/heads/main revision 154102e8350a7d952396c3a28edb983df906baec
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential kie-ci-user-key
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-apps/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kiegroup/jenkins-pipeline-shared-libraries
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.kogito-apps/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb@tmp/jenkins-gitclient-ssh1903932665320612136.key
Verifying host key using manually-configured host key entries
> git fetch --no-tags --force --progress -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 154102e8350a7d952396c3a28edb983df906baec (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 154102e8350a7d952396c3a28edb983df906baec # timeout=10
Commit message: "Add `githubscm.deleteReleaseAndTag` method (#291)"
> git rev-list --no-walk 154102e8350a7d952396c3a28edb983df906baec # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘kie-rhel8&&docker&&kie-mem16g&&!built-in’ are offline
Running on rhos-01-kie-rhel8-xlarge-docker-902 in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential kie-ci3
Cloning the remote Git repository
Cloning repository https://github.com/kiegroup/kogito-pipelines.git
> git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
Commit message: "Add release branch 1.42.x after cut-off"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
[2023-07-25T07:14:36.328Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Initialize)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:37.390Z] + printenv
[Pipeline] archiveArtifacts
[2023-07-25T07:14:37.424Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check space before build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] dir
[2023-07-25T07:14:38.506Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:38.609Z] [INFO] space left on the machine
[Pipeline] sh
[2023-07-25T07:14:38.990Z] + df -h
[2023-07-25T07:14:38.990Z] Filesystem Size Used Avail Use% Mounted on
[2023-07-25T07:14:38.990Z] devtmpfs 7.7G 0 7.7G 0% /dev
[2023-07-25T07:14:38.990Z] tmpfs 7.7G 0 7.7G 0% /dev/shm
[2023-07-25T07:14:38.990Z] tmpfs 7.7G 17M 7.7G 1% /run
[2023-07-25T07:14:38.990Z] tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
[2023-07-25T07:14:38.990Z] /dev/vda3 80G 22G 59G 28% /
[2023-07-25T07:14:38.990Z] /dev/vda2 100M 5.8M 95M 6% /boot/efi
[2023-07-25T07:14:38.990Z] tmpfs 1.6G 0 1.6G 0% /run/user/1000
[Pipeline] echo
[2023-07-25T07:14:39.015Z] [INFO] space of /home/jenkins
[Pipeline] sh
[2023-07-25T07:14:40.490Z] + du -h -d1 /home/jenkins
[2023-07-25T07:14:40.491Z] 4.0K /home/jenkins/.ssh
[2023-07-25T07:14:40.491Z] 0 /home/jenkins/go
[2023-07-25T07:14:40.491Z] 8.0K /home/jenkins/.vnc
[2023-07-25T07:14:40.491Z] 8.0K /home/jenkins/.m2
[2023-07-25T07:14:40.491Z] 2.2G /home/jenkins/git-repos
[2023-07-25T07:14:40.491Z] 8.0K /home/jenkins/.config
[2023-07-25T07:14:40.491Z] du: cannot read directory '/home/jenkins/virtenvs/swf': Permission denied
[2023-07-25T07:14:40.491Z] 136M /home/jenkins/virtenvs
[2023-07-25T07:14:40.491Z] 4.0K /home/jenkins/.cekit
[2023-07-25T07:14:40.491Z] 33M /home/jenkins/remoting
[2023-07-25T07:14:40.491Z] 0 /home/jenkins/.cache
[2023-07-25T07:14:40.491Z] 13M /home/jenkins/workspace
[2023-07-25T07:14:40.491Z] 145M /home/jenkins/tools
[2023-07-25T07:14:40.491Z] 0 /home/jenkins/caches
[2023-07-25T07:14:40.491Z] 20M /home/jenkins/.npm
[2023-07-25T07:14:40.491Z] 2.5G /home/jenkins
[Pipeline] }
[Pipeline] // dir
[Pipeline] echo
[2023-07-25T07:14:41.004Z] Error when checking the space on node ... hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Install build-chain tool)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:41.491Z] [INFO] Getting build-chain version from composite action file
[Pipeline] readFile
[Pipeline] echo
[2023-07-25T07:14:41.591Z] [INFO] build-chain version recovered '^v3'
[Pipeline] sh
[2023-07-25T07:14:41.891Z] + npm install -g '@kie/build-chain-action@^v3' -registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/
[2023-07-25T07:14:43.788Z]
[2023-07-25T07:14:43.788Z] changed 95 packages, and audited 96 packages in 2s
[2023-07-25T07:14:43.788Z]
[2023-07-25T07:14:43.788Z] 5 packages are looking for funding
[2023-07-25T07:14:43.788Z] run `npm fund` for details
[2023-07-25T07:14:43.788Z]
[2023-07-25T07:14:43.788Z] found 0 vulnerabilities
[Pipeline] sh
[2023-07-25T07:14:44.091Z] + npm list -g
[2023-07-25T07:14:44.091Z] + grep build-chain
[2023-07-25T07:14:44.346Z] ├── @kie/[email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build projects)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:44.904Z] LD_LIBRARY_PATH = /opt/tools/graalvm/lib/server
[Pipeline] echo
[2023-07-25T07:14:44.932Z] BUILD_MVN_OPTS_CURRENT =
[Pipeline] configFileProvider
[2023-07-25T07:14:44.948Z] provisioning config files...
[2023-07-25T07:14:44.953Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps@tmp/config15433897681056792738tmp
[Pipeline] {
[Pipeline] withCredentials
[2023-07-25T07:14:45.013Z] Masking supported pattern matches of $GITHUB_TOKEN
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:45.054Z] BUILD_MVN_OPTS = -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps@tmp/config15433897681056792738tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true
[Pipeline] sh
[2023-07-25T07:14:45.102Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
[2023-07-25T07:14:45.102Z] Affected argument(s) used the following variable(s): [GITHUB_TOKEN]
[2023-07-25T07:14:45.102Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
[2023-07-25T07:14:45.371Z] + source /home/jenkins/virtenvs/swf/bin/activate
[2023-07-25T07:14:45.371Z] /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.kogito-apps@tmp/durable-f54bb02b/script.sh: line 2: /home/jenkins/virtenvs/swf/bin/activate: Permission denied
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[2023-07-25T07:14:45.455Z] Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:45.941Z] + find . -type d -name node_modules -exec rm -rf '{}' ';'
[Pipeline] junit
[2023-07-25T07:14:45.969Z] Recording test results
[2023-07-25T07:14:45.996Z] [Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
[2023-07-25T07:14:46.017Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:46.408Z] + rm -rf console.log
[Pipeline] sh

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 25, 2023

(tests) - serverless-workflow-examples job #1257 was: FAILURE
Possible explanation: Pipeline failure or project build failure

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-examples -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.serverless-workflow-examples/1257/display/redirect
See console log:

Console Logs GitHub pull request #3130 of commit ba0e0ca, no merge conflicts.
Setting status of ba0e0ca to PENDING with url https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.serverless-workflow-examples/1257/display/redirect and message: 'Build started.'
Using context: (build) serverless-workflow-examples
Checking out git https://github.com/kiegroup/kogito-pipelines.git into /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.serverless-workflow-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92 to read .ci/jenkins/Jenkinsfile.buildchain
The recommended git tool is: NONE
using credential kie-ci3
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.serverless-workflow-examples/workspace@script/ee10b829cbd0ac763d0be6f0356db3418b2d4469e9daa1842e842313521cde92/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
Cleaning workspace
> git rev-parse --verify HEAD # timeout=10
Resetting working tree
> git reset --hard # timeout=10
> git clean -fdx # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Commit message: "Add release branch 1.42.x after cut-off"
> git rev-list --no-walk 97d33338ec8604e37932260e71128028fa78867a # timeout=10
Loading library jenkins-pipeline-shared-libraries@main
Attempting to resolve main from remote references...
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /tmp/jenkins-gitclient-ssh3022326058744726841.key
Verifying host key using manually-configured host key entries
> git ls-remote -h -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Found match: refs/heads/main revision 154102e8350a7d952396c3a28edb983df906baec
Selected Git installation does not exist. Using Default
The recommended git tool is: NONE
using credential kie-ci-user-key
> git rev-parse --resolve-git-dir /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.serverless-workflow-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb/.git # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/kiegroup/jenkins-pipeline-shared-libraries # timeout=10
Fetching without tags
Fetching upstream changes from https://github.com/kiegroup/jenkins-pipeline-shared-libraries
> git --version # timeout=10
> git --version # 'git version 2.31.1'
using GIT_SSH to set credentials SSH: kie-ci service account with access to jboss-integration private github space
[INFO] Currently running in a labeled security context
> /usr/bin/chcon --type=ssh_home_t /var/jenkins_home/jobs/KIE/jobs/kogito/jobs/main/jobs/pullrequest/jobs/kogito-runtimes.tests.downstream.serverless-workflow-examples/workspace@libs/d03f8b53ef89e88ec2b15428a250a4b1fb7910bfcdd3e1c33e4e95c3adb758bb@tmp/jenkins-gitclient-ssh6385704961261735200.key
Verifying host key using manually-configured host key entries
> git fetch --no-tags --force --progress -- https://github.com/kiegroup/jenkins-pipeline-shared-libraries +refs/heads/*:refs/remotes/origin/* # timeout=10
Checking out Revision 154102e8350a7d952396c3a28edb983df906baec (main)
> git config core.sparsecheckout # timeout=10
> git checkout -f 154102e8350a7d952396c3a28edb983df906baec # timeout=10
Commit message: "Add `githubscm.deleteReleaseAndTag` method (#291)"
> git rev-list --no-walk 154102e8350a7d952396c3a28edb983df906baec # timeout=10
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘kie-rhel8&&docker&&kie-mem16g&&!built-in’ are offline
Running on rhos-01-kie-rhel8-xlarge-docker-905 in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Checkout SCM)
[Pipeline] checkout
The recommended git tool is: NONE
using credential kie-ci3
Cloning the remote Git repository
Cloning repository https://github.com/kiegroup/kogito-pipelines.git
> git init /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples # timeout=10
Fetching upstream changes from https://github.com/kiegroup/kogito-pipelines.git
> git --version # timeout=10
> git --version # 'git version 2.39.3'
using GIT_ASKPASS to set credentials PSSWD: kie-ci3 account to access GitHub via token
> git fetch --tags --force --progress -- https://github.com/kiegroup/kogito-pipelines.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 97d33338ec8604e37932260e71128028fa78867a (origin/main)
Commit message: "Add release branch 1.42.x after cut-off"
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timestamps
[Pipeline] {
[Pipeline] timeout
[2023-07-25T07:14:45.854Z] Timeout set to expire in 3 hr 0 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
> git config remote.origin.url https://github.com/kiegroup/kogito-pipelines.git # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git rev-parse origin/main^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f 97d33338ec8604e37932260e71128028fa78867a # timeout=10
[2023-07-25T07:14:45.964Z] Installing NodeJS from /var/jenkins_home/caches/nodejs/LINUX/amd64/16.2.0.tar.gz to /home/jenkins/tools/jenkins.plugins.nodejs.tools.NodeJSInstallation/nodejs-16.2.0 on rhos-01-kie-rhel8-xlarge-docker-905
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Initialize)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:14:49.305Z] + printenv
[Pipeline] archiveArtifacts
[2023-07-25T07:14:49.429Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (check space before build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] dir
[2023-07-25T07:14:50.412Z] Running in /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:50.451Z] [INFO] space left on the machine
[Pipeline] sh
[2023-07-25T07:14:50.788Z] + df -h
[2023-07-25T07:14:50.789Z] Filesystem Size Used Avail Use% Mounted on
[2023-07-25T07:14:50.789Z] devtmpfs 7.7G 0 7.7G 0% /dev
[2023-07-25T07:14:50.789Z] tmpfs 7.7G 0 7.7G 0% /dev/shm
[2023-07-25T07:14:50.789Z] tmpfs 7.7G 17M 7.7G 1% /run
[2023-07-25T07:14:50.789Z] tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
[2023-07-25T07:14:50.789Z] /dev/vda3 80G 22G 59G 28% /
[2023-07-25T07:14:50.789Z] /dev/vda2 100M 5.8M 95M 6% /boot/efi
[2023-07-25T07:14:50.789Z] tmpfs 1.6G 0 1.6G 0% /run/user/1000
[Pipeline] echo
[2023-07-25T07:14:50.813Z] [INFO] space of /home/jenkins
[Pipeline] sh
[2023-07-25T07:14:51.095Z] + du -h -d1 /home/jenkins
[2023-07-25T07:14:51.095Z] 4.0K /home/jenkins/.ssh
[2023-07-25T07:14:51.095Z] 0 /home/jenkins/go
[2023-07-25T07:14:51.095Z] 8.0K /home/jenkins/.vnc
[2023-07-25T07:14:51.095Z] 8.0K /home/jenkins/.m2
[2023-07-25T07:14:51.095Z] 2.2G /home/jenkins/git-repos
[2023-07-25T07:14:51.095Z] 8.0K /home/jenkins/.config
[2023-07-25T07:14:51.351Z] du: cannot read directory '/home/jenkins/virtenvs/swf': Permission denied
[2023-07-25T07:14:51.351Z] 136M /home/jenkins/virtenvs
[2023-07-25T07:14:51.351Z] 4.0K /home/jenkins/.cekit
[2023-07-25T07:14:51.351Z] 32M /home/jenkins/remoting
[2023-07-25T07:14:51.351Z] 0 /home/jenkins/.cache
[2023-07-25T07:14:51.351Z] 13M /home/jenkins/workspace
[2023-07-25T07:14:51.351Z] 100M /home/jenkins/tools
[2023-07-25T07:14:51.351Z] 0 /home/jenkins/caches
[2023-07-25T07:14:51.351Z] 2.5G /home/jenkins
[Pipeline] }
[Pipeline] // dir
[Pipeline] echo
[2023-07-25T07:14:51.550Z] Error when checking the space on node ... hudson.AbortException: script returned exit code 1
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Install build-chain tool)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:53.892Z] [INFO] Getting build-chain version from composite action file
[Pipeline] readFile
[Pipeline] echo
[2023-07-25T07:14:53.999Z] [INFO] build-chain version recovered '^v3'
[Pipeline] sh
[2023-07-25T07:14:54.288Z] + npm install -g '@kie/build-chain-action@^v3' -registry=https://repository.engineering.redhat.com/nexus/repository/registry.npmjs.org/
[2023-07-25T07:14:57.591Z]
[2023-07-25T07:14:57.591Z] added 95 packages, and audited 96 packages in 3s
[2023-07-25T07:14:57.591Z]
[2023-07-25T07:14:57.591Z] 5 packages are looking for funding
[2023-07-25T07:14:57.591Z] run `npm fund` for details
[2023-07-25T07:14:57.591Z]
[2023-07-25T07:14:57.591Z] found 0 vulnerabilities
[Pipeline] sh
[2023-07-25T07:14:57.883Z] + npm list -g
[2023-07-25T07:14:57.883Z] + grep build-chain
[2023-07-25T07:14:58.447Z] ├── @kie/[email protected]
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build projects)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] script
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:59.234Z] LD_LIBRARY_PATH = /opt/tools/graalvm/lib/server
[Pipeline] echo
[2023-07-25T07:14:59.307Z] BUILD_MVN_OPTS_CURRENT =
[Pipeline] configFileProvider
[2023-07-25T07:14:59.323Z] provisioning config files...
[2023-07-25T07:14:59.331Z] copy managed file [kogito_pr_settings] to file:/home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples@tmp/config12728424773649771726tmp
[Pipeline] {
[Pipeline] withCredentials
[2023-07-25T07:14:59.408Z] Masking supported pattern matches of $GITHUB_TOKEN
[Pipeline] {
[Pipeline] echo
[2023-07-25T07:14:59.488Z] BUILD_MVN_OPTS = -s /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples@tmp/config12728424773649771726tmp -Dmaven.wagon.http.ssl.insecure=true -Dmaven.test.failure.ignore=true
[Pipeline] sh
[2023-07-25T07:14:59.514Z] Warning: A secret was passed to "sh" using Groovy String interpolation, which is insecure.
[2023-07-25T07:14:59.514Z] Affected argument(s) used the following variable(s): [GITHUB_TOKEN]
[2023-07-25T07:14:59.514Z] See https://jenkins.io/redirect/groovy-string-interpolation for details.
[2023-07-25T07:14:59.810Z] + source /home/jenkins/virtenvs/swf/bin/activate
[2023-07-25T07:14:59.810Z] /home/jenkins/workspace/KIE/kogito/main/pullrequest/kogito-runtimes.tests.downstream.serverless-workflow-examples@tmp/durable-0f485b9c/script.sh: line 2: /home/jenkins/virtenvs/swf/bin/activate: Permission denied
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[2023-07-25T07:15:00.021Z] Deleting 1 temporary files
[Pipeline] // configFileProvider
[Pipeline] }
[Pipeline] // script
Post stage
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:15:00.641Z] + find . -type d -name node_modules -exec rm -rf '{}' ';'
[Pipeline] junit
[2023-07-25T07:15:00.707Z] Recording test results
[2023-07-25T07:15:00.921Z] [Checks API] No suitable checks publisher found.
[Pipeline] archiveArtifacts
[2023-07-25T07:15:00.940Z] Archiving artifacts
[Pipeline] }
[Pipeline] // script
[Pipeline] script
[Pipeline] {
[Pipeline] sh
[2023-07-25T07:15:01.403Z] + rm -rf console.log
[Pipeline] sh

@manstis
Copy link
Contributor Author

manstis commented Jul 26, 2023

Jenkins retest this

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 26, 2023

(tests) - kogito-runtimes job #2945 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2945/display/redirect

Test results:

  • PASSED: 3355
  • FAILED: 2

Those are the test failures:

org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi2_0 No requests exactly matched. Most similar request was: expected:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id [matches] : 12345
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
> but was:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id: Basic amF2aWVyaXRvOmZ1bGFuaXRv
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
>
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi3_0 No requests exactly matched. Most similar request was: expected:<
POST
/

X-Client-Id [matches] : 12345
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
> but was:<
POST
/

X-Client-Id: Bearer mytoken,Bearer mytoken,Bearer
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
>

@manstis
Copy link
Contributor Author

manstis commented Jul 26, 2023

Jenkins (re)run kogito-runtimes tests

@hbelmiro
Copy link
Contributor

@manstis it seems like a real error in the quarkus-openapi-generator extension. I think I can take a look today by the end of the day.
Or if you want to fix it, I can help with the review.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 26, 2023

(tests) - kogito-runtimes job #2947 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2947/display/redirect

Test results:

  • PASSED: 3345
  • FAILED: 2

Those are the test failures:

org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi2_0 No requests exactly matched. Most similar request was: expected:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id [matches] : 12345
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
> but was:<
POST
/iq9MzY/watsonorchestrate

X-Client-Id: Basic amF2aWVyaXRvOmZ1bGFuaXRv
Authorization: Basic amF2aWVyaXRvOmZ1bGFuaXRv
>
org.kie.kogito.quarkus.it.openapi.client.ApiWithSecurityContextIT.verifyAuthHeadersOpenApi3_0 No requests exactly matched. Most similar request was: expected:<
POST
/

X-Client-Id [matches] : 12345
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
> but was:<
POST
/

X-Client-Id: Bearer mytoken,Bearer mytoken,Bearer
Authorization: Bearer mytoken
Authorization: Bearer mytoken
Authorization: Bearer
>

@manstis
Copy link
Contributor Author

manstis commented Jul 26, 2023

Hi @hbelmiro

...I think I can take a look today by the end of the day...

I broke it, I can (try) to fix it. Thank-you for the offer.

If I run out of ideas I may ping you.

@manstis
Copy link
Contributor Author

manstis commented Jul 26, 2023

@hbelmiro This is a tricky one....

The implementation of io.quarkiverse.openapi.generator.providers.ApiKeyAuthenticationProvider changed between 1.2.1 (on main) and 1.3.8 (on this PR). It was changed to fix this by this.

1.3.8

    public void filter(ClientRequestContext requestContext) throws IOException {
        switch (this.apiKeyIn) {
            case query:
                requestContext.setUri(UriBuilder.fromUri(requestContext.getUri()).queryParam(this.apiKeyName, new Object[]{this.getApiKey()}).build(new Object[0]));
                break;
            case cookie:
                requestContext.getCookies().put(this.apiKeyName, new Cookie(this.apiKeyName, this.getApiKey()));
                break;
            case header:
                if (requestContext.getHeaderString("Authorization") != null && !requestContext.getHeaderString("Authorization").isEmpty()) {
                    requestContext.getHeaders().putSingle(this.apiKeyName, requestContext.getHeaderString("Authorization"));
                } else {
                    requestContext.getHeaders().putSingle(this.apiKeyName, this.getApiKey());
                }
        }
    }

1.2.1

    public void filter(ClientRequestContext requestContext) throws IOException {
        switch (this.apiKeyIn) {
            case query:
                requestContext.setUri(UriBuilder.fromUri(requestContext.getUri()).queryParam(this.apiKeyName, new Object[]{this.getApiKey()}).build(new Object[0]));
                break;
            case cookie:
                requestContext.getCookies().put(this.apiKeyName, new Cookie(this.apiKeyName, this.getApiKey()));
                break;
            case header:
                requestContext.getHeaders().add(this.apiKeyName, this.getApiKey());
        }

    }

The difference being IF the Authorization header is present the value is used for X-Client-Id.

The tests in integration-tests-quarkus-openapi-client appear to be configured to use oauth and hence an Authorization header is being added.. in fact with OpenAPI 3.0 several Authorization headers are being added.

I guess we'd need some tests that don't use oauth too; but, to be honest it's got a little out of my depth.

I've fixed the tests on this PR but consider it incomplete.

Is a JIRA to create new tests OK, or should they be added here?

If they are to be added here I think I will need some guidance.

@manstis manstis requested a review from hbelmiro July 27, 2023 05:27
@hbelmiro
Copy link
Contributor

@manstis I think you can add those tests in a new Jira.
@ricardozanini WDYT?

@manstis
Copy link
Contributor Author

manstis commented Jul 28, 2023

@hbelmiro @ricardozanini @tiagodolphine I've added tests for OpenAPI 2.0 and 3.0 where Authorization headers are excluded and the X-Client-Id override takes effect. Please take a look and check they look OK.. it's an area I know little about so it's plausible my contribution is hackery at its finest.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 28, 2023

(tests) - kogito-runtimes job #2956 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=-T 1C -Dvalidate-formatting -Prun-code-coverage
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-runtimes -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.kogito-runtimes/2956/display/redirect

Test results:

  • PASSED: 3346
  • FAILED: 3

Those are the test failures:

org.kie.kogito.quarkus.workflows.SwitchStateEventConditionBasedIT.switchStateEventConditionTimeoutsTransitionApproved
Expecting value to be true but was false
org.kie.kogito.quarkus.workflows.SwitchStateEventConditionBasedIT.switchStateEventConditionTimeoutsTransition2TimeoutsExceeded
Expecting value to be true but was false
org.kie.kogito.quarkus.workflows.SwitchStateEventConditionBasedIT.switchStateEventConditionTimeoutsTransitionTimeoutsExceeded
Expecting value to be true but was false

@manstis
Copy link
Contributor Author

manstis commented Jul 28, 2023

Jenkins (re)run kogito-runtimes tests

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 28, 2023

(tests) - kogito-quarkus-examples job #1289 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-examples -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-quarkus-examples/1289/display/redirect

Test results:

  • PASSED: 166
  • FAILED: 1

Those are the test failures:

Build projects / org.kie.kogito.hr.HiringProcessIT.testApprovalProcess java.lang.reflect.InvocationTargetException

@manstis
Copy link
Contributor Author

manstis commented Jul 28, 2023

Jenkins (re)run kogito-quarkus-examples tests

@sonarcloud
Copy link

sonarcloud bot commented Jul 28, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 28, 2023

(tests) - kogito-apps job #2937 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-apps -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-apps/2937/display/redirect

Test results:

  • PASSED: 2769
  • FAILED: 1

Those are the test failures:

org.kie.kogito.it.trusty.SpringBootTrustyExplainabilityEnd2EndIT.doTest Container startup failed

@kie-ci3
Copy link
Contributor

kie-ci3 commented Jul 28, 2023

(tests) - kogito-quarkus-examples job #1290 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

export BUILD_MVN_OPTS_CURRENT=
build-chain build cross_pr -f 'https://raw.githubusercontent.com/kiegroup/kogito-pipelines/main/.ci/pull-request-config.yaml' -o 'bc' -p kiegroup/kogito-examples -u https://github.com/kiegroup/kogito-runtimes/pull/3130 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://eng-jenkins-csb-business-automation.apps.ocp-c1.prod.psi.redhat.com/job/KIE/job/kogito/job/main/job/pullrequest/job/kogito-runtimes.tests.downstream.kogito-quarkus-examples/1290/display/redirect

Test results:

  • PASSED: 163
  • FAILED: 1

Those are the test failures:

Build projects / org.acme.travels.ApprovalsProcessIT.testApprovalProcess java.lang.reflect.InvocationTargetException

@manstis
Copy link
Contributor Author

manstis commented Jul 28, 2023

Jenkins (re)run kogito-apps tests

@manstis
Copy link
Contributor Author

manstis commented Jul 28, 2023

Jenkins (re)run kogito-quarkus-examples tests

@@ -64,10 +66,30 @@ void verifyAuthHeadersOpenApi2_0() {
// verify if the headers were correctly sent
authWithApiKeyServer2
.verify(postRequestedFor(urlEqualTo(AuthSecurityMockService.SEC_20.getPath()))
.withHeader("X-Client-Id", matching("12345"))
.withHeader("X-Client-Id", matching("Basic amF2aWVyaXRvOmZ1bGFuaXRv"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the client ID has the Basic Auth Token?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ricardozanini please see this.

The newer version of quarkus-openapi-generator changed the behaviour when Authorization headers are present.

The existing tests include these header and hence their expected results changed.

I added two new tests that do not include Authorization headers and reflect the old behaviour of the existing tests.

@tiagodolphine tiagodolphine merged commit ba0ede9 into apache:main Jul 31, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants