NPE with latest darc when adding build to channel
See original GitHub issue- This issue is blocking NuGet’s insertion into .NET 5
- This issue is causing unreasonable pain
I’m trying to add a build to the channel .NET 5 Dev channel with the latest darc and I’m running into an NPE. darc add-build-to-channel --id 49099 --channel “.NET 5 Dev” --source-branch master Assigning build ‘49099’ to the following channel(s): .NET 5 Dev
Repository: https://github.com/NuGet/NuGet.Client Branch: dev Commit: 818ca73c9d788fa7afe05567d16b0e84dd88edca Build Number: 5.7.0.6568 Date Produced: 15-Apr-20 2:46 PM Build Link: https://dev.azure.com/devdiv/DevDiv/_build/results?buildId=3645546 BAR Build Id: 49099 Released: False Channels: fail: Microsoft.DotNet.Darc.Operations.Operation[0] Error: Failed to assign build ‘49099’ to channel ‘.NET 5 Dev’. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.DotNet.Darc.Operations.AddBuildToChannelOperation.PromoteBuildAsync(Build build, List`1 targetChannels, IRemote remote) in //src/Microsoft.DotNet.Darc/src/Darc/Operations/AddBuildToChannelOperation.cs:line 0 at Microsoft.DotNet.Darc.Operations.AddBuildToChannelOperation.ExecuteAsync() in //src/Microsoft.DotNet.Darc/src/Darc/Operations/AddBuildToChannelOperation.cs:line 113
1.1.0-beta.20215.1 and 1.1.0-beta.20208.1 both failed
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top GitHub Comments
Removing the blocking checkbox. Please let us know if the PAT addition works, and we’ll use this issue to track bubbling up the error in a more actionable way.
I was able to run the command, and https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=3649872&view=results is running to publish the build to the channel, so I suspect some misconfiguration in darc, that we are not exposing correctly.