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

idl_check_compatibility.py parses older version command idl files using files imported from master source

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Server Serverless 2021-11-15

      idl_check_compatibility.py parses older version command idl files using files imported from master source. This can lead to false alarm like below

      [2021/11/04 21:08:46.398] Performing idl check compatibility with release: idls/r5.1.0:
      [2021/11/04 21:08:46.398] Errors found while compiling IDL
      [2021/11/04 21:08:46.398] serverless_types.idl: (35, 8): ID0002: enum 'MigrationProtocol' is a duplicate symbol of an existing enum
      [2021/11/04 21:08:46.398] Found 1 errors
      [2021/11/04 21:08:46.398] Traceback (most recent call last):
      [2021/11/04 21:08:46.398]   File "/data/mci/b0981df248ca885979d6548b41b25947/src/buildscripts/idl/idl_check_compatibility.py", line 1105, in <module>
      [2021/11/04 21:08:46.399]     main()
      [2021/11/04 21:08:46.399]   File "/data/mci/b0981df248ca885979d6548b41b25947/src/buildscripts/idl/idl_check_compatibility.py", line 1086, in main
      [2021/11/04 21:08:46.399]     error_coll = check_compatibility(args.old_idl_dir, args.new_idl_dir, args.include)
      [2021/11/04 21:08:46.399]   File "/data/mci/b0981df248ca885979d6548b41b25947/src/buildscripts/idl/idl_check_compatibility.py", line 975, in check_compatibility
      [2021/11/04 21:08:46.399]     raise ValueError(f"Cannot parse {old_idl_file_path}")
      [2021/11/04 21:08:46.399] ValueError: Cannot parse idls/r5.1.0/src/mongo/db/commands/tenant_migration_donor_cmds.idl
      [2021/11/04 21:08:46.414] Command failed: error waiting on process 'ade6532a-2f94-4ff1-9ea9-1eca713d57a2': exit status 1
      [2021/11/04 21:08:46.558] Task completed - FAILURE.
      [2021/11/04 21:08:46.584] Running post-task commands.
      

            Assignee:
            suganthi.mani@mongodb.com Suganthi Mani
            Reporter:
            suganthi.mani@mongodb.com Suganthi Mani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: