question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maestro promotion failure for AspnetCore repo

See original GitHub issue
  • This issue is blocking
  • This issue is causing unreasonable pain

Aspnetcore repo has had 4 builds in a row fail when publishing packages/symbols in the Maestro Build Promotion pipeline.

##[error].packages\microsoft.dotnet.arcade.sdk\7.0.0-beta.22056.6\tools\SdkTasks\PublishArtifactsInManifest.proj(144,5): error : Sequence contains more than one element 
 at System.Linq.ThrowHelper.ThrowMoreThanOneElementException() 
 at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) 
 at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source) 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.LookupAsset(String name, Dictionary`2 buildAssets) in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 254 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.TryAddAssetLocation(String assetId, String assetVersion, Dictionary`2 buildAssets, TargetFeedConfig feedConfig, LocationType assetLocationType) in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 294 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.<>c__DisplayClass171_0.<<PublishAssetsUsingStreamingPublishingAsync>b__0>d.MoveNext() in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 1740 
--- End of stack trace from previous location --- 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.PublishAssetsUsingStreamingPublishingAsync(IAssetPublisher assetPublisher, HashSet`1 assetsToPublish, Dictionary`2 buildAssets, TargetFeedConfig feedConfig, SemaphoreSlim clientThrottle) in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 1712 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.PublishAssetsAsync(IAssetPublisher assetPublisher, HashSet`1 assetsToPublish, Dictionary`2 buildAssets, TargetFeedConfig feedConfig, SemaphoreSlim clientThrottle) in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 1657 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestBase.HandleBlobPublishingAsync(Dictionary`2 buildAssets, SemaphoreSlim clientThrottle) in /_/src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifestBase.cs:line 1038 
 at Microsoft.DotNet.Build.Tasks.Feed.PublishArtifactsInManifestV3

Pipelines - https://dev.azure.com/dnceng/internal/_build/results?buildId=1546035&view=logs&j=ba23343f-f710-5af9-782d-5bd26b102304&t=6e277ba4-1c1e-552d-b96f-db0aeb4be20a

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
michellemcdanielcommented, Jan 11, 2022

I think that change should fix it without any changes on our part.

1reaction
michellemcdanielcommented, Jan 11, 2022

I did a little digging: it looks like for some reason assets are being published to BAR multiple times:

Last successful build: Screen Shot 2022-01-11 at 7 45 49 AM

Latest aspnetcore build: Screen Shot 2022-01-11 at 7 47 13 AM

Looking at the MergedManifest.xml for the failed build, each package and blob are listed multiple times:

  <Package Id="Microsoft.JSInterop" Version="7.0.0-alpha.1.22060.28" NonShipping="false" />
  <Package Id="Microsoft.JSInterop" Version="7.0.0-alpha.1.22060.28" NonShipping="false" />
  <Package Id="Microsoft.JSInterop.WebAssembly" Version="7.0.0-alpha.1.22060.28" NonShipping="false" />
  <Package Id="Microsoft.JSInterop.WebAssembly" Version="7.0.0-alpha.1.22060.28" NonShipping="false" />
  <Package Id="Microsoft.SourceBuild.Intermediate.aspnetcore" Version="7.0.0-alpha.1.22060.28" NonShipping="true" />
  <Package Id="RazorPageGenerator" Version="7.0.0-alpha.1.22060.28" NonShipping="true" />
  <Package Id="RazorPageGenerator" Version="7.0.0-alpha.1.22060.28" NonShipping="true" />
Read more comments on GitHub >

github_iconTop Results From Across the Web

GitHub - dotnet
NET Core. NET Core is an open-source and cross-platform framework for building modern cloud-based internet-connected applications, ...
Read more >
dotnet/aspnetcore: ASP.NET Core is a cross- ...
ASP.NET Core is an open-source and cross-platform framework for building modern cloud-based internet-connected applications, such as web apps, IoT apps, and ...
Read more >
Introduction to Branching by Quality [Branching-Merging ...
Resolve conflicts if any and commit changes to the Main branch. Promote Iteration 2 from the Test branch to the Prod branch. The...
Read more >
Porting an NAnt Task to MSBuild - Scott Dorman
The first step is to create a new C# .NET Framework 3.5 based Class Library. You then need to add the following references:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found