bamaer opened a new pull request, #9617:
URL: https://github.com/apache/hop/pull/9617
Fixes #9611. Builds on #9616; until that is merged, this PR also shows its
commits.
Marketplace install receipts now record:
- a SHA-256 per installed file (`checksums`);
- what activation did to each shared `lib/core` jar (`sharedFiles`):
- the action: created, replaced, unchanged or kept, or not shipped any
more;
- whether the marketplace created the jar;
- for a replaced jar, where it was backed up;
- where the client's own copy was backed up;
- the version an install replaced (`previousVersion`).
A replaced `lib/core` jar is backed up first, to a folder per install under
`plugins/.marketplace/backup/<plugin>/<version>/`, so a backup is never
overwritten. When the backup fails, the existing jar stays.
Receipts written by older versions keep loading; the new fields are written
on the next install of that plugin. #9612–#9614 build on these fields.
The Beam fat jar builder now skips dot-folders under `plugins/`
(`.marketplace`, `.staging`), so backed-up or staged jars do not end up in a
fat jar.
Tests: unit tests against a local HTTP repository cover:
- checksums and the previous version;
- each shared-jar action;
- backups across reinstalls and downgrades;
- a jar an update stops shipping;
- staged activation;
- receipts written by Hop 2.20.
A unit test covers the fat jar scan. No integration test: the marketplace
has no IT project yet.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]