Skip to content

Test failure - S.R.Tests.ControlledExecutionTests.CancelOnTimeout_ThrowFromFinally on `Libraries Test Run checked coreclr Linux arm64 Debug #73647

Closed

Description

@radical

Build for Libraries Test Run checked coreclr Linux arm64 Debug:

   System.Runtime.Tests.ControlledExecutionTests.CancelOnTimeout_ThrowFromFinally [FAIL]
      Assert.True() Failure
      Expected: True
      Actual:   False
      Stack Trace:
        /_/src/libraries/System.Runtime/tests/System/Runtime/ControlledExecutionTests.cs(56,0): at System.Runtime.Tests.ControlledExecutionTests.CancelOnTimeout_ThrowFromFinally()
           at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
        /_/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodInvoker.cs(69,0): at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Aug 9, 2022
  2. added this to the 7.0.0 milestone on Aug 15, 2022
  3. ghost removed
    untriagedNew issue has not been triaged by the area owner
    on Aug 15, 2022
  4. jeffhandley commented on Aug 15, 2022

    @jeffhandley
    Member

    @steveharter It looks like Reflection might be in the call stack here and a couple folks from this area pod are away from work right now. Can you take a look please?

  5. steveharter commented on Aug 15, 2022

    @steveharter
    Contributor

    It looks like Reflection might be in the call stack here

    Reflection is only in the call stack because XUnit uses reflection to invoke the test methods.

    Likely related to #73739 since they use the same test helpers and the failure occurred around the same date.

    The failure indicates the actual target test method LengthyAction_ThrowFromFinally was not called, since the first line of code in that method sets _startedExecution = true and the assert that is failing checks against that.

    Stack is:

    RunTest(LengthyAction_ThrowFromFinally, cts.Token);
    ->ControlledExecution.Run(action, cancellationToken);
    

    And since ControlledExectution is new, that should be investigated -- AntonLapounov PTAL.

  6. removed their assignment
    on Aug 15, 2022
  7. ghost locked as resolved and limited conversation to collaborators on Sep 18, 2022
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

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions