Repository navigation
Description
82 System.Xml.XslCompiledTransformApiTests tests fail across all 15 NativeAOT legs in the latest runtime-nativeaot-outerloop build. The tests crash with TypeInitializationException wrapping PlatformNotSupportedException: Dynamic code generation is not supported on this platform, because XslCompiledTransform calls XmlILModule.DefineMethod which uses Reflection.Emit.
This is a new regression — the same tests passed in the previous NativeAOT outerloop builds (1411078 succeeded entirely; 1408078 had System.Private.Xml.Tests ExitCode=0 on linux-x64). The root cause is likely that these tests were recently included in the NativeAOT test matrix, or a code change removed a guard that previously prevented the Reflection.Emit path from being hit.
Impact on platforms
runtime-nativeaot-outerloop(def 265) ·linux-x64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·linux-arm64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·linux-arm Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·osx-arm64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·osx-x64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·windows-x64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·windows-x86 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·windows-arm64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·linux_musl-arm64 Release NativeAOT_Libs· exit code 1runtime-nativeaot-outerloop(def 265) ·linux_musl-x64 Release NativeAOT_Libs· exit code 1- (plus 5 Checked/SizeOpt/SpeedOpt variants)
82 failing test methods across CArgGetExtObj, CArgRemoveExtObj, CArgClear, CNullArgumentTest, XsltEvents.
Errors log
[FAIL] System.Xml.XslCompiledTransformApiTests.CArgGetExtObj.GetExtObject3(param: "showParam.txt", ...)
System.TypeInitializationException : A type initializer threw an exception.
---- System.PlatformNotSupportedException : Dynamic code generation is not supported on this platform.
at System.Xml.Xsl.IlGen.XmlILModule.DefineMethod(String, Type, Type[], String[], XmlILMethodAttributes)
in /_/src/libraries/System.Private.Xml/src/System/Xml/Xsl/IlGen/XmlILModule.cs:line 154
First build it occurred
runtime-nativeaot-outerloop build 1413408 — finished 2026-05-08. First occurrence in the scanned window; the previous build 1411078 succeeded. Note: this is computed within the ~10-build scan window and may not be the true origin.
Recommended action
The XslCompiledTransform compiled-XSL path is fundamentally incompatible with NativeAOT because it relies on Reflection.Emit. These tests should be excluded from NativeAOT test runs:
- Either add
[ConditionalFact/Theory(typeof(PlatformDetection), nameof(PlatformDetection.IsReflectionEmitSupported))]to the affected test classes. - Or exclude
System.Private.Xml.TestsXSL compiled-transform test classes from the NativeAOT test filter ineng/testing/tests.nativeaot.targets.
Investigate what changed between builds 1411078 and 1413408 to cause these tests to start running on NativeAOT.
Note
🔒 Integrity filter blocked 2 items
The following items were blocked because they don't meet the GitHub integrity level.
- #114222
search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved". - #124716
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".
To allow these resources, lower min-integrity in your GitHub frontmatter:
tools:
github:
min-integrity: approved # merged | approved | unapproved | noneGenerated by CI Outer-Loop Failure Scanner · ● 116.3M · ◷
Activity
kotlarmilos commentedon May 8, 2026
This was fixed in #127947
[ci-failure-scan] Tighten KBE filing rules and PR-search coverage (#1…
[ci-failure-scan] Tighten KBE filing rules and PR-search coverage (do…