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

[Fix #2193] ExecuteAfter mutation to return Json #2194

Merged
merged 2 commits into from
Feb 24, 2025

Conversation

fjtirado
Copy link
Contributor

Fix #2193

Other mutations are still returning String to keep backward compatibility, although we probably should change them too

Other mutations are still returning String to keep backward
compatibility, although we probably should change them too
@kie-ci3
Copy link
Contributor

kie-ci3 commented Feb 20, 2025

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

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-kogito-apps -u #2194 --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://ci-builds.apache.org/job/KIE/job/kogito/job/main/job/pullrequest_jobs/job/kogito-apps-pr/job/PR-2194/1/display/redirect

Test results:

  • PASSED: 1820
  • FAILED: 1

Those are the test failures:

org.kie.kogito.index.addon.api.KogitoAddonRuntimeClientImplTest.testExecuteAfterSuccess class java.lang.Object cannot be cast to class org.kie.kogito.Model (java.lang.Object is in module java.base of loader 'bootstrap'; org.kie.kogito.Model is in unnamed module of loader 'app')

Copy link
Contributor

@wmedvede wmedvede left a comment

Choose a reason for hiding this comment

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

only a non blocker comment form my side.

} else {
LOGGER.trace("Error {}", logMessage);
LOGGER.info("Error {}", logMessage);
Copy link
Contributor

Choose a reason for hiding this comment

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

If we are logging an error, why not to use do LOGGER.error ?

Copy link
Contributor

@gmunozfe gmunozfe left a comment

Choose a reason for hiding this comment

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

Looks good to me, good work @fjtirado !

@fjtirado fjtirado merged commit cf1ef06 into apache:main Feb 24, 2025
6 checks passed
rgdoliveira pushed a commit to rgdoliveira/kogito-apps that referenced this pull request Feb 24, 2025
* [Fix apache#2193] ExecuteAfter mutation to return Json

Other mutations are still returning String to keep backward
compatibility, although we probably should change them too

* [Fix apache#2193] Walters comment
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.

ExecuteAfter mutation should return the execution response as Json
4 participants