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

Getting Could not find error when generating delta source #862

Open
1 task done
kez-sophos opened this issue May 14, 2024 · 10 comments
Open
1 task done

Getting Could not find error when generating delta source #862

kez-sophos opened this issue May 14, 2024 · 10 comments
Assignees
Labels
bug Something isn't working reproduction steps needed Need reproduction steps to further with the analysis

Comments

@kez-sophos
Copy link

kez-sophos commented May 14, 2024

Issue verification check:

  • is the current repository fully deployable at the commit SHA provided with the 'from' parameter of the command?

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)

@kez-sophos kez-sophos added the bug Something isn't working label May 14, 2024
@kez-sophos
Copy link
Author

To clarify, sfdx-git-delta version 2.34.0 works as expected for us. We encounter this issue with later versions.

@scolladon
Copy link
Owner

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
But we are not able to reproduce it locally so we cannot fix it yet. I tried a lot of things (VM, etc) without success.

You are right, the issue is not there with the v5.34.0 (current stable channel) because after this point we have refactored the way we interact with git.
After that point we are using isomorphic-git to abstract and speed up the interaction with git.
Unfortunately it has some issues with windows, especially with very large and aged repository...

Do you have a way to reproduce the issue I could use with a VM ?

@scolladon scolladon added the reproduction steps needed Need reproduction steps to further with the analysis label May 19, 2024
@scolladon
Copy link
Owner

Hi @kez-sophos, do you have any way to help me reproduce the issue ?

@scolladon
Copy link
Owner

Hi @kez-sophos I need your help to reproduce please, could you send us the minimal steps to follow to reproduce it please ?

@ALesc21
Copy link

ALesc21 commented Aug 14, 2024

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
node version: 20.11.1
git vertion: git version 2.44.0.windows.1
sf version: @salesforce/cli/2.53.6 win32-x64 node-v20.11.1

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?

@scolladon
Copy link
Owner

Thanks for those information. It really helps

What api version are you using ? 61 ?
And what version of sgd is working ? (5.43.0 does not exist yet)

@ALesc21
Copy link

ALesc21 commented Aug 15, 2024

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

@scolladon
Copy link
Owner

This issue is very hard because it is windows dependent and also requires a very big project.
If you can give me access to your project where you reproduce the issue it will greatly help reproducing and see what happens. I suspect the issue comes from a library we are using that need to be patched, but no customers so far have been able to provide a complete reproduction scenario working on my machine 😪
I can sign NDA, or anything if necessary

@ALesc21
Copy link

ALesc21 commented Aug 15, 2024

hi @scolladon, I will not be available for some days but afterwards maybe we can plan a session for screen sharing and check together.

@scolladon
Copy link
Owner

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.
I would really feel more confident if I can reproduce the issue on my laptop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working reproduction steps needed Need reproduction steps to further with the analysis
Projects
None yet
Development

No branches or pull requests

3 participants