Replies: 13 comments 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
-
can you give an example of what you're doing that needs really long commands? |
Beta Was this translation helpful? Give feedback.
-
In my organization we use to create the Salesforce package to deploy by recovering the sources modified from git during a release, generally a couple of months, we feed all these paths to:
On Windows, even with about twenty resources you exceed the character limit. And during a release we work with hundreds, sometimes thousands of resources. We normally use a Linux-based pipeline (bamboo from atlassian), and we don't have such stringent character limits. But recently the need to run from Windows has arisen, so... here I am. Furthermore, from now on, in addition to the sources, you must also specify the tests to run in the command write in the CLI, whereas previously with ant it could be saved in an xml file, which as you can imagine are also hundreds, which doubles the problem. From now on, however, the deployment must take place using the sf-cli, and it follows that, even if the manifest is generated first by concatenating the pieces, the run of the test classes must be completely specified in the single command, otherwise it is impossible to deploy the package totally, and not for an ORG limit, but for a stupid terminal limit. |
Beta Was this translation helpful? Give feedback.
-
Maybe you could use this CLI plugin instead which does a similar thing without hitting character limits: https://github.com/scolladon/sfdx-git-delta#readme jsyk, there are lots of cool plugins like this you can discover by running the CLI command, I realize I'm not addressing your issue directly but it might be faster/easier to switch to an existing solution or make other modifications rather than request a new feature. It's possible that even if the CLI supported reading lots of paths or test names from a file that there would be other limits hit like URL when making the metadata API request. |
Beta Was this translation helpful? Give feedback.
-
We have developed similar solutions locally, but written in python, which take advantage of the standard and officially supported commands of salesforce. Is it so complex to read argv from the contents of a file? |
Beta Was this translation helpful? Give feedback.
-
No but new features (which is what this is) are subject to prioritization so I'm suggesting alternatives because I'm not sure when it would be picked up. And like I said, even reading from a file might hit other limits. |
Beta Was this translation helpful? Give feedback.
-
I don't know what to say about it, it's a limitation that has been present for a while and is now starting to be felt. The alternative would be to provide for all options that I take a list as input, accept a file containing an element in each line, or whatever. However, I believe that this second option, at least in my opinion, is more complex to implement and is much more impactful. As for the limits in reading a file, that depends only on the architecture of the OS. And in any case, I highly doubt that we will be able to create commands that exceed 4 Giga characters (for old 32-bit architectures) In any case, we have waited a long time, surely waiting a little longer will not be the end of the world, but it would be nice to put an end to this limit that is making itself felt more and more time. |
Beta Was this translation helpful? Give feedback.
-
I'm not talking about file reading limits. By "other limits" I meant URI or any limits enforced by the Metadata API (soap or rest), which is what the CLI uses for deploys and retrieves. Regardless, I am only providing alternatives for consideration while we prioritize this with all other work. |
Beta Was this translation helpful? Give feedback.
-
Yes, I understand perfectly, in fact forgive me if I have been a little abrupt. I believe that the limits, at the API level, are the same as currently present with ANT, about 10000 resources, and losing this number is not too problematic (except for some backup scenarios) |
Beta Was this translation helpful? Give feedback.
-
This issue has been linked to a new work item: W-14857104 |
Beta Was this translation helpful? Give feedback.
-
using powershell gets you 4x as much--most windows machines/images have that available or could install it. It's nicer than cmd.exe in other ways (ex: CLI autocomplete!) I'm moving this to discussion so people can vote, have threads, etc. I'll also relabel it so it's clearer what the feature request is (reading flag values from a file) |
Beta Was this translation helpful? Give feedback.
-
coming soon salesforcecli/cli#1536 |
Beta Was this translation helpful? Give feedback.
-
Released in 2.35.6. |
Beta Was this translation helpful? Give feedback.
-
Bug Description:
On Windows-based systems, there exists a limitation on the number of characters for a command in the terminal, approximately 8191 characters source information.
Issue Background:
In the past, I mitigated this limitation by dividing commands into sub-blocks and concatenating the results. However, with the suspension of ANT usage, executing substantial deployments and validating them is no longer possible using the same approach.
Proposed Solution:
I suggest integrating a new mode for providing parameters to the tool through a standard text file. This file would contain all the parameters that would have been entered on the terminal. Alternatively, allowing the tool to receive argv from stdin would also be a viable solution.
Expected result
The tool should handle commands that surpass the character limit by either accepting parameters from a text file or receiving argv from stdin.
Actual result
The current limitation hinders the ability to perform large-scale deployments and validations on Windows systems, affecting the overall usability and functionality of the tool.
System Information
Additional information
This limitation is particularly impactful in scenarios where extensive deployments and validations are necessary. The proposed solutions would enhance the tool's versatility and usability on Windows platforms.
Thank you for considering this bug report. Let me know if you need any further information or clarification.
Sincerely,
Emanuele
Beta Was this translation helpful? Give feedback.
All reactions