You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am continuing to run into a warning regarding reference pruning in a azure devops pipeline. Specifically, I get this warning:
INFO: 2023/01/13 17:44:47 coderefs.go:199: attempting to prune old code reference data from LaunchDarkly
WARNING: 2023/01/13 17:44:47 coderefs.go:202: unable to retrieve branch list from remote, skipping code reference pruning: authentication required
The pipeline in essence, checks out the code, figures out the branch name, then runs ld-find-code-refs on the current directory. From what I can gather it seems like ld-find-code-refs does not integrate with the git authorization in azure pipelines.
I am setting persistCredentials which gives the pipeline access to the entire repository. From the documentation:
"Set to 'true' to leave the OAuth token in the Git config after the initial fetch. The default is not to leave it." We are able use persist credentials in other parts of our pipelines successfully to push tags for example.
To try and debug this process, I was looking in the code and it seems like it is looking for a .git folder. I have confirmed that the .git folder exists when running the pipeline. The .git folder has the following files/subfolders:
FETCH_HEAD
HEAD
branches
config
description
hooks
index
info
logs
objects
refs
Is there a way to have reference pruning work in azure pipelines? If not, is there some a way we can request it to be added in a future release?
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for letting me know. I changed my pipeline to 2.6.0 and that seems to work. I will continue to track this ticket and will update my pipelines to the latest when it is resolved.
Is there any plan to address this? I am continuing to run 2.6.0 due to the bug introduced in 2.6.1 that broke this functionality in Azure Devops.
I am looking to upgrade if possible, as I was hoping it may help with my degradation of performance in azure pipelines. See LaunchDarkly support ticket 62946 for details.
@bknapik-ah4r at this time we don't have a planned fix for the pruning error, however you can run newer versions of the CLI with --prune=false to skip the failing step
I am continuing to run into a warning regarding reference pruning in a azure devops pipeline. Specifically, I get this warning:
A snippet from my pipeline YAML is the following:
The pipeline in essence, checks out the code, figures out the branch name, then runs ld-find-code-refs on the current directory. From what I can gather it seems like ld-find-code-refs does not integrate with the git authorization in azure pipelines.
I am setting persistCredentials which gives the pipeline access to the entire repository. From the documentation:
"Set to 'true' to leave the OAuth token in the Git config after the initial fetch. The default is not to leave it." We are able use persist credentials in other parts of our pipelines successfully to push tags for example.
To try and debug this process, I was looking in the code and it seems like it is looking for a
.git
folder. I have confirmed that the .git folder exists when running the pipeline. The .git folder has the following files/subfolders:Is there a way to have reference pruning work in azure pipelines? If not, is there some a way we can request it to be added in a future release?
Thanks
The text was updated successfully, but these errors were encountered: