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

Bump h2 from 1.4.197 to 2.2.220 #2302

Merged
merged 9 commits into from
Aug 1, 2023
Merged

Conversation

tkobayas
Copy link
Contributor

@tkobayas tkobayas commented Jul 20, 2023

  • remove MVCC

referenced Pull Requests:

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:
  • a pull request please add comment: Jenkins retest this

  • a full downstream build please add comment: Jenkins run fdb

  • a compile downstream build please add comment: Jenkins run cdb

  • a full production downstream build please add comment: Jenkins execute product fdb

  • an upstream build please add comment: Jenkins run upstream

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.

@tkobayas
Copy link
Contributor Author

Removing ;MVCC=true and adding ;MODE=LEGACY;OLD_INFORMATION_SCHEMA=TRUE is not enough.

[2023-07-20T03:28:27.827Z] 2023-07-19 23:28:26,670 [main] [SqlExceptionHelper] ERROR Table "CORRELATIONPROPERTYINFO" not found; SQL statement:

Even table creation seems to be failing.

It is out of my expertise. @gmunozfe Could you kindly help on this or involve someone suitable? Thanks!

@tkobayas tkobayas requested a review from gmunozfe July 20, 2023 09:21
@mareknovotny mareknovotny added backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch labels Jul 21, 2023
@tkobayas
Copy link
Contributor Author

A great number of test failures are resolved. Now 7 failures. Thank you and please check them! @gmunozfe

Test Result (7 failures / +7)
    org.jbpm.test.container.test.ejbservices.process.EMigrateProcessTest.testUpgradeProcessInstancesWithNodeMapping
    org.jbpm.test.container.test.ejbservices.process.EMigrateProcessTest.testUpgradeProcessInstance
    org.jbpm.test.container.test.ejbservices.process.EMigrateProcessTest.testUpgradeProcessInstances
    org.jbpm.test.container.test.ejbservices.process.EMigrateProcessTest.testUpgradeProcessInstanceWithNodeMapping
    org.jbpm.test.container.test.ejbservices.task.EGetTaskTest.testGetTaskInstanceInfo
    org.jbpm.test.container.test.ejbservices.task.EGetTaskTest.testTaskQuery
    org.jbpm.test.container.test.ejbservices.task.ETaskOperationTest.testStartAndComplete

@tkobayas
Copy link
Contributor Author

@gmunozfe
Copy link
Member

gmunozfe commented Jul 24, 2023

@tkobayas Great, however, I'm not very convinced with my last commit (it's a workaround valid for h2 to skip the hibernate bug tracked as HHH-13711, but won't work for the rest of the databases). The point here is these container tests are using wildfly-dist 23.0.0-Final, which doesn't include the hibernate-core fix (from 5.4.13), so dropping tables for cleaning up will only work if we replace that module (it's using hibernate-core-5.3.20.Final) or apply the workaround, wdyt?

@gmunozfe
Copy link
Member

@tkobayas Great, however, I'm not very convinced with my last commit (it's a workaround valid for h2 to skip the hibernate bug tracked as HHH-13711, but won't work for the rest of the databases). The point here is these container tests are using wildfly-dist 23.0.0-Final, which doesn't include the hibernate-core fix (from 5.4.13), so dropping tables for cleaning up will only work if we replace that module (it's using hibernate-core-5.3.20.Final) or apply the workaround, wdyt?

@tkobayas Finally, I have decided that parameterization will work fine for other profiles, we can override "metadata" as drop-source and empty for drop-script. Please merge tkobayas#3

Parameterize drop script for other dbs
@tkobayas
Copy link
Contributor Author

@gmunozfe Thanks, it looks good.

@tkobayas tkobayas marked this pull request as ready for review July 25, 2023 05:10
@tkobayas
Copy link
Contributor Author

GHA Java11 : Not related to this PR

2023-07-25T06:20:50.2312963Z [ERROR] Tests run: 6, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.23 s <<< FAILURE! - in org.jbpm.process.workitem.email.SendHtmlTest
2023-07-25T06:20:50.2313761Z [ERROR] sendHtmlWithBadAuthentication(org.jbpm.process.workitem.email.SendHtmlTest)  Time elapsed: 0.006 s  <<< ERROR!
2023-07-25T06:20:50.2314444Z java.lang.RuntimeException: java.net.BindException: Address already in use (Bind failed)

Copy link
Member

@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, thanks a lot @tkobayas for taking care of this!

Copy link
Member

@danielezonca danielezonca left a comment

Choose a reason for hiding this comment

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

Overall LGTM, some minor comments, feel free to address them with a following PR if you prefer

@gmunozfe
Copy link
Member

gmunozfe commented Aug 1, 2023

@danielezonca @tkobayas I've proposed tkobayas#4 covering all the changes coming from the review

[bump h2-220] Changes after review
@tkobayas
Copy link
Contributor Author

tkobayas commented Aug 1, 2023

@gmunozfe Thank you!

@tkobayas
Copy link
Contributor Author

tkobayas commented Aug 1, 2023

The changes are only test cases and jbpm-xes which doesn't have downstream projects, so no need to run FDB in droolsjbpm-build-bootstrap again.

@sonarcloud
Copy link

sonarcloud bot commented Aug 1, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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

71.4% 71.4% Coverage
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@tkobayas
Copy link
Contributor Author

tkobayas commented Aug 1, 2023

0 failed :)

@danielezonca danielezonca merged commit 6c7be26 into kiegroup:main Aug 1, 2023
3 of 4 checks passed
github-actions bot pushed a commit that referenced this pull request Aug 1, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
github-actions bot pushed a commit that referenced this pull request Aug 1, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
danielezonca pushed a commit that referenced this pull request Aug 2, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Toshiya Kobayashi <toshiyakobayashi@gmail.com>
Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
danielezonca pushed a commit that referenced this pull request Aug 2, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Toshiya Kobayashi <toshiyakobayashi@gmail.com>
Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
fjtirado pushed a commit to fjtirado/jbpm that referenced this pull request Aug 17, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
fjtirado pushed a commit to fjtirado/jbpm that referenced this pull request Sep 15, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
fjtirado pushed a commit to fjtirado/jbpm that referenced this pull request Sep 15, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
fjtirado pushed a commit to fjtirado/jbpm that referenced this pull request Nov 7, 2023
* Bump h2 from 1.4.197 to 2.2.220
- remove MVCC

* [bump to h2-220]: add param NON_KEYWORDS=VALUE

* [bump h2 220] Fix container tests

* [bump h2-220] Parameterize drop script for other dbs

* [bump h2-220] Changes after review

---------

Co-authored-by: Gonzalo Muñoz <gmunozfe@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-7.67.x Generate backport PR for 7.67.x branch backport-7.67.x-blue Generate backport PR for 7.67.x-blue branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants