Description
New feature, improvement proposal
Currently there is the RequireFilesSize rule that is able to put bounds on individual files. In similar spirit I would like to enforce size bounds on entire directories.
The main motivation comes from the target directory that tends to store all kind of information from jar artifacts to test logs, reports, and many other things. It is not uncommon, that small seemingly innocent changes (e.g., adding a new test) can make the target directory unreasonably large consuming many GB of disk space. When such changes sneak into the project there is a high risk of causing CI/CD instability and intermittent failures that may be hard to notice.
We could consider either enhancing the existing rule and allowing the <file> to denote directories and change the logic to compute recursively the total size of the directory or add a new rule dedicated to directories (RequireDirectorySize).
Activity
zabetak commentedon May 23, 2025
If the community feels that this is useful request, please let me know and I can submit a pull request.
Enforce size bounds recursively on directory content
Enforce size bounds recursively on directory content
Enforce size bounds recursively on directory content
Enforce size bounds recursively on directory content
zabetak commentedon Jun 3, 2025
This currently blocks https://issues.apache.org/jira/browse/HIVE-28989