-
Notifications
You must be signed in to change notification settings - Fork 41
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
Consider bumping the MAX_FILE_SIZE_TO_PARSE_MB #1237
Comments
The minified version appears to be 2.5 Mb, so that would still work (but require sending the original sources separately). Generally, I think our policy about this constant is that it should be bumped up when there are enough valid use cases that warrant larger JS files. Figuring out "enough" and "valid" should probably fall on @kewisch, though. As the comment in the source explains, these very large files are problematic in their own right, so they should be avoided as much as possible, especially for extensions which are supposed to be lightweight. |
Hi @jvillalobos, The 2.5 Mb version only contains the "default services" of AWS, and excludes some important services for my use case. If you visit https://sdk.amazonaws.com/builder/js/ and instead select the "Select all services" option, you'll find the minified build to be 4.1 Mb. |
Do you need all of them, or are you choosing all out of convenience? This file needs to be loaded by Firefox on a regular basis and will impact general performance. |
I unfortunately need most of them. I could split them out and load them individually, but that would be a very tedious process both for myself and addon reviewers. This is the README I currently bundle for addon reviewers:
|
This comment has been minimized.
This comment has been minimized.
Future travellers; I am now using this dodgy Python script to split my AWS SDK (v2):
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this bug should stay open, please comment on the issue with further details. Thank you for your contributions. |
Describe the problem and steps to reproduce it:
For consideration, the minified version of the AWS JS SDK with all services has recently just busted 4MB. It would be helpful if the limit was adjusted to 8 or even just 5.
https://github.com/mozilla/addons-linter/blob/master/src/const.js#L92
What happened?
I tried to upload an extension with the AWS JS SDK minified with all services.
What did you expect to happen?
The upload to pass validation.
Anything else we should know?
Relates to #181
The text was updated successfully, but these errors were encountered: