[SERVER-53200] Create IDL compatibility checker script Created: 03/Dec/20  Updated: 29/Oct/23  Resolved: 22/Jan/21

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: Huayu Ouyang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Repl 2021-01-25
Participants:

 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.



 Comments   
Comment by Githook User [ 22/Jan/21 ]

Author:

{'name': 'Huayu Ouyang', 'email': 'huayu.ouyang@mongodb.com', 'username': 'huayu-ouyang'}

Message: SERVER-53200 Create IDL compatibility checker script
Branch: master
https://github.com/mongodb/mongo/commit/074256c862c2a275ae888570917629fd3b2f879b

Generated at Thu Feb 08 05:30:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.