[SERVER-76437] Add a "large file" check to the commit queue Created: 22/Jun/22  Updated: 29/Oct/23  Resolved: 21/Apr/23

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

Type: Improvement Priority: Major - P3
Reporter: Jeffrey Zambory Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Backwards Compatibility: Fully Compatible
Participants:
Story Points: 3

 Description   

Sometimes, large files can be accidentally checked into the mongo repo. These files are things like build artifacts or log files that really do not belong in the repository and just add clutter.

We should add a new task to the commit queue that functions in a similar way to the TODO checker. This new task would check all the files that are being added/changed as part of the commit and fail if any are too large.

AC:

  • New task is added to the commit queue
  • This new task checks all changed files for size
    • Fails if any file is over 10MB in size
    • Have the check ignore all files in the src/third_party directory

From Max, this might be useful

https://stackoverflow.com/questions/10622179/how-to-find-identify-large-commits-in-git-history/42544963#42544963



 Comments   
Comment by Githook User [ 21/Apr/23 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-76437 Add large file check to commit queue
Branch: master
https://github.com/mongodb/mongo/commit/af3eb47e558f963e1859e67d86ac8ce5644c31d1

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