Skip to content

[ci-scan] Test failure: NumberHandlingTests_Metadata.Number_AsCollectionElement_RoundTrip on NativeAOT windows-x64 #129010

@github-actions

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1448568
Build error leg or test failing: windows-x64 Release NativeAOT_Checked_Libs_SpeedOpt - System.Text.Json.SourceGeneration.Roslyn4.4.Tests

Error Details

[FAIL] System.Text.Json.SourceGeneration.Tests.NumberHandlingTests_Metadata.Number_AsCollectionElement_RoundTrip
Assert.Throws() Failure: Exception type was not an exact match
Expected: typeof(System.Text.Json.JsonException)
Actual:   typeof(System.NullReferenceException)
   at System.Text.Json.Serialization.Tests.NumberHandlingTests.Number_AsCollectionElement_RoundTrip() in /_/src/libraries/System.Text.Json/tests/Common/NumberHandlingTests.cs:line 388
   at System.Text.Json.Serialization.Tests.NumberHandlingTests.Number_AsCollectionElement_RoundTrip()

Error Message

true only for clear infra flakes. ExcludeConsoleLog skips helix log scanning. -->

{
  "ErrorMessage": ["NumberHandlingTests_Metadata.Number_AsCollectionElement_RoundTrip", "Expected: typeof(System.Text.Json.JsonException)"],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Impact on platforms

  • runtime-nativeaot-outerloop (def 265) / windows-x64 Release NativeAOT_Checked_Libs_SpeedOpt / System.Text.Json.SourceGeneration.Roslyn4.4.Tests / Exit code 1
  • Occurrences in window: 2 builds (1448568, 1449365)

First build it occurred

Additional context

Under NativeAOT, the test expects JsonException when deserializing a number as a collection element, but receives NullReferenceException instead — suggesting the NativeAOT compiled code path throws an unexpected null dereference before the expected validation logic fires.

Related: #66220 (same test, different platform — iOS/Mono, filed 2022, still open)


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.

Generated by CI Outer-Loop Failure Scanner · ● 29.6M ·

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

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'untriagedNew issue has not been triaged by the area owner

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions