-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Getting Could not find
error when generating delta source
#862
Comments
To clarify, sfdx-git-delta version 2.34.0 works as expected for us. We encounter this issue with later versions. |
Hi @kez-sophos ! Thanks for raising this issue and thanks for contributing in making this project better! We are aware of this issue already, it has been discovered with the #762 You are right, the issue is not there with the Do you have a way to reproduce the issue I could use with a VM ? |
Hi @kez-sophos, do you have any way to help me reproduce the issue ? |
Hi @kez-sophos I need your help to reproduce please, could you send us the minimal steps to follow to reproduce it please ? |
we also get the issue with sfdx-git-delte version 5.42.0 on our build servers and if we downgrade to the vertion 5.43.0 then the package creation is working again but with the older API version 59.0 OS: MS Windows Server 2019 on my local machine Windows 11 and pretty similar versoins the issue is not appearing any ideas what could be the cause of the problem? |
Thanks for those information. It really helps What api version are you using ? 61 ? |
hi @scolladon, we try or have to use the api vesion 61 because some implementations already requires it. sorry that was a number mix-up. So the sgd version 5.42.0 is not working then we downgraded to 5.34.0 like "[kez-sophos]" wrote and it start to work without issue |
This issue is very hard because it is windows dependent and also requires a very big project. |
hi @scolladon, I will not be available for some days but afterwards maybe we can plan a session for screen sharing and check together. |
That's nice of you @ALesc21 to give a bit of your time but it is very hard to investigate with a screen share and a limited amount of time. We tried already with another person and we did not manage to find the root cause. |
HI @scolladon like I wrote you in the email it make sense to look in our environment because the execution on my personal client is working and just on the Windows Servers the issue is happening. |
Do you know if it is possible to debug in your environment ? |
I have full access on this servers so we can do what ever it needs. If you have some ideas what I have to set then let me know. For reproducing you need the windows server + the installed tools such: git, node, sf and sfdx-git-delta. On this server I run the command "sf sgd:source:delta --to HEAD --from HEAD^ --output " and with the versions higher than 5.34.0 I receive the following outcome (in this case I tryed to install the newest sfdx-git-delta version 5.49): C:\BuildAgent01\work\86775e496ec9c505>sf sgd:source:delta --to HEAD --from HEAD^ --output deployment/ONECRM-0000 So maybe you find time for screensharing and we are going through and compare. |
Ok @ALesc21, let's setup a screen share. What I want is to be able to debug the code. cd <folder of your choice>
git clone [email protected]:scolladon/sfdx-git-delta.git
cd sfdx-git-delta
yarn
yarn pack
mkdir output
node --inspect-brk ./bin/run -f HEAD~1 -d
# it should wait for the debugger to be attached, open chrome and the developer console and click on the node icon on the left. If you get this far then it will be easier to understand what is happening in this case. Let me know when ready ! |
Sounds great @scolladon I will prepare it and let you know. |
Internet access is necessary only to clone the repository @ALesc21. Then we just need to be able to access the virtual machine and run the code. |
I am getting similar error with version 5.49.1
|
What is the environment you are running in ? (Mac / Windows ? Node version ? Git version ?) |
the environment is run by another organization, I am "just" a user. |
git version 2.43.5 |
Could you give me access to the repository ? And how to reproduce the issue please |
The repository is a USDA repository run on site, I cannot give access. |
Coud you isolate the issue in our sfdx-git-delta-reproduction-playground ? |
We just today upgrade from |
How do I do that? |
I'm looking for a way to reproduce this issue and so being able to debug the problem.
You can fork the reproduction playground, create a branch, and apply the minimal metadata necessary to reproduce the issue.
You can upgrade to the stable channel ( |
HI @scolladon, based on some firewall restrictions on the server I cloned the repo on my client and moved them to the server. After that I followed the steps which you provided previously and that is the output in the bash terminal:
What is the next step? |
Next steps are to debug 😁 |
The chrome browser was also installed on the server. Unfortunatelly we can not access to the internet but like I understood it is also not need for the analyses. |
Yes exactly, we do not need internet, we just need the chrome debugger. |
Shipped in release $ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install [email protected] Happy incremental deployment! |
Issue verification check:
What is the problem?
We are getting an error when trying to generate delta source with sfdx-git-delta versions above 5.34.0.
What is the parameter and the value you used with it?
sgd source delta --to HEAD --from stash/master --source C:<REPO_PATH> --api-version 59.0 --output C:<REPO_PATH>\delta-src/ --generate-delta
What is the expected result?
Delta source generation succeeds.
What is the actual result?
Delta source generation fails.
Json Response:
{"success":false,"error":"Could not find b2c43ed8d669af3b0af194a54362238c0ed66de5.","output":"C:\<REPO_PATH>\delta-src/","warnings":[]}
Steps to reproduce
We are unable to reproduce the issue locally (within our machines) the issue is occurring within our build servers.
Execution context
Within our build servers we use Bamboo and Windows 2012.
Operating System: Windows 2012
yarn version: N/A
node version: v18.12.0
git version: git version 2.29.2.windows.3
sfdx version: @salesforce/cli/2.40.7 win32-x64 node-v20.12.2
sgd plugin version: sfdx-git-delta 5.39.2 (5.39.2)
The text was updated successfully, but these errors were encountered: