Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-53200

Create IDL compatibility checker script

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.9.0
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2021-01-25

    Description

      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.

      Attachments

        Activity

          People

            huayu.ouyang@mongodb.com Huayu Ouyang
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: