Repository navigation
[ci-scan] Test failure: JIT/Regression/JitBlue/Runtime_101046 NativeAOT FileNotFoundException 'TestLibrary' #131997
Description
Activity
- addedblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tab
on Aug 7, 2026 - addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Aug 7, 2026 - addedarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
on Aug 7, 2026 dotnet-policy-service commented
on Aug 7, 2026 ContributorMore actionsTagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.github-actions commented
on Aug 8, 2026 on Aug 8, 2026 – with GitHub ActionsContributorAuthorMore actionsWorkflow artifact: ci-fix
Artifact kind: handoff
Linked KBE: #131997Note
AI/Copilot-generated triage note.
This Known Build Error has no producible automated code change I can stand behind (the test is
[ActiveIssue]-guarded for the exact platform capability that appears to be at play, and the remaining candidate changes are NativeAOT-harness / rooting decisions rather than a small safe source diff — and the one mitigation that would "work", disabling the test, is out of scope for this workflow). Looping in owners so it can be fixed forward rather than muted.Root cause (best analysis)
On the
runtime-nativeaot-outerloopNativeAOT_Pri1 windows-x64 leg,JIT/Regression/JitBlue/Runtime_101046fails before the test body runs:Unhandled exception. System.IO.FileNotFoundException: Could not find file 'TestLibrary'. at Internal.Runtime.TypeLoaderExceptionHelper.CreateFileNotFoundException(...) at __GeneratedMainWrapper.Main() Return code: 1 (0xC0000409)The test P/Invokes into a native
Runtime101046Nativeasset and references the managedTestLibraryhelper. The generated NativeAOT entry point throwsFileNotFoundException: Could not find file 'TestLibrary'fromTypeLoaderExceptionHelper— i.e. under NativeAOT theTestLibraryassembly (or a type it needs) is not present/resolvable at runtime in the app layout for this test.Notably the test already carries:
[ActiveIssue("https://github.com/dotnet/runtime/issues/123946", typeof(PlatformDetection), nameof(PlatformDetection.PlatformDoesNotSupportNativeTestAssets))]
so on platforms that lack native test-asset support it is skipped. The NativeAOT windows-x64 leg is not excluded by that guard, yet the native/
TestLibraryasset is missing at run time — this looks like a NativeAOT test-layout / harness packaging gap (the managedTestLibraryand the native asset not being copied/rooted into the NativeAOT app bundle), which is an owner decision, not a mechanical source fix. I deliberately did not propose an[ActiveIssue]widening or a test-disable, since this workflow must not mute tests.Evidence
- Failing build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1542248 (leg: windows-x64 Release NativeAOT_Pri1)
- First build it occurred: 1541654 (2026-08-05); stable across 1541654, 1542248, follow-up 1543362.
- Possible related PR: none identified with sufficient confidence.
Suggested reviewers / area contacts
- Area owners (
area-NativeAOT-coreclr):@agocke,@dotnet/ilc-contrib - CodeGen (
area-CodeGen-coreclr):@JulieLeeMSFT,@dotnet/jit-contrib
A fix would likely involve ensuring the managed
TestLibraryassembly and the nativeRuntime101046Nativeasset are packaged/rooted into the NativeAOT app layout for this test (or adjusting the harness so native-test-asset tests are handled consistently under NativeAOT), so__GeneratedMainWrapper.Main()can resolveTestLibraryat run time.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpg
To allow these domains, add them to the
network.allowedlist in your workflow frontmatter:network: allowed: - defaults - "awmgmcpg"
See Network Configuration for more information.
Generated by CI Outer-Loop Failure Fixer · 400.7 AIC · ⌖ 18.4 AIC · ⊞ 17.1K · ◷
- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Aug 11, 2026 - linked a pull request that will close this issueFix FileNotFoundException in NativeAOT test #132173
on Aug 11, 2026 - added a commit that references this issue
on Aug 13, 2026 - locked and limited conversation to collaborators
on Sep 12, 2026
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1542248
Build error leg or test failing: windows-x64 Release NativeAOT_Pri1 - JIT/Regression/JitBlue/Runtime_101046/Runtime_101046
Error Details
This NativeAOT test regularly fails on
windows.10.amd64in theruntime-nativeaot-outerloop pipeline (definition 265). The generated NativeAOT
entry point throws
System.IO.FileNotFoundException: Could not find file 'TestLibrary'fromTypeLoaderExceptionHelper.CreateFileNotFoundExceptionbefore the test body runs, exiting with
-1073740791(0xC0000409). Thesignature is stable across builds 1541654, 1542248, and follow-up 1543362.
First build it occurred: 1541654 (2026-08-05).
Error Message
{ "ErrorMessage": [ "Running test: JIT\\Regression\\JitBlue\\Runtime_101046", "Unhandled exception. System.IO.FileNotFoundException: Could not find file 'TestLibrary'." ], "ErrorPattern": "", "BuildRetry": false, "ExcludeConsoleLog": false }Note
This issue was generated by an AI (GitHub Copilot) CI failure-scan workflow.
Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
awmgmcpgSee Network Configuration for more information.
Report
Summary