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

build checks exception #11209

Open
SimaTian opened this issue Jan 2, 2025 · 0 comments
Open

build checks exception #11209

SimaTian opened this issue Jan 2, 2025 · 0 comments

Comments

@SimaTian
Copy link
Member

SimaTian commented Jan 2, 2025

Issue Description

While benchmarking buildchecks on orchardCore, an exception was thrown.

Steps to Reproduce

While benchmarking,
I was running the MSBuild with following parameters:

foreach ($number in 1..20) {
	D:\bld\artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\MSBuild.exe OrchardCore.sln -maxcpucount:10 -tl:true -t:Clean | Out-Null
	pskill msbuild | Out-Null
	(Measure-Command {
		D:\bld\artifacts\bin\bootstrap\net472\MSBuild\Current\Bin\MSBuild.exe OrchardCore.sln -maxcpucount:10 -tl:true -check  -warnAsMessage:"BC0102;BC0105;BC0202"
	}).TotalSeconds | Out-Default
	
	
}

Expected Behavior

Run succeeds without issues.

Actual Behavior

During the scheduled 20 runs, one failed with:

Unhandled Exception: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: ContextID 87025 should have been in the ID-to-project file mapping but wasn't!
   at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsNotAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, ProjectIsolationMode isolateProjects, GraphBuildOptions graphBuildOptions, Boolean lowPriority, Boolean question, Boolean isBuildCheckEnabled, String[] inputResultsCaches, String outputResultsCache, Boolean saveProjectResult, BuildResult& result, Boolean reportFileAccesses, String commandLine) in D:\bld\src\MSBuild\XMake.cs:line 1679
   at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine) in D:\bld\src\MSBuild\XMake.cs:line 1054
   at Microsoft.Build.CommandLine.MSBuildApp.Main() in D:\bld\src\MSBuild\XMake.cs:line 285

Analysis

I have no idea, if I run into the error more than once, I will try to reproduce it with binlogs enabled.

Versions & Configurations

MsBuild built with release configuration, main branch (head commit 34c4f2b):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant