GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

New issue
Copy link
New issue
Copy link
Closed
#3861
Closed
[ci] Add integration tests with real open-source projects#2693
#3861
Copy link
Assignees
adangel
Labels
an:enhancementAn improvement on existing features / rules
Milestone
6.44.0

Description

@adangel
adangel
opened on Aug 2, 2020
Issue body actions

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
    • Add the following projects to https://github.com/pmd/pmd/blob/master/.travis/project-list.xml
    • Implement Support auxclasspath / typeresolution pmd-regression-tester#48
    • Enhance project list configuration to have a flexible way to configure a script snippet, that tells the tool, how to
      • modify the project to use the latest PMD snapshot
      • execute PMD on the projects as the projects themselves do
      • where to find the pmd report files for diffing
      • see also reproducible builds "buildinfo" file for ideas
    • Add also non-java projects, e.g. apex
  • 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
    • https://github.com/SalesforceLabs/Schedul-o-matic-9000
      • from https://github.com/pmd/pmd/pull/2791/files#r490452799
    • https://github.com/apex-enterprise-patterns/fflib-apex-common
      • from Detect single rules with auto-gen-config pmd-regression-tester#69 (comment)
    • https://github.com/nawforce/apex-link/tree/master/samples
    • Github Search: https://github.com/search?l=Apex&o=desc&q=apex&s=stars&type=Repositories

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

  1. adangel
    added
    an:enhancementAn improvement on existing features / rules
    on Aug 2, 2020
  2. linusjf commented on Aug 2, 2020

    @linusjf
    linusjf
    on Aug 2, 2020 · Hidden as off-topic
    show commentMore actions
  3. rsoesemann commented on Oct 13, 2020

    @rsoesemann
    rsoesemann
    on Oct 13, 2020
    Member
    More actions

    @adangel if you need more than one Apex repo just use the top candidates on Github https://github.com/search?l=Apex&o=desc&q=apex&s=stars&type=Repositories They are all good candidates

  4. adangel
    self-assigned this
    on Feb 19, 2022
  5. adangel
    added this to the 6.44.0 milestone on Feb 19, 2022
  6. adangel
    changed the title [-]Add integration tests with real open-source projects[/-] [+][ci] Add integration tests with real open-source projects[/+] on Mar 18, 2022
  7. adangel
    added 2 commits that reference this issue on Mar 18, 2022

    [ci] Add apex projects for regression testing

    fbcfebd

    [doc] Update release notes (pmd#2693)

    2f5f7f3
  8. adangel
    closed this as completedin #3861on Mar 27, 2022
  9. adangel
    modified the milestone: 6.44.0 on Mar 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @adangel
    adangel

Labels

an:enhancementAn improvement on existing features / rules

Type

No type

Projects

No projects

    Milestone

    • 6.44.0

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.