Skip to content

[ci-scan] Test failure: JIT/opt/ObjectStackAllocation/Runtime_131713 fails under NativeAOT with XmlSerializer parameterless-cons [Content truncated due to length] #131938

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1540632
Build error leg or test failing: linux-x64 Checked NativeAOT_Pri1 - JIT/opt/ObjectStackAllocation/Runtime_131713/Runtime_131713.cmd

Error Details

The Runtime_131713 object-stack-allocation regression test fails on the runtime-nativeaot-outerloop NativeAOT_Pri1 legs (linux-x64, linux-arm, linux-arm64, windows-x64, windows-x86). Under NativeAOT, XmlSerializer.Serialize throws because reflection metadata for the Foo type is trimmed, so the serializer cannot find a parameterless constructor. Expected 100 / Actual 101.

System.InvalidOperationException: There was an error generating the XML document.
 ---> System.InvalidOperationException: Foo cannot be serialized because it does not have a parameterless constructor.
   at System.Xml.Serialization.TypeDesc.CheckSupported()
   at System.Xml.Serialization.TypeScope.GetTypeDesc(Type, MemberInfo, Boolean, Boolean)
   at System.Xml.Serialization.ModelScope.GetTypeModel(Type, Boolean)
   at System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type, XmlRootAttribute, String)
   at System.Xml.Serialization.XmlSerializer.GetMapping()
   at System.Xml.Serialization.XmlSerializer.SerializeUsingReflection(...)
   at System.Xml.Serialization.XmlSerializer.Serialize(...)
   --- End of inner exception stack trace ---
   at Runtime_131713.Serialize()
   at Runtime_131713.Test()
   at __GeneratedMainWrapper.Main()
Expected: 100
Actual: 101
END EXECUTION - FAILED

Observed in build 1540632 (2026-08-05) and reproduced in follow-up build 1541654 (2026-08-06) on the same NativeAOT legs. (Test name derives from issue #131713, which is closed; this is a distinct NativeAOT serialization failure.)

Error Message

{
  "ErrorMessage": [
    "Foo cannot be serialized because it does not have a parameterless constructor.",
    "at Runtime_131713.Serialize()"
  ],
  "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 (ci-failure-scan Copilot 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 · 554.9 AIC · ⌖ 12.2 AIC · ⊞ 18.3K ·

Report

Build Repository Test Pull Request
1542734 dotnet/runtime JIT\opt\ObjectStackAllocation\Runtime_131713\Runtime_131713.cmd #131907
1542248 dotnet/runtime JIT\opt\ObjectStackAllocation\Runtime_131713\Runtime_131713.cmd

Summary

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

Metadata

Metadata

Assignees

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

Relationships

None yet

Development

No branches or pull requests

Issue actions