Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Verify checkstyle and spotbugs for all modules #17858

Closed
wants to merge 1 commit into from

Conversation

nicoloboschi
Copy link
Contributor

Motivation

#17750 changes don't pass checkstyle check on a non core module. CI didn't fail because we don't check checkstyle on those modules.

Modifications

  • Added checkstyle and spotbugs checks for all the modules
  • doc-not-needed

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

LGTM


- name: Build core-modules
run: |
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true -Dcheckstyle.skip -Dspotbugs.skip
Copy link
Member

Choose a reason for hiding this comment

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

the syntax for skipping doesn't look right. I'd assume -Dspotbugs.skip=true. Please validate locally that the commands do what is expected.

Copy link
Contributor

Choose a reason for hiding this comment

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

I usually use that syntax locally


- name: Build core-modules
run: |
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true -Dcheckstyle.skip -Dspotbugs.skip
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true -Dcheckstyle.skip -Dspotbugs.skip
mvn -B -T 1C -ntp -Pcore-modules,-main clean install -DskipTests -Dlicense.skip=true -Drat.skip=true -Dcheckstyle.skip=true -Dspotbugs.skip=true

@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Sep 27, 2022
@nicoloboschi
Copy link
Contributor Author

the problem is that checkstyle and spotbugs are not enabled in all the projects.
A solution could be to add the plugins for all the modules and set skip to true for them

@tisonkun
Copy link
Member

A solution could be to add the plugins for all the modules and set skip to true for them

Yes. This can be a root build plugin.

@nicoloboschi
Copy link
Contributor Author

Closing due to #18142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants