[SERVER-51877] Check that all API Version 1 commands have an associated IDL file specifying inputs/outputs Created: 29/Oct/20  Updated: 29/Oct/23  Resolved: 10/Nov/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Samyukta Lanka Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-51883 Provide mechanism for only running te... Closed
Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-11-16
Participants:

 Description   

list_idl_files_for_api_version.py should call "listCommands" on a mongod and on a mongos built from the current commit. It should call each command with apiVersion: "1", apiStrict: true to check if the command is in API Version 1 in the current commit. If so, the script will assert that there is an IDL file specifying that command, or that the command is in a hard-coded list of excused commands (those tested in PM-1846, plus "insert", and perhaps others). If the script finds a command in API Version 1 on mongod but not mongos, or vice versa, it should print an error and quit.

Until all API Version 1 commands' inputs/outputs are specified in IDL, this part of the script will have to stay disabled.



 Comments   
Comment by Githook User [ 10/Nov/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-51877 Check all API V1 commands are defined in IDL
Branch: master
https://github.com/mongodb/mongo/commit/e618ffe3d88cf7193f1210476a592d55eeb2613d

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