[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: |
|
||||||||
| 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: |