Skip to content
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

[New Source Plugin] Static Resource ZIP Compression doesn't seem to be as tight, "static resource cannot exceed 5MB" #1098

Closed
aheber opened this issue Jul 29, 2021 · 5 comments
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue

Comments

@aheber
Copy link

aheber commented Jul 29, 2021

Summary

When deploying my static resources I get the error "static resource cannot exceed 5MB" for a single resource where I've dealt with size issues in the past. If I uninstall the new Source plugin then static resources deploy correctly.

Steps To Reproduce:

I don't have a set of files I can share publicly but could share the Static Resource contents private on request.

Expected result

Static Resource should have deployed. The current SFDX (non-Source plugin) packs to a ZIP file that comes in at 4.92MB where the Source-Plugin version packs to 5.13MB.

Actual result

Static resource exceeded the 5MB file size limit and failed to deploy only when using the Source plugin.

System Information

{
"cliVersion": "sfdx-cli/7.110.0",
"architecture": "win32-x64",
"nodeVersion": "node-v14.17.3",
"pluginVersions": [
"@oclif/plugin-autocomplete 0.3.0 (core)",
"@oclif/plugin-commands 1.3.0 (core)",
"@oclif/plugin-help 3.2.2 (core)",
"@oclif/plugin-not-found 1.2.4 (core)",
"@oclif/plugin-plugins 1.10.0 (core)",
"@oclif/plugin-update 1.4.0-3 (core)",
"@oclif/plugin-warn-if-update-available 1.7.0 (core)",
"@oclif/plugin-which 1.0.3 (core)",
"@salesforce/sfdx-plugin-lwc-test 0.1.7 (core)",
"@salesforce/sfdx-trust 3.6.0 (core)",
"alias 1.1.10 (core)",
"apex 0.2.2 (core)",
"auth 1.7.1 (core)",
"config 1.2.13 (core)",
"custom-metadata 1.0.12 (core)",
"data 0.5.2 (core)",
"generator 1.1.7 (core)",
"limits 1.2.1 (core)",
"org 1.6.7 (core)",
"salesforce-alm 52.1.0 (core)",
"schema 1.0.8 (core)",
"sfdx-cli 7.110.0 (core)",
"sfdx-devops 0.4.3",
"sfdx-heber 0.0.2",
"sfdx-typegen 0.6.2",
"sfpowerkit 3.1.6",
"shane-sfdx-plugins 4.43.0",
"?????? @mshanemc/plugin-streaming 1.1.7",
"?????? @mshanemc/sfdx-sosl 1.1.0",
"telemetry 1.2.2 (core)",
"templates 52.1.0 (core)",
"user 1.3.1 (core)"
],
"osVersion": "Windows_NT 10.0.19042"
}

@aheber aheber added the investigating We're actively investigating this issue label Jul 29, 2021
@github-actions
Copy link

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.

@mshanemc mshanemc added plugin-source bug Issue or pull request that identifies or fixes a bug labels Jul 30, 2021
@uip-robot-zz
Copy link

This issue has been linked to a new work item: W-9679677

@mshanemc
Copy link
Contributor

@aheber nice catch, thanks for reporting!

@tfuda
Copy link

tfuda commented Aug 11, 2021

I too am hitting this after updating to version 7.112 today; It only seems to happen if I use force:source:deploy to deploy my static resources. I can push the same static resource bundle to scratch orgs using force:source:push with no problem. In my case, the problematic resource is 4,552,560 bytes in my scratch org after force:source:push, but the same static resource bundle cannot be deployed using force:source:deploy because it is exceeding 5 MB.

@daveespo
Copy link

@mshanemc -- Will this get addressed in this week's CLI release? This is a blocker for CI/CD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue or pull request that identifies or fixes a bug investigating We're actively investigating this issue
Projects
None yet
Development

No branches or pull requests

5 participants