8000 Try to fix flake in building runner tool (#6905) · DataDog/dd-trace-dotnet@92c06c2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 92c06c2

Browse files
authored
Try to fix flake in building runner tool (#6905)
## Summary of changes Try to fix the flake we're been seeing in the `dotnet pack` stack of the runner build ## Reason for change Seeing flake like this, which [seems to be happening in `9.0.2xx` of the SDK](dotnet/sdk#17454) ``` The "GenerateToolsSettingsFile" task failed unexpectedly. System.IO.IOException: The process cannot access the file 'D:\a\1\s\tracer\src\Datadog.Trace.Tools.Runner\obj\DotnetToolSettings.xml' because it is being used by another process. at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync) at System.Xml.XmlWriterSettings.CreateWriter(String outputFileName) at System.Xml.Linq.XDocument.Save(String fileName, SaveOptions options) at Microsoft.NET.Build.Tasks.TaskBase.Execute() at Microsoft.Build.BackEnd.TaskExecutionHost.Execute() at Microsoft.Build.BackEnd.TaskBu D51B ilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask) ``` ## Implementation details Try setting `BuildInParallel=false` [as suggested in this issue](dotnet/sdk#17454 (comment)) ## Test coverage If this build works, we're ok ## Other details The issue appears to be fixed in the .NET 10 SDK: - dotnet/sdk#17454 (comment) I've asked to see if it will backported, but no answer yet 🙄
1 parent 9936f58 commit 92c06c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tracer/src/Datadog.Trace.Tools.Runner/Datadog.Trace.Tools.Runner.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
<!-- Hide warnings for EOL .NET Core targets (e.g. netcoreapp3.0) -->
2525
<CheckEolTargetFramework>false</CheckEolTargetFramework>
26+
<BuildInParallel>false</BuildInParallel>
2627
</PropertyGroup>
2728

2829
<Choose>

0 commit comments

Comments
 (0)
0