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 #529: Final removal of 'launch.groovy' #556

Merged
merged 2 commits into from
May 1, 2021

Conversation

nrmancuso
Copy link
Member

@nrmancuso nrmancuso commented Apr 26, 2021

closes #529

Found:

patch-diff-report-tool/README.md:6) execute `groovy launch.groovy --listOfProjects projects-to-test-on.properties
.travis.yml:        - DESC="checkstyle-tester (launch.groovy) on linux"
.travis.yml:        - CMD="./.ci/travis.sh checkstyle-tester-launch-groovy"
.ci/travis.sh:checkstyle-tester-launch-groovy)
.ci/travis.sh:  ./codenarc.sh . launch.groovy > launch.log && cat launch.log && grep '(p1=0; p2=11; p3=1)' launch.log

I will take care of this in a separate commit. Marking this draft until then.

@nrmancuso nrmancuso marked this pull request as draft April 26, 2021 14:06
@nrmancuso nrmancuso force-pushed the issue-529-b branch 3 times, most recently from 438b283 to a53d8a2 Compare April 26, 2021 15:34
Comment on lines -34 to -43
checkstyle-tester-launch-groovy)
checkout_from https://github.com/checkstyle/checkstyle
cd .ci-temp/checkstyle
LOCAL_GIT_REPO=$(pwd)
mvn --batch-mode clean install -Passembly
cd ../../checkstyle-tester
groovy diff.groovy -r "$LOCAL_GIT_REPO" -l projects-for-travis.properties --patchConfig my_check.xml \
--patchBranch master --mode single --allowExcludes
;;

Copy link
Member Author

Choose a reason for hiding this comment

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

This is a duplicate of checkstyle-tester-diff-groovy-patch now that launch is removed, so we can remove this job.

Comment on lines -71 to -78
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
DESC: "checkstyle-tester (launch.groovy) on guava"
CMD1: " git clone -q --depth=10 --branch=master "
CMD2: " https://github.com/checkstyle/checkstyle C:\\projects\\contribution\\checkstyle "
CMD3: " && cd checkstyle && mvn clean install -Passembly"
CMD4: " "
CMD5: " && cd ..\\checkstyle-tester "
CMD7: " && groovy launch.groovy -l projects-for-travis.properties -c checks-nonjavadoc-error.xml -i\""
Copy link
Member Author

Choose a reason for hiding this comment

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

This is duplicated by the checkstyle-tester (diff.groovy) on guava job below.

@nrmancuso nrmancuso marked this pull request as ready for review April 26, 2021 15:51
6) execute `groovy launch.groovy --listOfProjects projects-to-test-on.properties
--config my_check.xml --ignoreExceptions`
6) execute `groovy diff.groovy --localGitRepo /home/johndoe/projects/checkstyle --baseBranch i111-my-fix
--patchBranch i111-my-fix-mutation --config config.xml --listOfProjects projects-to-test-on.properties`
7) copy `checkstyle-result.xml` from `checkstyle-tester/reports/project-name/`
to some other location.
Copy link
Member

@rnveach rnveach Apr 30, 2021

Choose a reason for hiding this comment

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

It looks like this readme is completely outdated or out of whack. There is no reason for this utility to be an after thought to running diff.groovy as diff.groovy calls it. We should update this in a new issue. I think it should be more standalone since it is it's own utility. We should just specify how to incorporate it.

Copy link
Member Author

Choose a reason for hiding this comment

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

@romani romani merged commit 685f33b into checkstyle:master May 1, 2021
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.

Deprecate launch.groovy and merge functionality into diff.groovy
4 participants