-
Notifications
You must be signed in to change notification settings - Fork 685
Add CI for checking file size #14274
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14274
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 106 PendingAs of commit 4d3f622 with merge base 30a904b ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Might be nice to have this check in lintrunner also down the line. |
I think this check each file already. What does it mean by down the line? |
7afeddc
to
6febe36
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor quibbles but directionally this is fine
runner: linux.2xlarge | ||
docker-image: ci-image:executorch-ubuntu-22.04-linter | ||
submodules: false | ||
fetch-depth: 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC 0 is unlimited. couldn't we make this some large (because it gates the maximum depth of a stack) but finite number, like say 50?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried look up fetch-depth
in both executorch and pytorch, and looks like all are defined as 0 or 1...I can't find definition for this variable so using the same as other jobs to be safe
if: ${{ github.event_name == 'pull_request' }} | ||
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main | ||
with: | ||
runner: linux.2xlarge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have smaller runners we can use? this isn't particularly resource-intensive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tried linux.large and docker image pulling failed. Bump it to 2x
As title. xrefs will hang if the files change too much, however it's a bit hard to tell. Make file size check explicit. The rule is following 1. For all files, the file size can't be larger than 1MB 2. For images/vidoes, the files size can't be larger than 7MB 3. There is an exception list defined in the script if it's really needed
As title. xrefs will hang if the files change too much, however it's a bit hard to tell. Make file size check explicit. The rule is following