Skip to content

[Backport maven-3.9.x] #14207: ci: skip checkstyle on non-Linux build and integration-test jobs - #14210

Open
gnodet wants to merge 2 commits into
apache:maven-3.9.xfrom
gnodet:ci/skip-checkstyle-redundant-jobs-39x
Open

gnodet wants to merge 2 commits into
apache:maven-3.9.xfrom
gnodet:ci/skip-checkstyle-redundant-jobs-39x

Conversation

@gnodet

@gnodet gnodet commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Checkstyle is already enforced on Linux in the build job. Running it again on Windows and macOS, and again in integration-test, adds overhead without catching anything new.

  • In the build matrix job: skip checkstyle on non-Linux runners (Windows, macOS) via a separate step with if: runner.os != 'Linux'; Linux keeps enforcing it
  • In the integration-test job: skip entirely (runs against a separate maven-integration-testing repo, not the maven source)

Backport of #14207.

I hereby declare that the contents of this pull request are licensed under the Apache License 2.0, and I am authorized to contribute them under that license.

@gnodet-bot gnodet-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.

These changes correctly skip Checkstyle on non-Linux runners (Windows, macOS) to speed up CI without losing the quality gate on Linux. The integration-test job also gets -Dcheckstyle.skip=true which is consistent. The backport is clean and matches the intent of #14207.


Review generated by an AI agent, Hermès — please verify findings before acting on them.

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.

2 participants