Skip to content

[incubator-kie-issues#1412] Refactor springboot/integration-tests #3604

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

Merged
merged 4 commits into from
Aug 16, 2024

Conversation

gitgabrio
Copy link
Contributor

Fixes apache/incubator-kie-issues#1412

This PR rewrite the springboot integration tests

  1. make them consistent with the quarkus counterpart
  2. remove the usage of mvn invoker, that's creating multiple issues on the build
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

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.

@gitgabrio gitgabrio force-pushed the incubator-kie-issues#1412 branch from 6b00e83 to c52d91a Compare August 2, 2024 07:20
@kie-ci3
Copy link
Contributor

kie-ci3 commented Aug 2, 2024

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-runtimes -u #3604 --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-runtimes-pr/job/PR-3604/1/display/redirect

Test results:

  • PASSED: 1588
  • FAILED: 1

Those are the test failures:

org.jbpm.bpmn2.IntermediateEventTest.testIntermediateCatchEventTimerCycle3
expected: 3
but was: 2

@kie-ci3
Copy link
Contributor

kie-ci3 commented Aug 2, 2024

PR job #2 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-runtimes -u #3604 --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-runtimes-pr/job/PR-3604/2/display/redirect

Test results:

  • PASSED: 3281
  • FAILED: 59

Those are the test failures:

PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
org.kie.kogito.integrationtests.springboot.ProcessEventIT.(?) Failed to find merged annotation for @org.springframework.test.context.BootstrapWith(org.springframework.boot.test.context.SpringBootTestContextBootstrapper.class)

@kie-ci3
Copy link
Contributor

kie-ci3 commented Aug 2, 2024

PR job #3 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-runtimes -u #3604 --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-runtimes-pr/job/PR-3604/3/display/redirect

Test results:

  • PASSED: 3282
  • FAILED: 58

Those are the test failures:

PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testPersistence 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <404>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <404>.

Copy link
Contributor

@elguardian elguardian left a comment

Choose a reason for hiding this comment

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

LGTM

@elguardian
Copy link
Contributor

@gitgabrio plz fix.

@kie-ci3
Copy link
Contributor

kie-ci3 commented Aug 5, 2024

PR job #4 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-runtimes -u #3604 --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-runtimes-pr/job/PR-3604/4/display/redirect

Test results:

  • PASSED: 3272
  • FAILED: 58

Those are the test failures:

org.kie.kogito.mongodb.KogitoProcessInstancesFactoryIT.(?) Container startup failed for image library/mongo:4.4.14
org.kie.kogito.mongodb.PersistentProcessInstancesWithLockIT.(?) Container startup failed for image library/mongo:4.4.14
org.kie.kogito.mongodb.transaction.AbstractTransactionManagerIT.(?) Container startup failed for image library/mongo:4.4.14
org.kie.kogito.events.mongodb.QuarkusMongoDBEventPublisherTest.userTasksEventsCollection java.lang.RuntimeException: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.quarkus.mongodb.deployment.DevServicesMongoProcessor#startMongo threw an exception: java.lang.RuntimeException: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker.io/mongo:4.4
at io.quarkus.mongodb.deployment.DevServicesMongoProcessor.startMongo(DevServicesMongoProcessor.java:106)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:849)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2513)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1538)
at java.base/java.lang.Thread.run(Thread.java:840)
at org.jboss.threads.JBossThread.run(JBossThread.java:501)
Caused by: org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker.io/mongo:4.4
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:359)
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330)
at io.quarkus.mongodb.deployment.DevServicesMongoProcessor.startMongo(DevServicesMongoProcessor.java:172)
at io.quarkus.mongodb.deployment.DevServicesMongoProcessor.startMongo(DevServicesMongoProcessor.java:96)
... 11 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:344)
... 14 more
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:563)
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:354)
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)
... 15 more
Caused by: org.testcontainers.containers.MongoDBContainer$ReplicaSetInitializationException: A single node replica set was not initialized in a set timeout: 60 attempts
at org.testcontainers.containers.MongoDBContainer.checkMongoNodeExitCodeAfterWaiting(MongoDBContainer.java:158)
at org.testcontainers.containers.MongoDBContainer.initReplicaSet(MongoDBContainer.java:179)
at org.testcontainers.containers.MongoDBContainer.containerIsStarted(MongoDBContainer.java:85)
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:542)
... 17 more
org.kie.kogito.persistence.kafka.KafkaProcessInstancesIT.testBasicFlow Unable to persist process instance id: 3ad45e3f-ff3b-4b5f-b652-a77e3cd742f5
org.kie.kogito.quarkus.workflows.AsyncAPIIT.testConsumer java.util.concurrent.TimeoutException: Timeout after waiting for 10000 ms.
org.kie.kogito.quarkus.workflows.EventTimedoutIT.testStartEventWithError
expected: 0L
but was: 1L
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.FilesystemPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.InfinispanPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.JDBCPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testPersistence Failed to load ApplicationContext for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleEmbeddedInstance ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAdHocProcess ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testEmbeddedProcess ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testAsyncWIH ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testMultipleInstance ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBOptimisticLockingIT.testParallelPersistence ApplicationContext failure threshold (1) exceeded: skipping repeated attempt to load context for [WebMergedContextConfiguration@e700eba testClass = org.kie.kogito.it.MongoDBOptimisticLockingIT, locations = [], classes = [org.kie.kogito.it.KogitoSpringbootApplication], contextInitializerClasses = [org.kie.kogito.testcontainers.springboot.MongoDBSpringBootTestResource], activeProfiles = [], propertySourceDescriptors = [], propertySourceProperties = ["kogito.persistence.optimistic.lock=true", "org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true", "server.port=0"], contextCustomizers = [org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@189cbd7c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@2205a05d, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@4fa1c212, org.springframework.boot.test.autoconfigure.actuate.observability.ObservabilityContextCustomizerFactory$DisableObservabilityContextCustomizer@1f, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizer@1c852c0f, org.springframework.boot.test.context.SpringBootTestAnnotation@4c4e31ba], resourceBasePath = "src/main/webapp", contextLoader = org.springframework.boot.test.context.SpringBootContextLoader, parent = null]
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.MongoDBPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLOptimisticLockingIT.testParallelPersistence 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleEmbeddedInstance 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAdHocProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testEmbeddedProcess 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testAsyncWIH 1 expectation failed.
Expected status code <201> but was <400>.
PR check / Build projects / org.kie.kogito.it.PostgreSQLPersistenceIT.testMultipleInstance 1 expectation failed.
Expected status code <201> but was <400>.
org.kie.kogito.integrationtests.springboot.PingPongMessageTest.testPingPongBetweenProcessInstances Assertion condition defined as a org.kie.kogito.integrationtests.springboot.PingPongMessageTest 1 expectation failed.
JSON path $.size() doesn't match.
Expected: <1>
Actual: <0>
within 10 seconds.

