-
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
When switching to GitHub Actions with windows-latest, installing sf cli with npm takes 5-10 minutes #2436
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. |
Instead of installing build dependencies while the pipeline is running, use a docker image that has sfdx and node in it already. Pulling an image takes seconds. Salesforce has images available in docker hub. Make the container attribute a repo variable so that you can easily swap images when new versions are released. This will help u to avoid adding dummy commits to ur repository. Be careful to not use :latest tags when selecting the image version. Always specify the hash of the image. If u need further help dm me on LinkedIn. I'm a github actions specialist hahahaha |
@AllanOricil i will definitely be reaching out soon :) and THANK YOU!!!! I got really frustrated last night as some of the feedback I was hoping to get for some new functionality was dependent upon sfdx cli install so I dove in on trying to figure out how to leverage a windows salesforce cli tar install approach. Haven't done a full end-2-end test yet to confirm if old cli commands are still working as expected but I have been able to confirm the install takes under 2 minutes consistently. ( docker still very much seems like something we want to do ). I was also able to create a fully validated package version.
@mshanemc if using tar install may be frowned upon for windows please let me know :) |
AFAIK docker on github actions doesn't support windows. We definitely don't have a docker image for the CLI built on windows. |
Is there a reason why you are using windows? |
@AllanOricil we have a strange error we are hitting in ubuntu. I thought we were dead-in-the-water and just so happened to try windows and ended up not receiving the error. I have no idea what about what in the windows systems it works lol. We have an actual Salesforce case open with our account as well. So far still in research. The error was the same for about all things related with package version creation/installation. (not sure if i should add the issue here if it messes with the issue management) |
Summary
Had to recently switch to windows-latest to workaround "Admin not found in package.xml" error.
Now the sfdx-cli install command takes 5-10 minutes ever time compared to 45s with ubuntu-latest
Steps To Reproduce
Change runs-on to windows-latest
install sfdx cli:
npm install --global @salesforce/cli@latest
Expected result
Does not take 5-10 minutes
Actual result
Takes 5-10 minutes to install
System Information
Additional information
The text was updated successfully, but these errors were encountered: