tinglesoftware / dependabot-azure-devops

Tools for updating dependencies in Azure DevOps repositories using https://dependabot.com
MIT License
180 stars 59 forks source link

NuGetUpdate.Cli discover gets Stuck in Docker #1161

Open SeMuell opened 2 weeks ago

SeMuell commented 2 weeks ago

Describe the bug After upgrading to the most recent version (1.29) from 1.24 with private nuget feeds and many projects (currently 87) the NuGetUpdater got stuck for several hours when running in the docker container. Unfortunately, no more logs are generated than below after the list of dependency files.

2024-06-10 09:26:10 Parsing dependencies information
2024-06-10 09:26:10 running NuGet discovery:
2024-06-10 09:26:10 /opt/nuget/NuGetUpdater/NuGetUpdater.Cli discover --repo-root /home/dependabot/dependabot-updater/tmp/Oganization/Project/_git/Repository --workspace / --output /tmp/.dependabot/discovery.json --verbose

Categorization

To Reproduce Steps to reproduce the behavior (did not test with another project):

  1. Build the Dockerfile with following:
    
    FROM ghcr.io/tinglesoftware/dependabot-updater-nuget:latest

USER root ENV DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=20 ENV DEPENDABOT_PACKAGE_MANAGER=nuget ENV DEPENDABOT_TARGET_BRANCH=develop ENV DEPENDABOT_BRANCH_NAME_SEPARATOR='/' ENV DEPENDABOT_EXTRA_CREDENTIALS='[{"type":"nuget_feed","token":"token","url":"url"}]' ENV AZURE_ORGANIZATION=Organization ENV AZURE_PROJECT=Project ENV AZURE_REPOSITORY=Repository

ENTRYPOINT ["bin/run.sh", "update_script"]


2. Run the container

**Expected behavior**
Running dependabot
SeMuell commented 2 weeks ago

I also tried the workaround mentioned at the end of #921, but didn't work.

rcaunt commented 2 weeks ago

Concur we are seeing this. 1 private feed and only 6-7 relatively small .NET Core projects.