Create IDL compatibility checker script

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • Repl 2021-01-25
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The script should accept two directories as arguments, the "old" and "new" directories. We should start off by finding all API V1 IDL specs from the new directory. This corresponds to the following pseudocode:

      # Find API V1 specifications in the current commit.
      new_commands = {}
      for each file new_file in new_dir:
          new_idl := idl.parser.parse(new_file)
          for each command new_cmd in new_idl:
              if new_cmd.api_version == "":
                  continue
      
              if new_cmd.api_version != "1":
                  # We're not ready to handle future API versions yet.
                  record error
      
              assert new_cmd.command_name not in new_commands already
              new_commands[new_cmd.command_name] := new_cmd
      

      As a part of this ticket we should also set up test directories to be able to run both successful and failing tests.

            Assignee:
            Huayu Ouyang
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: