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

Maven Build Cache Extension: add support for state file suffix #1063

Conversation

romain-grecourt
Copy link
Contributor

Introduce a new mechanism that can be used to aggregate partial caches.

E.g.

build -> | javadoc part#1 -|
         | javadoc part#2  |-> release
         | javadoc part#3 -|

The javadoc jobs can use -Dcache.recordSuffix=javadoc to produce augmented state files with a different name. A simple glob like can be used **/target/state-javadoc.xml to archive only the new state.

The release job can download all javadoc artifacts, without conflicts with the state files (unless the javadoc jobs overlap). The javadoc state files can be loaded with -Dcache.loadSuffixes=javadoc, they will be merged with the default state files.

Introduce a new mechanism that can be used to aggregate partial caches.

E.g.

```
build -> | javadoc part#1 -|
         | javadoc part#2  |-> release
         | javadoc part#3 -|
```

The javadoc jobs can use -Dcache.recordSuffix=javadoc to produce augmented state files with a different name.
A simple glob like `**/target/state-javadoc.xml` to archive only the new state.

The release job can download all javadoc artifacts, without conflicts with the state files (unless the javadoc jobs overlap).
The javadoc state files can be loaded with -Dcache.loadSuffixes=javadoc, they will be merged with the default state files.
@romain-grecourt romain-grecourt added this to the 4.0.11 milestone Aug 21, 2024
@romain-grecourt romain-grecourt self-assigned this Aug 21, 2024
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 21, 2024
@romain-grecourt romain-grecourt merged commit 5791371 into helidon-io:master Aug 22, 2024
24 checks passed
@romain-grecourt romain-grecourt deleted the build-cache-maven-extension-state-file-suffix branch August 22, 2024 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants