Skip to content

[ci-scan] Build break: NativeMemory not available in Microsoft.Bcl.Memory.Tests on net481 #131390

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1526281
Build error leg or test failing: windows-x64 Release Libraries_NET481 (Build product) - Microsoft.Bcl.Memory.Tests
Reproduced in follow-up build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1526936

Error Details

The Microsoft.Bcl.Memory.Tests project fails to compile for the net481 target because AllocationHelper.cs uses System.Runtime.InteropServices.NativeMemory, which is not available on .NET Framework (net481). This breaks the windows-x64 Release Libraries_NET481 leg on runtime-extra-platforms.

src\libraries\System.Memory\tests\AllocationHelper.cs(29,34): error CS0103: The name 'NativeMemory' does not exist in the current context [src\libraries\Microsoft.Bcl.Memory\tests\Microsoft.Bcl.Memory.Tests.csproj::TargetFramework=net481]
src\libraries\System.Memory\tests\AllocationHelper.cs(29,53): error CS0030: Cannot convert type 'System.IntPtr' to 'nuint' [Microsoft.Bcl.Memory.Tests.csproj::TargetFramework=net481]
src\libraries\System.Memory\tests\AllocationHelper.cs(51,17): error CS0103: The name 'NativeMemory' does not exist in the current context [Microsoft.Bcl.Memory.Tests.csproj::TargetFramework=net481]

Error Message

{
  "ErrorMessage": "AllocationHelper.cs(29,34): error CS0103: The name 'NativeMemory' does not exist in the current context",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Filed by ci-failure-scan (detection only). ci-failure-fix walks open [ci-scan] KBEs and either opens a small fix PR or comments here to loop in owners — it never disables the test.

Note

This issue was generated by an AI agent (GitHub Copilot / ci-failure-scan).

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 · 748.4 AIC · ⌖ 17.5 AIC · ⊞ 18.6K · ◷

Report

Build Repository Step Name Console log Pull Request
1528048 dotnet/runtime Build product Log #131358
1527839 dotnet/runtime Build product Log #131306
1528036 dotnet/runtime Build product Log #130463
1528029 dotnet/runtime Build product Log #131414
1528007 dotnet/runtime Build product Log #128626
1527849 dotnet/runtime Build product Log #131275
1527753 dotnet/runtime Build product Log #129968
1527722 dotnet/runtime Build product Log #131411
1527700 dotnet/runtime Build product Log
1527499 dotnet/runtime Build product Log #131408
1527467 dotnet/runtime Build product Log
1527449 dotnet/runtime Build product Log #129683
1527354 dotnet/runtime Build product Log #131358
1527334 dotnet/runtime Build product Log
1527329 dotnet/runtime Build product Log #131398
1527311 dotnet/runtime Build product Log #131397
1527293 dotnet/runtime Build product Log #118075
1527236 dotnet/runtime Build product Log #131351
1527140 dotnet/runtime Build product Log #131083
1527109 dotnet/runtime Build product Log #131387

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
18 20 20

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabagentic-workflowsblocking-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