Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux / OSX Build has a lot of failures #7477

Open
anpin opened this issue Jan 21, 2025 · 8 comments
Open

Linux / OSX Build has a lot of failures #7477

anpin opened this issue Jan 21, 2025 · 8 comments
Labels
DX Developer experience issues - papercuts, footguns, and other non-bug problems. up for grabs

Comments

@anpin
Copy link
Contributor

anpin commented Jan 21, 2025

PR validation pipeline on Linux / OSX writes a few thousand lines of error logs such as one below making it impractical for actual build failure investigation.

Starting Target: ComputeIncrementalChanges 
/home/vsts/work/1/s/tools/incrementalist/incrementalist "-b" "dev" "-s" "/home/vsts/work/1/s/src/Akka.sln" "-f" "/home/vsts/work/1/s/bin/incrementalist.txt" 
fail: Incrementalist.Cmd.Program[0]
      Issue during solution loading: Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace: Msbuild failed when processing the file '/home/vsts/work/1/s/src/benchmark/PingPong/PingPong.csproj' with message: /opt/hostedtoolcache/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.GenerateAssemblyInfo.targets: (226, 5): The "GetAssemblyVersion" task failed unexpectedly.
      System.IO.FileLoadException: Could not load file or assembly 'NuGet.Versioning, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
      File name: 'NuGet.Versioning, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       ---> System.IO.FileLoadException: Could not load file or assembly 'NuGet.Versioning, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
         at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
         at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
         at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
         at Microsoft.NET.Build.Tasks.GetAssemblyVersion.ExecuteCore()
         at Microsoft.NET.Build.Tasks.TaskBase.Execute()
         at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
         at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
fail: Incrementalist.Cmd.Program[0]
      Issue during solution loading: Microsoft.CodeAnalysis.MSBuild.MSBuildWorkspace: Msbuild failed when processing the file '/home/vsts/work/1/s/src/benchmark/PingPong/PingPong.csproj' with message: /opt/hostedtoolcache/dotnet/sdk/8.0.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.FrameworkReferenceResolution.targets: (90, 5): The "ProcessFrameworkReferences" task failed unexpectedly.
      System.IO.FileLoadException: Could not load file or assembly 'NuGet.Frameworks, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
      File name: 'NuGet.Frameworks, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
       ---> System.IO.FileLoadException: Could not load file or assembly 'NuGet.Frameworks, Version=6.11.1.2, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
         at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
         at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
         at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
         at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.<>c.<AddPacksForFrameworkReferences>b__217_0(ITaskItem item)
         at System.Linq.Enumerable.SelectArrayIterator`2.MoveNext()
         at System.Linq.Enumerable.WhereEnumerableIterator`1.ToList()
         at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
         at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.AddPacksForFrameworkReferences(List`1 packagesToDownload, List`1 runtimeFrameworks, List`1 targetingPacks, List`1 runtimePacks, List`1 unavailableRuntimePacks, List`1& knownRuntimePacksForTargetFramework)
         at Microsoft.NET.Build.Tasks.ProcessFrameworkReferences.ExecuteCore()
         at Microsoft.NET.Build.Tasks.TaskBase.Execute()
         at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
         at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
fail: 

Examples of failing builds:

abd10495
4db39055

@anpin
Copy link
Contributor Author

anpin commented Jan 21, 2025

          The FAKE build errors is mostly output from https://github.com/petabridge/Incrementalist - which can run into some solution analysis hiccups that aren't significant

Originally posted by @Aaronontheweb in #7468 (comment)

@Aaronontheweb
Copy link
Member

Eh, I don't think this is that big of an issue - you can just look at the Test Results pane in AzDo and see the attachment for specific unit test failures.

These logs all stem from Roslyn trying to analyze the solution to determine which parts of the code are affected by the Git diff. I agree it'd be better if we squelched them but it's not the end of the world.

@anpin
Copy link
Contributor Author

anpin commented Jan 21, 2025

Agree it might not be a critical issue, but as a new contributor to the project I find it baffling and distracting from the actual source of error

@anpin
Copy link
Contributor Author

anpin commented Jan 21, 2025

feel free to close this as not planned if there is no issue here

@Aaronontheweb
Copy link
Member

Agree it might not be a critical issue, but as a new contributor to the project I find it baffling and distracting from the actual source of error

Totally fair! If you want to submit a PR to Incrementalist that's also OSS and available here: https://github.com/petabridge/Incrementalist

I really need to make that tool easier to use to boot...

@Aaronontheweb Aaronontheweb added DX Developer experience issues - papercuts, footguns, and other non-bug problems. up for grabs labels Jan 21, 2025
@Aaronontheweb
Copy link
Member

Marked this as a "Developer Experience" issue and as "up for grabs" - which means we'd love to have someone in the community take a stab at it

@anpin
Copy link
Contributor Author

anpin commented Jan 21, 2025

Perhaps it would make sense to migrate to fresher FAKE release (similar to how it was done here akkadotnet/Akka.Persistence.Sql#361), but then later FAKE was completely dropped from the project

@Aaronontheweb
Copy link
Member

Looks like this issue with the MSBuild output is solved in newer versions of the Roslyn tooling, which we'll introduce when we install Incrementalist 1.0 into Akka.NET

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Developer experience issues - papercuts, footguns, and other non-bug problems. up for grabs
Projects
None yet
Development

No branches or pull requests

2 participants