You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[6.0] HostActivation Tests windows x86 build failure #81851
System.UnauthorizedAccessException : Access to the path 'dotnet.exe' is denied. at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at Microsoft.DotNet.CoreSetup.Test.HostActivation.MultilevelSDKLookup.Dispose() in /_/src/installer/tests/HostActivation.Tests/MultilevelSDKLookup.cs:line 87 at ReflectionAbstractionExtensions.DisposeTestClass(ITest test, Object testClass, IMessageBus messageBus, ExecutionTimer timer, CancellationTokenSource cancellationTokenSource) in /_/src/xunit.execution/Extensions/ReflectionAbstractionExtensions.cs:line 87
This looks a lot like robustness things we've been working on for a while and sort of solved in 7/8 where I don't remember seeing failures like this at all recently. I don't know if it's worth the effort to try to backport all of these test infra fixes.
Short version: I'm pretty sure this is not a product issue, but it's a test infra issue.
@elinor-fung who also worked on the test infra robustness for another opinion.
Yeah, this looks like test robustness issues we were chasing (and haven't seen recently) - not anything in the product. I'm also not sure if it is worth backporting the various fixes we've made, particularly since the failures are on cleanup, so by the time they are hit, the actual validation has been done/passed.
@carlossanlop if this starts happening in a lot in 6.0 PRs (hoping not based on the current hit count) and it slows you down too much, I can investigate what we would need to backport.
I updated the error pattern to reflect the specific UnauthorizedAccessException that was being hit in 6.0.
The table in the description still has all the ones that were unintentionally linked before, but I think it should be filtered to what we want going forward.
Activity
vitek-karas commentedon Feb 8, 2023
The actual failure is:
This looks a lot like robustness things we've been working on for a while and sort of solved in 7/8 where I don't remember seeing failures like this at all recently. I don't know if it's worth the effort to try to backport all of these test infra fixes.
Short version: I'm pretty sure this is not a product issue, but it's a test infra issue.
@elinor-fung who also worked on the test infra robustness for another opinion.
elinor-fung commentedon Feb 8, 2023
Yeah, this looks like test robustness issues we were chasing (and haven't seen recently) - not anything in the product. I'm also not sure if it is worth backporting the various fixes we've made, particularly since the failures are on cleanup, so by the time they are hit, the actual validation has been done/passed.
@carlossanlop if this starts happening in a lot in 6.0 PRs (hoping not based on the current hit count) and it slows you down too much, I can investigate what we would need to backport.
hoyosjs commentedon Mar 4, 2023
I didn't update the error blob, it's a bit too broad and will catch any error in the assembly. But the correct encoding was:
{ "BuildRetry": false, "ErrorPattern": "Tests failed: .+\\\\HostActivation\\.Tests_net\\d\\.0_(x64|x86|arm64)+\\.html", "ExcludeConsoleLog": false }carlossanlop commentedon May 16, 2023
@hoyosjs I changed the error blob to what you suggested.
Still seeing this failure. It was hit in this 6.0 PR: #86295
akoeplinger commentedon May 17, 2023
The error pattern seems to match all failures in the installer tests, e.g. this main PR https://github.com/dotnet/runtime/pull/85913/checks?check_run_id=13522623704 even though that fails with a different failure.
hoyosjs commentedon May 17, 2023
Sadly, multiline regex isn't supported to glob that it's hosting and comprises activation issues...
carlossanlop commentedon May 19, 2023
Ok let me revert the pattern and use x86 specifically.
I'll create a new issue for the x64 one happening in main.
elinor-fung commentedon Jun 8, 2023
I updated the error pattern to reflect the specific
UnauthorizedAccessExceptionthat was being hit in 6.0.The table in the description still has all the ones that were unintentionally linked before, but I think it should be filtered to what we want going forward.
carlossanlop commentedon Nov 7, 2023
@elinor-fung there's another hit in 6.0, specifically in the branding PR for 6.0.26: #94482
agocke commentedon Jul 7, 2025
This hasn’t reproed in a long time. Closing.