Skip to content

[ci-scan] Known Build Error: SwiftErrorHandling.TestSwiftErrorThrown fails in runtime-interpreter #127897

Description

@github-actions

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
Build error leg or test failing: osx arm64 Checked-Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd

Error Message

{
  "ErrorMessage": "Xunit.Sdk.TrueException: A Swift error was expected to be thrown.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

ErrorHandlingTests.TestSwiftErrorThrown() fails in runtime-interpreter (def 316) under CoreCLR interpreter mode. The test asserts that a Swift error propagates through the reverse-P/Invoke boundary, but the interpreter does not implement the Swift error-return calling-convention path (SwiftError* parameter), so no error is set and the assertion fails.

Affected pipelines (2 confirmed failing builds):

  • runtime-interpreter (def 316): osx-arm64 Checked and osx-x64 Checked — builds 1410560, 1407440

Errors log:

BEGIN EXECUTION
corerun SwiftErrorHandling.dll
Xunit.Sdk.TrueException: A Swift error was expected to be thrown.
   at Xunit.Assert.True(Boolean condition, String userMessage)
END EXECUTION - FAILED
Test Harness Exitcode is : 1

First build it occurred: Build 1407440 (May 4, 2026) is the earliest in the scanned window. Occurrence count in window: 2. This is computed within the scanned window and may not be the true origin.

Recommended action:

  • Owner: @dotnet/interop-contrib, Swift interop area
  • Root cause: CoreCLR interpreter does not implement the Swift error-result calling convention; SwiftError* register is never set, so ErrorHandlingTests.TestSwiftErrorThrown() never sees a thrown error.
  • Investigate src/tests/Interop/Swift/SwiftErrorHandling/ and the interpreter's Swift interop callsite generation.
  • Short-term: add [SkipOnCoreClr("Swift error calling convention not supported under interpreter", RuntimeTestModes.InterpreterActive)] to ErrorHandlingTests (in a follow-up muting PR once this KBE issue number is known).

Note

🤖 This issue was generated by the CI Outer-Loop Failure Scanner.

Note

🔒 Integrity filter blocked 1 item

The following item were blocked because they don't meet the GitHub integrity level.

  • #110173 search_issues: 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 | none

Generated by CI Outer-Loop Failure Scanner · ● 16.2M · ◷

Report

Summary

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

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
Error message validated: [Xunit.Sdk.TrueException: A Swift error was expected to be thrown.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/7/2026 8:27:21 AM UTC

Report

Build Definition Test Pull Request
1410560 dotnet/runtime Interop/Swift/SwiftErrorHandling/SwiftErrorHandling/SwiftErrorHandling.cmd

Summary

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

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1410560
Error message validated: [Xunit.Sdk.TrueException: A Swift error was expected to be thrown.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/7/2026 8:27:21 AM UTC

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions