Skip to content

Cache Maven dependencies in database CI - #14056

Merged
tiensonqin merged 1 commit into
masterfrom
ci/1795010184-deps-db-maven-cache
Nov 18, 2026
Merged

tiensonqin merged 1 commit into
masterfrom
ci/1795010184-deps-db-maven-cache

Conversation

@tiensonqin

@tiensonqin tiensonqin commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Cache ~/.m2/repository in both logseq/db CI jobs 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.


CI green opened this PR for Tienson
Implemented in session Investigate repeated Maven fetch failures in CI
Review with Devin · Open in Devin Desktop


@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@tiensonqin
tiensonqin merged commit 28a0b11 into master Nov 18, 2026
10 checks passed
@tiensonqin
tiensonqin deleted the ci/1795010184-deps-db-maven-cache branch November 18, 2026 14:03
@devin-ai-integration

Copy link
Copy Markdown
Contributor
QA: hosted Maven-cache behavior is untested for both DB jobs

Read-only inspection of run 44319708546, attempt 1 confirmed head SHA 1ffcb5bff365c6a9e38666f1da36ace11bc80764. Both DB jobs were still queued, with no recorded steps and no public logs. No product failure was observed. No workflows were rerun or cancelled, and no shared cache state was changed.

Job Cold miss Successful save Actual warm restore
test Untested Untested Untested
lint Untested Untested Untested

Annotated recording: exact run and both queued job views

Chaptered recording

test: no visible logs lint: no visible logs
Test job page Lint job page
Disposable local checks (not hosted evidence)

Passed: a Maven-layout tar round trip with matching SHA-256 digests, exclusion of settings.xml from the cached path, and job-key separation using a synthetic digest. All three ran under env -i without credentials.

Untested: GitHub Actions' actual hashFiles() evaluation and the actions/cache service itself.

Written by Devin

@github-actions github-actions Bot added the :type/dev This label is used to indicate that an issue or PR is related to development tasks or changes that label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:type/dev This label is used to indicate that an issue or PR is related to development tasks or changes that

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant