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 · 4 comments
Open
1 task done

Getting Could not find error when generating delta source #862

kez-sophos opened this issue May 14, 2024 · 4 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 ?

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

2 participants