@gitgabrio
Copy link
Contributor Author

gitgabrio commented Aug 6, 2024

@elguardian @fjtirado
Long story short:

  1. the failures are related to the modules nested below integration-tests-springboot-processes-persistence-it
  2. they fails also on the main branch, if executed stand alone (i.e. mvn clean install inside target/it/integration-tests-springboot-processes-persistence-it/(module_name) )
  3. after different attempts, I get to the conclusion that those tests are never invoked in main, because integration-tests-springboot-processes-persistence-it is misconfigured
  4. adding invoker.goals = clean install to integration-tests-springboot-processes-persistence-it/invoker.properties actually makes them run, and then the failures become evident (see reference)
  5. without that, the nested project are compiled but not executed, and actually there is no trace of their execution anywhere (no failsafe-report, no surefire-report)
  6. I have the impression those tests have been simply copied and pasted from the quarkus ones, adapted as "mvn invoker", but I can't tell if they have ever been actually executed or simply merged without double checking (maybe something else changed over time)
  7. looking at code, it is clear to me why the tests fails, since the http requests lack some required parameter, but what it is not clear, yet, is how they works on quarkus side, so I'm currently working on that.
    Any hints/hindsight/suggestion would be greatly appreciated.

@gitgabrio
Copy link
Contributor Author

gitgabrio commented Aug 6, 2024

@elguardian @fjtirado
Update. After debugging, it turns out that:

  1. the tests are actually wrongly written, because the http requests lacks required parameters (the ones marked as NotNull in the rest endpoints)
  2. the springboot version actually behave in the right way, because it validate the parameters and, since they are invalid, throws an exception
  3. the quarkus version, on the other side, seems bugged, because a given "validator" is null, so the parameters are not checked, and invalid parameters (i.e. null where NotNull would be required) are allowed

So:

  1. tests should be rewritten (both springboot and quarkus)
  2. quarkus side should be double checked/fixed to implement parameter checking

Screenshot 2024-08-06 alle 08 58 19

@fjtirado
Copy link
Contributor

@gitgabrio I changed persistence tests. Lets see how it goes

@fjtirado fjtirado merged commit 460d166 into apache:main Aug 16, 2024
6 checks passed
@gitgabrio gitgabrio deleted the incubator-kie-issues#1412 branch August 20, 2024 09:24
rgdoliveira pushed a commit to rgdoliveira/kogito-runtimes that referenced this pull request Aug 26, 2024
…ache#3604)

* [incubator-kie-issues#1412] Restoring wrongly deleted files

* [incubator-kie-issues#1412] Fix integration-tests-springboot-kafka-it

* [incubator-kie-issues#1412] Fix generate-resources phase

* [incubator-kie-issues#1412] Fixing persistence test

---------

Co-authored-by: Gabriele-Cardosi <[email protected]>
Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
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.

Review springboot integrationtests inside kogito-runtimes
4 participants