[SERVER-51876] Create script to find and download IDL files Created: 29/Oct/20  Updated: 29/Oct/23  Resolved: 09/Nov/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 5.0 Required
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

Backwards Compatibility: Fully Compatible
Sprint: Repl 2020-11-16
Participants:

 Description   

Write a Python script, buildscripts/idl/list_idl_files_for_api_version.py, that will find all IDL files in the current commit as well as from all release tags starting at r4.9.0 up to the most recent release tag on the branch. The script assumes that the mongo repository is already cloned and the current revision checked out via the git.get_project command.

list_idl_files_for_api_version.py will first copy all IDL files in the src/mongo/db directory to a separate directory. It will then get a list of all tags and filter for release tags starting at r4.9.0 (or whichever release first includes API V1 IDL commands) and after via regex. This list of tags will be used to determine which branches the IDL files will be compared against. The script will iterate over all relevant release tags and copy all IDL files from the branch to a separate directory. (For speed, the script may avoid checking out the whole repo, and instead use git ls-tree --name-only -r $VERSION | grep -E '.*\.idl' to list IDL files and git show to retrieve them.)



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

Author:

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

Message: SERVER-51876 Create script to check out past IDL files
Branch: master
https://github.com/mongodb/mongo/commit/330d2ee8672720d46b3d393c54b078425ced6b4f

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