Skip to content

Skip javadoc generation in integration test workflows - #4657

Merged
uglide merged 1 commit into
masterfrom
ci/skip-javadoc-in-integration-tests
Jul 29, 2026
Merged

uglide merged 1 commit into
masterfrom
ci/skip-javadoc-in-integration-tests

Conversation

@uglide

@uglide uglide commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Javadoc jars were being built on every integration test run, adding avoidable time to CI:

  • integration.yml had an explicit "Build docs" step running mvn javadoc:jar.
  • The attach-javadoc execution in pom.xml is bound to the package phase, so every mvn clean verify also rebuilt the javadoc jar β€” both in integration.yml (via make test-local) and in the run-tests composite action used by every matrix job of test-on-docker.yml.

Changes

  • .github/workflows/integration.yml β€” removed the "Build docs" step and set MAVEN_OPTS: -Dmaven.javadoc.skip=true on the test step (the property has to come in via the environment because mvn is invoked through make).
  • .github/actions/run-tests/action.yml β€” added -Dmaven.javadoc.skip=true to both mvn clean verify invocations, covering all test-on-docker.yml matrix jobs.

No changes needed elsewhere: spring-data-redis-integration.yml already skips javadoc, doctests.yml/benchmarks.yml stop at the test phase, and unit-tests.yml intentionally keeps mvn javadoc:jar so javadoc build breakage is still caught in CI β€” once, in the cheap workflow, instead of in every integration job.

πŸ€– Generated with Claude Code


Note

Low Risk
CI-only workflow tuning with no application or runtime behavior changes; Javadoc validation remains in unit-tests.yml.

Overview
Speeds up integration CI by not building Javadoc on every integration run. Javadoc is still built in unit-tests.yml, so doc breakage stays covered once in the cheaper workflow.

In integration.yml, the dedicated Build docs step (mvn javadoc:jar) is removed, and the test step sets MAVEN_OPTS: -Dmaven.javadoc.skip=true so make test-local skips Javadoc during verify/package.

In run-tests (used by Docker matrix jobs), both Maven invocations add -Dmaven.javadoc.skip=true, with comments noting validation happens in unit tests.

Reviewed by Cursor Bugbot for commit 1dda90c. Bugbot is set up for automated code reviews on this repo. Configure here.

Javadoc jars were built on every integration test run: integration.yml
had an explicit "Build docs" step, and the javadoc:jar execution bound
to the package phase ran during every "mvn clean verify" in both
integration.yml (via make test-local) and the run-tests composite
action used by test-on-docker.yml. Skip it in these workflows to speed
up CI; javadoc build breakage is still caught by unit-tests.yml.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Test Results

β€‡β€ˆ206 files  Β±0β€‚β€ƒβ€‡β€ˆ206 suites  Β±0   10m 23s ⏱️ +2s
8β€ˆ044 tests Β±0  7β€ˆ787 βœ… Β±0  257 πŸ’€ Β±0  0 ❌ Β±0 
8β€ˆ064 runsβ€Š Β±0  7β€ˆ807 βœ… Β±0  257 πŸ’€ Β±0  0 ❌ Β±0 

Results for commit 1dda90c. ± Comparison against base commit 67a3ce9.

♻️ This comment has been updated with latest results.

@uglide
uglide merged commit 451e565 into master Jul 29, 2026
14 checks passed
@uglide
uglide deleted the ci/skip-javadoc-in-integration-tests branch July 29, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants