Repository navigation
Cache Maven dependencies in database CI - #14056
Merged
Merged
Conversation
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
QA: hosted Maven-cache behavior is untested for both DB jobsRead-only inspection of run 44319708546, attempt 1 confirmed head SHA
Disposable local checks (not hosted evidence)Passed: a Maven-layout tar round trip with matching SHA-256 digests, exclusion of Untested: GitHub Actions' actual |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cache
~/.m2/repositoryin bothlogseq/db CIjobs to avoid downloading unchanged Maven dependencies on every run. Existing caches cover tool installations and pnpm, not Maven artifacts; three jobs failed fetching the Clojure 1.12.4 POM (403, 429 in tests, 429 before lint).Keys include OS, Java/Clojure/Babashka versions, and DB/common dependency inputs. Separate job keys prevent an immutable cache saved by one dependency closure from permanently omitting the other's artifacts. Only the artifact repository is cached, not Maven settings or credentials. Checks, dependencies, registries, and access controls are unchanged.
Validation: actionlint and focused static checks passed; removing the cache steps reproduces the original workflow exactly. This reduces repeat requests after a successful cache save; cold runs can still encounter registry errors. Hosted cache save/restore remains to be verified in CI.
Implemented in session Investigate repeated Maven fetch failures in CI
Review with Devin · Open in Devin Desktop