Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-383

More fuzzy matching of bug ids in PR titles

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9
    • Component/s: bots
    • Labels:
      None

      Description

      Today the bots are fairly strict when trying match a PR title to an issue. The bots should correctly find the JBS issue for the following titles:

      * JDK-8123456
      * JDK-8123456:
      * JDK-8123456: the wrong description
      * 8123456
      * 8123456: the wrong descritption
      * 8123456:
      * JDK-8123456 I forgot the colon and used a space
      * 8123456 I forgot the colon and used a space
      * 8123456-I used a dash instead of a colon
      * JDK-8123456-I used a dash instead of a colon

      For extra bonus points we can use Dice's coefficient to determine how similar the description is to the actual description, to try to figure out if the user made a typo in the description or if the issue id and the description don't match at all (the user then either used the wrong id or wrong desc).

      The algorithm for comparing strings using Dice's coefficient can be found in stringUtils.cpp: https://github.com/openjdk/jdk/blob/6bab0f539fba8fb441697846347597b4a0ade428/src/hotspot/share/utilities/stringUtils.cpp#L46

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rwestberg Robin Westberg (Inactive)
              Reporter:
              ehelin Erik Helin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: