You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ci-scan] Test failure: JIT/opt/ObjectStackAllocation/Runtime_131713 fails under NativeAOT with XmlSerializer parameterless-cons
[Content truncated due to length] #131938
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:
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-outerloopNativeAOT_Pri1 legs (linux-x64, linux-arm, linux-arm64, windows-x64, windows-x86). Under NativeAOT,XmlSerializer.Serializethrows because reflection metadata for theFootype is trimmed, so the serializer cannot find a parameterless constructor. Expected 100 / Actual 101.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-fixwalks 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-scanCopilot 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