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

System.CodeDom.Compiler.Tests.CodeCompilerTests.GetResponseFileCmdArgs_ValidCmdArgs_ReturnsExpected test failing in CI #34112

Closed
jozkee opened this issue Mar 26, 2020 · 6 comments
Labels
area-System.CodeDom help wanted [up-for-grabs] Good issue for external contributors
Milestone

Comments

@jozkee
Copy link
Member

jozkee commented Mar 26, 2020

Found on #33459

Error and stack trace:

System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\runner\AppData\Local\Temp\0lw3mff1\0lw3mff1.cmdline'.
Stack Trace:
    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
    at System.CodeDom.Compiler.CodeCompiler.GetResponseFileCmdArgs(CompilerParameters options, String cmdArgs)
    /_/src/libraries/System.CodeDom/tests/System/CodeDom/Compiler/CodeCompilerTests.cs(465,0): at System.CodeDom.Compiler.Tests.CodeCompilerTests.GetResponseFileCmdArgs_ValidCmdArgs_ReturnsExpected(String cmdArgs)AAAAAAA

@buyaa-n @krwq

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Mar 26, 2020
@danmoseley
Copy link
Member

@jozkee its worth mentioning this was not on .NET Core: net472-Windows_NT-Release-x86-Windows.10.Amd64.Client19H1.Open

either the path was never created correctly, or it got deleted async. this test has its own TempFileCollection. my guess is the bug is in the product - in creating a unique file, or verifying it's created successfully. the code for both is different to .NET Core. it's not obvious to me what the issue could be in briefly looking.

probably most reasonable to just disable CodeDom tests from running on .NET Framework anymore.

@krwq
Copy link
Member

krwq commented Apr 21, 2020

@jozkee have you seen any CodeDom tests failing recently with similar stack trace? Did it pass after retrying? Have you seen it failing anywhere on .NET Core? Full framework is very unlikely to get patched at this point even if we find a fix.

@v-haren
Copy link

v-haren commented May 6, 2020

failed again in job: runtime 20200505.59

failed test: System.CodeDom.Compiler.Tests.CodeCompilerTests.GetResponseFileCmdArgs_ValidCmdArgs_ReturnsExpected(cmdArgs: null)

Error message

System.IO.DirectoryNotFoundException : Could not find a part of the path 'C:\Users\runner\AppData\Local\Temp\pnfz2ogr\pnfz2ogr.cmdline'.


Stack trace
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at System.CodeDom.Compiler.CodeCompiler.GetResponseFileCmdArgs(CompilerParameters options, String cmdArgs)
   at System.CodeDom.Compiler.Tests.CodeCompilerTests.GetResponseFileCmdArgs_ValidCmdArgs_ReturnsExpected(String cmdArgs) in /_/src/libraries/System.CodeDom/tests/System/CodeDom/Compiler/CodeCompilerTests.cs:line 465

@buyaa-n
Copy link
Contributor

buyaa-n commented Jun 22, 2020

As Dan mentioned sounds better to disable the tests on .NET Framework

@buyaa-n buyaa-n removed the untriaged New issue has not been triaged by the area owner label Jun 22, 2020
@buyaa-n buyaa-n added this to the 5.0.0 milestone Jun 22, 2020
@buyaa-n buyaa-n added the help wanted [up-for-grabs] Good issue for external contributors label Jun 22, 2020
@buyaa-n buyaa-n modified the milestones: 5.0.0, 6.0.0 Jun 22, 2020
@buyaa-n
Copy link
Contributor

buyaa-n commented Feb 16, 2021

The failure logs are gone, from the stack trace and log, and after looking into the code in .NET Framework i don't think this issue is caused by a code/test bug, by accounting that this failure hasn't happened for a while i am gonna just close this issue

@buyaa-n buyaa-n closed this as completed Feb 16, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Mar 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.CodeDom help wanted [up-for-grabs] Good issue for external contributors
Projects
No open projects
Development

No branches or pull requests

6 participants