-
Notifications
You must be signed in to change notification settings - Fork 78
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
package version create stops after 1 second - static resource with mp3 #2116
Comments
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. |
Same problem here (without any MP3) - Windows 11 / VSCode 1.78.0 / sfdx version 7.199.7: Display is just: Note 1: If I execute the same command with previous version of SFDX (same project, sames files, another computer), there is no problem, the version is created after like 15 min. |
Do you get better info if you run the the command with |
I'll try it with the --json param and post the result here. I was able to build other packages with the same version. When i removed the mp3 file from the static resources the package was built. The version was not created in the org. |
Nothing is displayed if I add the "--json" parameter, and I'm back to the prompt after 2 seconds. I work with only 1 package (source files), so can't say about other packages. I can create a new package "sfdx package create ........" without problems (same source files). |
@Stassy you can downgrade to version 7.188, that works for me atm. |
I've installed it initialy with Windows regular installer. Then I do my updates with "sfdx update". Is there a way to downgrade with sfdx command? |
As far as i know you can only select your version when you use the npm install |
This seems similar to #2092 . The main difference I see is that the issue only happens in CI for 2092. To confirm, you see this behavior with v7.199.7 when running the |
I'm not using a CI for this project, only on local. |
@Dietermartens - I cannot repro what you're seeing. I am using an npm installation of 7.199.7 on a macbook, zsh. I created a public github repo for this issue and issue 2092 here: https://github.com/shetzel/pvc-no-output. When I create a package and package version from the source in that repo, everything is created as expected. If you notice anything missing from the repo I created let me know. If you run the command with |
@shetzel I tried it with your repo and that worked fine indeed. So i started testing a few oher things too, and i think i found it. We are using a custom directory structure, where we split the metadata per app in a folder. Like the Falcon Template (https://github.com/sfdx-isv/sfdx-falcon-template) (https://www.slideshare.net/VivekMChawla/salesforce-dx-201-advanced-implementation-for-isvs#34) Now this worked fine before (and still does in older versions) but I noticed when you add another app and also put a folder 'staticresources' in there, you can replicate the behavior. I submitted an example to your test repo. This is a log file for what happens during the packaging when i add --dev-debug |
@Dietermartens - what are the exact steps you are following with your fork that cause the bad behavior? I've tried a bunch of combinations and it works every time for me. What does |
There is no CI, only local and Node is 18.16.0 Here is my debug log |
@shetzel That is weird, so when i added the second staticresources folder that also included a zip upload i could reproduce the issue 100% of the tries. When i removed the zip in one of the folders it worked again.
If you like I can create a short screen capture to show it (node:91466) Warning: Deprecated environment variable: SFDX_AUTOUPDATE_DISABLE. Please use SF_AUTOUPDATE_DISABLE instead. Architecture: Node Version: Plugin Version: OS and Version: Shell: Root Path: |
Are you able to find a solution for this one? I am stuck on the same issue; the debug logs are producing the same results. I have tried on the previous versions as well but no luck |
Are you all able to successfully source convert the same package? E.g., 2 other teammates and I have been unsuccessful reproducing any of the
This suggests that the problem is in the source-deploy-retrieve library, most likely during zip operations. |
The current theory with this issue is that it's nodejs version related. Looks like nodejs v18.16.0 and higher have this problem but downgrading nodejs to below 18.16.0 should workaround the issue. We're continuing to investigate why. I'll post updates as we find them. |
We've got some workarounds and a fixed RC available. I'd love to know that this is working for you. |
On Node 19.9.0 -> Same issue with version 7.199.7 or 7.200.7 On Node 18.15.0 -> Both versions work. So I guess this ticket is a duplicate/ variant of #2125 |
It’s happening because of static resource of zip type. I was able to make
the package by removing the zip file.
…On Thu, May 11, 2023 at 9:51 AM Dietermartens ***@***.***> wrote:
On Node 19.9.0 -> Same issue with version 7.199.7 or 7.200.7
On Node 18.15.0 -> Both versions work.
So I guess this ticket is a duplicate/ variant of #2125
<#2125>
—
Reply to this email directly, view it on GitHub
<#2116 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABOISTDIUKWHPJWEVIIQZO3XFTVG5ANCNFSM6AAAAAAXYK4KR4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Summary
When trying to create a package version with an mp3 in a zipped static resource the package command stops without error right after the start.
Issue started right after update to the latest version 7.199.
Steps To Reproduce:
sfdx package version create -p "PACKAGE" --wait 60 -v DEVHUB -c
static resource:
Private application/zip sounds The directory sounds includes a small mp3 of 2 seconds.Expected result
Start package creation process
Actual result
sfdx package version create -p "PACKAGE" --wait 60 -v DEVHUB -c
Version create.... done
right after the start.
System Information
Mac OSX ZSH terminal
sfdx version 7.199
The text was updated successfully, but these errors were encountered: