Giter VIP home page Giter VIP logo

Comments (4)

MarcBruins avatar MarcBruins commented on August 20, 2024

I think should be fixed within NuKeeper itself. It should return a exitcode -1 which causes a task fail

from nukeeper-azuredevops-extension.

OneCyrus avatar OneCyrus commented on August 20, 2024

this looks like an issue how nukeeper handles branches. we stil have this issue and it looks like the repro is:

  1. let nukeeper create a PR + branch for a dependency update in Azure DevOPs
  2. go into the PR and click "abandon" and "delete branch"
  3. let nukeeper try and create the same update again -> it fails with the issue above.

probably the way Azure DevOps deletes the branch is not compatible with how nukeeper checks if the branch already exists.

P.S. and yes, the issue should probably be moved to the nukeeper repo

from nukeeper-azuredevops-extension.

OneCyrus avatar OneCyrus commented on August 20, 2024

ok finally pin pointed the issue. the problem is with the local only branches which nukeeper creates. those won't be deleted and stay there forever.

running git show-ref shows somehting like this:

a2009d458f23370b2d121bdf2b92c5e58ca8e79c refs/heads/master
0e02c55d7a31bfad46d9a01e97db0d5d2e0a8098 refs/heads/nukeeper-update-CsvHelper-to-12.1.2
2743e0e5aee1c6a50985cb07c971cfbf9f97ad15 refs/heads/nukeeper-update-Microsoft.ApplicationInsights.AspNetCore-to-2.6.1
16e7ba49fa0d684b500402400ce0233033d0d9db refs/heads/nukeeper-update-Microsoft.NET.Test.Sdk-to-16.0.1
5e9de71f4d6f224dce0889e52fb17b13666a7000 refs/heads/nukeeper-update-Microsoft.NET.Test.Sdk-to-16.1.0
224742cb988de111ab796476e05406b33927fd74 refs/heads/nukeeper-update-Microsoft.NET.Test.Sdk-to-16.1.1
3d6e68e92838758c1435015546baf5bae924729f refs/heads/nukeeper-update-MySql.Data-to-8.0.15
0cbcc5e112977b56f649d15e2639df91c4ea9956 refs/heads/nukeeper-update-Serilog.Extensions.Logging.File-to-2.0.0-dev-00032
d821a8f7b94ae32341c8dd97f2928b8ded2052e1 refs/heads/nukeeper-update-SonarAnalyzer.CSharp-to-7.14.0.8411
bee7db4746ebd3f2d410bf5148f969883ecadfa4 refs/heads/nukeeper-update-coverlet.msbuild-to-2.6.1
2ffc11dca76b09d6c4b6bed5bde1ef0c08afd8a2 refs/heads/nukeeper-update-coverlet.msbuild-to-2.6.2
d34e3b83ad260a7a9598757574791421b9afc320 refs/remotes/origin/master
224742cb988de111ab796476e05406b33927fd74 refs/remotes/origin/nukeeper-update-Microsoft.NET.Test.Sdk-to-16.1.1
2ffc11dca76b09d6c4b6bed5bde1ef0c08afd8a2 refs/remotes/origin/nukeeper-update-coverlet.msbuild-to-2.6.2

adding e.g. a git branch -d nukeeper-update-Microsoft.AspNetCore.Mvc.Versioning.ApiExplorer-to-3.2.0 resolves the issue for this branch.

IMHO nukeeper should remove a local-only branch when it already exists

from nukeeper-azuredevops-extension.

CrispyDrone avatar CrispyDrone commented on August 20, 2024

I solved this by making sure my pipeline starts with a clean repository (clean: resources):

jobs:
- job: NuKeeper
  displayName: Update dependencies
  continueOnError: "false"
  workspace:
    clean: resources
  steps:
  - task: nukeeper.nukeeper.nukeeper.NuKeeper@0
    displayName: NuKeeper
    inputs: 
      arguments: '--verbosity detailed'
  pool:
   name: "Default"

However yes, the pipeline is not failing on error.

from nukeeper-azuredevops-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.