Skip to content

[test] Method not found Xunit.Sdk.XunitException..ctor #4655

Open

Description

@mdh1418

Test: AssemblyLoad_ProducesEvents
Error Message: System.MissingMethodException : Method not found: 'Void Xunit.Sdk.XunitException..ctor(System.String, System.String)'.
Configuration: Ubuntu_20_04_x64_Debug

Stack Trace:

   at Microsoft.DotNet.RemoteExecutor.RemoteExecutionException..ctor(String stackTrace)
   at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing) in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 231
   at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose() in /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs:line 57
   at EventPipe.UnitTests.Common.RemoteTestExecutorHelper.RunTestCaseAsync(Action testCase, ITestOutputHelper output) in /__w/1/s/src/tests/eventpipe/common/RemoteTestExecutorHelper.cs:line 34
   at EventPipe.UnitTests.LoaderEventsValidation.LoaderEventsTests.AssemblyLoad_ProducesEvents() in /__w/1/s/src/tests/eventpipe/LoaderEvents.cs:line 37
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=668134&view=ms.vss-test-web.build-test-results-tab&runId=16576362&resultId=100111&paneView=debug

PullRequest where test is failing #4616 seems unrelated, probably a flakey test that hadn't failed in neighboring builds

Activity

  1. added this to the 9.0.0 milestone on May 7, 2024
  2. self-assigned this
    on May 13, 2024
  3. added
    testing
    on Jul 10, 2024
  4. removed their assignment
    on Jul 10, 2024
  5. mikem8361 commented on Jul 10, 2024

    @mikem8361
    Contributor

    Not sure I have ever seen this failure before.

  6. mikem8361 commented on Aug 27, 2024

    @mikem8361
    Contributor

    PR that disabled this test: #4892

  7. modified the milestones: 9.0.0, Future on May 13, 2025
  8. paulmedynski commented on Jun 12, 2025

    @paulmedynski

    I'm currently seeing this as well, and it seems to be related to the code being executed by RemoteExecutor.Invoke() that uses xUnit Assert()s that fail. I think the child process spawned by Invoke() maybe can't find the xUnit assemblies. I'm only seeing these failures in our ADO pipelines. Running tests locally is fine.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions