GeezerVison is showing github.com — [ci] Add integration tests with real open-source projects · Issue #2693 · pmd/pmd
[ci] Add integration tests with real open-source projects #2693
Description
Is your feature request related to a problem? Please describe.
In order to find problems like #2663 earlier, we should have a way to run the latest PMD on real projects.
We already have pmd-regression-tester, but that does have some limitations (e.g. typeresolution) and has (maybe?) a slightly different goal (fine grained rule violation comparisons).
At least, we should see, when the real open-source projects fail to build (like smoke test), but better even would be to see, which rules behave different now and cause the builds to fail (or which stacktraces).
Describe the solution you'd like
- Improve and use directly pmd-regression-tester
- Consider running not all projects on pull-request, but only for pushes, or maybe we could even split this into a completely separate build task? So that it appears as a second commit verification in github.
- we could also use github-action maybe?
Projects that can be used:
- java
- https://github.com/huxi/sulky
- reproduce: change pmdVersion in build.gradle to 6.26.0 and run
./gradlew pmdMain pmdTest
> java.lang.NoClassDefFoundError: ch/qos/logback/core/joran/spi/JoranException
- https://github.com/neowu/core-ng-project
- Use openjdk14
- reproduce: change pmdVersion in gradle/check.gradle to 6.26.0 and run `./gradlew pmdMain pmdTest
> java.lang.NoClassDefFoundError: javassist/CannotCompileException
- apex
Describe alternatives you've considered
Have a separate project, e.g. pmd/pmd-it .
- Add there some scripts to
- clone one or more projects
- modify the project to use the latest PMD snapshot
- execute PMD on the projects as the projects themselves do
- Configure travis to build this
- Trigger the travis build after building the main repo pmd/pmd (e.g. via https://docs.travis-ci.com/user/triggering-builds/)
- That would give us a smoke test at least - but nothing to analyze directly.
Additional context
Activity
linusjf commented on Aug 2, 2020
rsoesemann commented on Oct 13, 2020
changed the title
[-]Add integration tests with real open-source projects[/-] [+][ci] Add integration tests with real open-source projects[/+] on Mar 18, 2022
Metadata
Metadata
Development
No branches or pull requestsIssue actions