Skip to content

[ci-scan] Test failure: JIT/Regression/JitBlue/Runtime_101046 NativeAOT FileNotFoundException 'TestLibrary' #131997

Description

@github-actions

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

13:11:03.521 Running test: JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
Unhandled exception. System.IO.FileNotFoundException: Could not find file 'TestLibrary'.
File name: 'TestLibrary'
   at Internal.Runtime.TypeLoaderExceptionHelper.CreateFileNotFoundException(ExceptionStringID, String)
   at __GeneratedMainWrapper.Main()

Return code:      1
Expected: 100
Actual: -1073740791
END EXECUTION - FAILED

This NativeAOT test regularly fails on windows.10.amd64 in the
runtime-nativeaot-outerloop pipeline (definition 265). The generated NativeAOT
entry point throws System.IO.FileNotFoundException: Could not find file 'TestLibrary' from TypeLoaderExceptionHelper.CreateFileNotFoundException
before the test body runs, exiting with -1073740791 (0xC0000409). The
signature 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:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by CI Outer-Loop Failure Scanner · 991.7 AIC · ⌖ 17.1 AIC · ⊞ 18.3K · ◷

Report

Build Repository Test Pull Request
1547968 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1547684 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd #132083
1547390 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1546438 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1545949 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1545856 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd #131907
1545740 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1545587 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd #131907
1545564 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1545347 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1545024 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd
1544115 dotnet/runtime JIT\Regression\JitBlue\Runtime_101046\Runtime_101046\Runtime_101046.cmd

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
3 12 12

Activity

  1. added
    area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
    on Aug 7, 2026
  2. dotnet-policy-service commented on Aug 7, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
    See info in area-owners.md if you want to be subscribed.

  3. github-actions commented on Aug 8, 2026

    @github-actions
    ContributorAuthor

    Workflow artifact: ci-fix
    Artifact kind: handoff
    Linked KBE: #131997

    Note

    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-outerloop NativeAOT_Pri1 windows-x64 leg, JIT/Regression/JitBlue/Runtime_101046 fails 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 Runtime101046Native asset and references the managed TestLibrary helper. The generated NativeAOT entry point throws FileNotFoundException: Could not find file 'TestLibrary' from TypeLoaderExceptionHelper — i.e. under NativeAOT the TestLibrary assembly (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/TestLibrary asset is missing at run time — this looks like a NativeAOT test-layout / harness packaging gap (the managed TestLibrary and 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

    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 TestLibrary assembly and the native Runtime101046Native asset 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 resolve TestLibrary at 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.allowed list 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 · ◷

  4. removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 11, 2026
  5. added a commit that references this issue on Aug 13, 2026
    0c4851b
  6. locked and limited conversation to collaborators on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsarea-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMIblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions