-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(installer): BDM comparison (#2747)
Add a new service method `isDeployed(byte[] bdmArchive)` to compare a given bdm archive to install with the current deployed bdm. To perform the comparison, we uses the generated server jar. This jar contains the generated classes + the bom.xml file. Before generating the server jar, we set the productVersion in the bom.xml stored to match the current platform version. This way we ensure that the result of the generation + schema update is equivalent for a given xml model. BDM comparison is used at application install/update. If the bdm are equivalent when updating, the tenant is not paused and no bdm update is performed. This should limit the platform downtime (especially in cluster) when updating an SCA without updating the bonita version. To also ensure that the bdm server jar can be compared with another equivalent version, the utility method to create jar file in IOUtils now forces the JarEntry creation/lastUpdate date and time. To be able to generate a bdm server jar to do the comparison, a `disableRuntimeClassesValidation` flag has been added to the CodeGenerator. The flag is true by default. The application version and its semver implementation are now part of the ApplicationArchive. Closes DEV-552 --------- Co-authored-by: Bonita CI <[email protected]> Co-authored-by: Adrien Kantcheff <[email protected]>
- Loading branch information
1 parent
9470dd9
commit 447aa9c
Showing
30 changed files
with
633 additions
and
400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.