Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22158

bzira needs to support multiple regex matches for Platform, JSDT, WTP, m2e, etc.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.4.0.Alpha1
    • Fix Version/s: 4.3.1.CR1
    • Component/s: build
    • Labels:
      None

      Description

      Currently, bzira supports two ways to define mappings:

      a) hardcoded list:

      def map_linuxtools(version):
          versions = {
              "4.2.1" : "Mars.2 (4.5)",
              "4.2.0" : "Mars.2 (4.5)",
              "4.1.0" : "Mars.1 (4.5)", 
              "4.0.0" : "Mars (4.5)",
              "5.0.0" : "Neon (4.6)",
              "---"   : NO_VERSION
              }
          return versions.get(version, None)
      

      b) regex mapping:

          "Platform" : (lambda version: re.sub(r"4.6(.*)", r"Neon (4.6)\1", version)),
      

      But for Platform, we need two sets of mappings for 4.6 (Neon) and 4.7 (Oxygen).

      Here's a BZ for which we have a target milestone of 4.7:

      https://bugs.eclipse.org/bugs/show_bug.cgi?id=484347

      and here's currently the error that bzira reports:

      [DEBUG] 484347 - [JFace] MessageDialog should use Link instead of Text [Platform, UI, [4.7]] {20160323T17:24:18} (19 days, 4:16:34.025318) -> https://bugs.eclipse.org/484347
      [DEBUG] Mapper: Platform / 4.7 -> 4.7
      [ERROR] Version '4.7' mapped from '4.7' not found in ERT. Please create it or fix the mapping. Bug: #484347 NEW        - Platform-UI-Inbox@eclipse.org - [JFace] MessageDialog should use Link instead of Text
      Query: https://issues.jboss.org/rest/api/2/search?jql=project+%3D+ERT+and+summary+%7E+%27EBZ%23484347%27&maxResults=5
      [INFO] https://bugs.eclipse.org/484347 already proxied as https://issues.jboss.org/browse/ERT-33; checking if something needs updating/syncing.
      

      There's an existing issue https://issues.jboss.org/browse/ERT-33 but it has fixversion of "Neon (4.6) M6" despite the fact that the bugzilla now has a target milestone of 4.7

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                nickboldt Nick Boldt
                Reporter:
                nickboldt Nick Boldt
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: