Skip to content

Conversation

@nineinchnick
Copy link
Member

Description

This job is not supposed to download all dependencies, so it should not be saving the local Maven repository in the GitHub Actions cache. Since it can run quicker than other jobs that do a full build, it can generate an incomplete cache entry, preventing bigger cache entries from being saved.

Additional context and related issues

Release notes

(x) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

This job is not supposed to download all dependencies, so it should not
be saving the local Maven repository in the GitHub Actions cache. Since
it can run quick than other jobs that do a full build, it can generate
an incomplete cache entry, preventing bigger cache entries from being
saved.
@cla-bot cla-bot bot added the cla-signed label Jan 30, 2023
Copy link
Member

@findepi findepi left a comment

Choose a reason for hiding this comment

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

@nineinchnick explained to me offline how it works. thanks Jan!

@nineinchnick
Copy link
Member Author

Just a note, the v3 of actions/cache added separate actions for saving and restoring the cache. See https://github.com/actions/cache/blob/main/caching-strategies.md#make-cache-read-only--reuse-cache-from-centralized-job

We can refactor .github/actions/setup and it's usage in .github/workflows/ci.yml to take advantage of that and remove the steps that delete the local Maven repository. But I'd suggest doing this in a separate PR.

@findepi
Copy link
Member

findepi commented Jan 30, 2023

@nineinchnick can you please do me a favor and check why the build isn't green?

@nineinchnick
Copy link
Member Author

@findepi findepi merged commit 6c67e32 into trinodb:master Jan 31, 2023
@github-actions github-actions bot added this to the 407 milestone Jan 31, 2023
@nineinchnick nineinchnick deleted the ci-test-matrix-maven-cache branch February 2, 2023 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants