-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a python script that does a size check for third_party. #5310
Comments
Also /cc @apb7 since this relates to dev workflow. |
Note: this is meant to be a count of files, not the size of the files. |
Hi, is anyone working in this issue? If not, I would like to work on it. But I have some questions about the task. The explanation says that the script causes a crash in Travis build when there are more than 7k files, I was looking at the others scripts that make Travis build crash and they have a shell script that runs the python script and if it fails then the scripts fails and finally the .travis.yaml builds fails. My question is, the task includes creating that shell scrips and the code necessary in the .travis.yaml or only the python script? Or is there any other way of making the Travis build fail using only the python script? And also, does directories count or just the files? |
Hi @tonadev, go for it! The task includes creating whatever code is needed to achieve the desired result -- i.e. if we get to more than a certain file count then Travis should fail. Also, only the files count, not the directories. Thanks! |
I think you can include the check in |
Hi @tonadev, there is a Travis build that runs on every PR. The build for that PR should catch the issue and prevent that PR from being merged (right?) So there shouldn't be a cascading effect on other PRs... We could also just make this a regular presubmit check, but only if it doesn't take a long time, otherwise it slows down folks a lot. I'm not sure whether including the check in install_third_party.py suffices though. The developer may just miss the error message... |
I realized about that I was wrong, that why supposedly I deleted the comment. |
This is a suggestion by @hoangviet1993 (thanks @hoangviet1993!):
Let's include a python script that does a size-check (i.e. number of files) for third_party. Should It get above , let's say 7k?, the Travis build should fail.
The aim of this is to prevent us accidentally breaching the 10k file limit on App Engine. See also #5201 which is related.
/cc @vojtechjelinek
The text was updated successfully, but these errors were encountered: