Skip to content

ci: add restore-keys to the maven-verify Maven cache#1399

Draft
joaodinissf wants to merge 2 commits into
dsldevkit:masterfrom
joaodinissf:ci/maven-verify-cache-restore-keys
Draft

ci: add restore-keys to the maven-verify Maven cache#1399
joaodinissf wants to merge 2 commits into
dsldevkit:masterfrom
joaodinissf:ci/maven-verify-cache-restore-keys

Conversation

@joaodinissf
Copy link
Copy Markdown
Collaborator

Note

Stacked on #1396. Against master the diff includes #1396's commit (it drops out once #1396 merges) — review only the restore-keys commit.

The lint and spotbugs jobs fall back to a restore-keys prefix on a pom.xml change; maven-verify was missing it, so any pom change gave it a hard cache miss → full ~/.m2 re-download. Adds the same restore-keys for parity across all three Maven jobs.

🤖 Generated with Claude Code

joaodinissf and others added 2 commits May 30, 2026 22:58
Replace the pmd/checkstyle jobs with a parallel shape that gives early,
inline feedback and stops re-running analysis inside the build:

  - lint: compile + pmd:pmd + checkstyle:checkstyle (SARIF) + pmd:cpd-check,
    -T 2C, --fail-never; gates by counting the merged SARIF (+ cpd.xml grep).
    Fails in ~3-5 min on its own check, independent of the build.
  - spotbugs: compile + spotbugs:spotbugs (SARIF), -Xmx4g, own parallel lane
    (the slow analysis).
  - maven-verify: build + tests only; the redundant checkstyle/pmd/spotbugs
    goals are dropped (now owned by lint/spotbugs).
  - line-endings: unchanged.

All three emit SARIF 2.1.0, merged per tool and uploaded to Code Scanning
(security-events: write) for inline annotations on the PR diff + Security tab.
No custom Python annotator.

Count-gate rather than the *:check goals: the check goals @Execute-fork a
second analysis and cannot emit SARIF, and without the full compile classpath
they false-positive on type-resolving rules. Each report goal runs once
(full-reactor compile -> correct + SARIF) and the gate counts the result.
Rationale + tables in docs/ci-static-analysis-design.md; measurement protocol
in docs/ci-measurement-protocol.md.

CPD gating is wired but inert until dsldevkit#1339 lowers the token threshold.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The lint and spotbugs jobs fall back to a restore-key prefix on a pom.xml
change; maven-verify lacked it, so any pom change gave it a hard cache miss and
a full ~/.m2 re-download. Add the same restore-keys for parity across all three
Maven jobs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant