Repository navigation
Could not write lines to file Microsoft.NET.HostModel.ComHost.Tests #70969
Description
Activity
- ghost addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jun 20, 2022 - addedblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
on Jun 20, 2022 @elinor-fung Could this be caused by recent changes?
We did switch to the arcade infrastructure for using
dotnet test(#69340).We just rely on that infrastructure to redirect the output to a log file:
https://github.com/dotnet/arcade/blob/e7ede87875f41a9b3df898ae08da5ebc96e24f56/src/Microsoft.DotNet.Arcade.Sdk/tools/VSTest.targets#L30And then append more information to the file after running the command (which is where it is failing):
https://github.com/dotnet/arcade/blob/e7ede87875f41a9b3df898ae08da5ebc96e24f56/src/Microsoft.DotNet.Arcade.Sdk/tools/VSTest.targets#L55I'm not sure why the file would still be in use after the Exec finishes.
Related: dotnet/sdk#10062
It'd be good to figure out why it is happening, but maybe it could be mitigated by using
ConsoleOutputto capture the output (instead of the>redirect) when running the test command and then writing all the lines in one shot.
https://github.com/dotnet/arcade/blob/e7ede87875f41a9b3df898ae08da5ebc96e24f56/src/Microsoft.DotNet.Arcade.Sdk/tools/VSTest.targets#L43-L50I'm trying to take a look locally and see if we can find a solution
It'd be good to figure out why it is happening, but maybe it could be mitigated by using ConsoleOutput to capture the output (instead of the > redirect) when running the test command and then writing all the lines in one shot.
Another option perhaps is to write the command to the file first, then change the
>to>>when subsequently writing the test output. Or, run Exec once, adding an extra line in the command that writes the output.- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jul 1, 2022 Since any change would likely have to be made in Arcade, I've filed dotnet/arcade#9864
- addedKnown Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tab
on Jul 15, 2022 - ghost addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jul 15, 2022 dotnet/arcade#9864 has a fix, so waiting for it to propagate into runtime repo ...
- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jul 25, 2022 - ghost addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jul 25, 2022 dotnet/arcade#9864 has a fix, so waiting for it to propagate into runtime repo ...
Fix is propagated and I'm watching it; will port to other branches if it hasn't reproduced by tomorrow.
It looks like this is working well, no failures since Thursday.
- ghost removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Jul 26, 2022 - ghost locked as resolved and limited conversation to collaborators
on Aug 25, 2022
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNo status
Intermittent build error hit by
Installer Build and Test coreclr windows_x64 Releasein CI:{ "ErrorMessage": "error MSB3491: Could not write lines to file \"D:\\a\\_work\\1\\s\\artifacts\\log\\Release\\Microsoft.NET.HostModel.ComHost.Tests_net7.0_x64.log\"", "BuildRetry": false }Report
Summary