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

Issue #251: ci:build patch-filter jar buring a build #250

Merged
merged 1 commit into from Aug 25, 2020

Conversation

HuGanghui
Copy link
Contributor

@HuGanghui HuGanghui commented Aug 18, 2020

Issue #251: ci:build patch-filter jar buring a build

this refers to #246

@HuGanghui HuGanghui force-pushed the patch-filter branch 2 times, most recently from e8c0017 to 41c39a7 Compare August 18, 2020 08:26
@HuGanghui HuGanghui changed the title ci:build patch-filter jar buring a build Issue #251: ci:build patch-filter jar buring a build Aug 19, 2020
@romani
Copy link
Member

romani commented Aug 20, 2020

please rebase and resolve CI failure

@HuGanghui HuGanghui force-pushed the patch-filter branch 2 times, most recently from 72ec230 to b2d662f Compare August 21, 2020 16:31
@romani
Copy link
Member

romani commented Aug 22, 2020

Good step forward, but we need to have config of checkstyle (copy from main repo + new filters) and usage of it maven pom.xml.

You can test all on your local by the same command as we use in CI

@HuGanghui
Copy link
Contributor Author

but we need to have config of checkstyle (copy from main repo + new filters) and usage of it maven pom.xml.

@romani I am not clear about it, does it mean that I need to add a checkstyle config in to eclipse-cs and then test eclipse-cs in Eclipse?

@romani
Copy link
Member

romani commented Aug 23, 2020

No, you need to add
Checkstyle execution same as at https://github.com/checkstyle/sonar-checkstyle/blob/c9a22205393b4d777548e9b414c5cb64628e35b2/pom.xml#L405
With only difference is that checkstyle config will be hosted in repo config folder and contains two more filters.

Execution of mvn verify should trigger execution of checkstyle a validate code

@HuGanghui

This comment has been minimized.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

Items:

pom.xml Outdated Show resolved Hide resolved
@romani
Copy link
Member

romani commented Aug 23, 2020

@HuGanghui HuGanghui force-pushed the patch-filter branch 3 times, most recently from f08308a to 9863acd Compare August 24, 2020 12:20
@HuGanghui

This comment has been minimized.

@HuGanghui

This comment has been minimized.

@HuGanghui HuGanghui force-pushed the patch-filter branch 2 times, most recently from da327d3 to 88a1d54 Compare August 24, 2020 12:44
@romani
Copy link
Member

romani commented Aug 25, 2020

please do same as CI do:
CMD="./build-metafile-gen.sh && ./build-patch-filter.sh && mvn install

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

items:

target/checkstyle-cachefile Outdated Show resolved Hide resolved
build-patch-filter.sh Outdated Show resolved Hide resolved
@HuGanghui HuGanghui force-pushed the patch-filter branch 4 times, most recently from 222c99e to a4dd66a Compare August 25, 2020 07:03
@HuGanghui
Copy link
Contributor Author

HuGanghui commented Aug 25, 2020

@romani

...please execute your config in eclipse-cs on multiple commits to make sure it works and could produce some violations
Your report generator might come handy

if what you mean is that using report generator in ci, then it is not easy to use, because it need Checkstyle repository and Contribution repository, if just use report-generator in eclipse-cs, here is the result: checkstyle/patch-filters#297

@romani
Copy link
Member

romani commented Aug 25, 2020

if what you mean is that using report generator in ci

Not in CI. Do on local and share report.

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

items:

.travis.yml Outdated

# JDK 11 (Long Term Support version)
- jdk: openjdk11
env:
- DESC="install (openjdk11)"
- CMD="./build-metafile-gen.sh && mvn install && git diff"
- CMD="./build-metafile-gen.sh && ./build-patch-filter.sh && mvn install && git diff HEAD~2 HEAD~1 > target/show.patch && mvn clean verify && git diff"
Copy link
Member

Choose a reason for hiding this comment

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

remove && git diff HEAD~2 HEAD~1 > target/show.patch && mvn clean verify

install already to verify

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

build-patch-filter.sh Outdated Show resolved Hide resolved
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

item:

.gitignore Show resolved Hide resolved
Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

item:

config/checkstyle_sevntu_checks.xml Outdated Show resolved Hide resolved
@romani romani merged commit aa9d3d3 into checkstyle:master Aug 25, 2020
@romani
Copy link
Member

romani commented Aug 25, 2020

@Calixte , FYI.

We will remove HACK with build.....sh script ones I deploy patch filter to maven repo.

Id there will be any false positives from Checkstyle validation of code, we might disable it, but for now this will help us to start following checkstyle config from now, all new code should follow checkstyle style.

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.

None yet

2 participants