Skip to content

AsyncTransactionScopeTests.AsyncTSTest failed in CI #18794

Closed

Description

@stephentoub

http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/master/job/osx_debug_prtest/821/consoleText

System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest [FAIL]
        System.AggregateException : One or more errors occurred. (Assert.Equal() Failure
        Expected: Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }
        Actual:   (null))
        ---- Assert.Equal() Failure
        Expected: Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }
        Actual:   (null)
  Finished:    System.Numerics.Vectors.Tests
        Stack Trace:

              at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
              at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
              at System.Threading.Tasks.Task.Wait()
              at System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest()
           ----- Inner Stack Trace -----
              at System.Transactions.Tests.AsyncTransactionScopeTests.AssertTransactionNull()
              at System.Transactions.Tests.AsyncTransactionScopeTests.AssertTransaction(String txId)
              at System.Transactions.Tests.AsyncTransactionScopeTests.SyncTSL3AsyncTSL2NestedTxWork(Boolean parentRequiresNew, Boolean childL2RequiresNew, Boolean childL3RequiresNew, Boolean asyncChildL3, Boolean asyncWorkBeforeChildL3, Boolean asyncWorkAfterChildL3, String txId)
              at System.Transactions.Tests.AsyncTransactionScopeTests.<>c.<AsyncTSTest>b__4_11()
              at System.Threading.Tasks.Task.Execute()

Activity

  1. jimcarley commented on Oct 11, 2016

    @jimcarley
    Contributor

    Well, these builds are now gone, so I don't see how I can dig deeper.

    In the first failure (osx_debug_prtest 821), it looks like the test expected Transaction.Current to be "null", but in fact it contained a Transaction object which was already disposed.

    In the second failure (centos7.1_debug_prtest1268), I have no data as to what the failure might have been.

  2. self-assigned this
    on Oct 11, 2016
  3. danmoseley commented on Nov 16, 2016

    @danmoseley
    Contributor

    @jimcarley what's the next step here -- more logging? We can close this issue, but without reason to believe it is fixed, it will get reopened again eventually.

  4. jimcarley commented on Nov 16, 2016

    @jimcarley
    Contributor

    Now that we have tracing capabilities inside System.Transactions itself, I am looking into turning on that tracing for this test to get more information.

  5. danmoseley commented on Nov 21, 2016

    @danmoseley
    Contributor

    @jimcarley did you get a chance to turn on the logging? I'm trying to keep all the CI failure issues moving along.

  6. danmoseley commented on Nov 29, 2016

    @danmoseley
    Contributor
  7. jimcarley commented on Nov 29, 2016

    @jimcarley
    Contributor

    Sorry. I was out on vacation. We have a person working on enabling logging within the test.

  8. jiangzeng commented on Dec 8, 2016

    @jiangzeng

    Happening on build 20161207.04.
    https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fcli~2F/build/20161207.04/workItem/System.Transactions.Tests/analysis/xunit/System.Transactions.Tests.AsyncTransactionScopeTests~2FAsyncTSTest

    Suse.132.Amd64-AnyCPU-Release 
    Unhandled Exception of Type System.AggregateException
    Message :
    System.AggregateException : One or more errors occurred. (Assert.Equal() Failure\nExpected: Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }\nActual:   (null))\n---- Assert.Equal() Failure\nExpected: Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }\nActual:   (null)
    
    Stack Trace :
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest()
    ----- Inner Stack Trace -----
       at System.Transactions.Tests.AsyncTransactionScopeTests.AssertTransaction(String txId)
       at System.Transactions.Tests.AsyncTransactionScopeTests.DoTaskUnderAsyncTS(Boolean requiresNew, String txId)
       at System.Threading.Tasks.Task.Execute()
    
  9. danmoseley commented on Dec 16, 2016

    @danmoseley
    Contributor

    @jimcarley could you give an update -- did the logging go in?

  10. jimcarley commented on Dec 16, 2016

    @jimcarley
    Contributor

    Not yet. Qi is working on it. She has a PR outstanding.

  11. qizhanMS commented on Jan 3, 2017

    @qizhanMS
    Member

    Added tracing in AsyncTransactionScopeTests in pull request dotnet/corefx#14544 . If the test failed again, we will be able to get tracing information for further investigation.

  12. danmoseley commented on Jan 4, 2017

    @danmoseley
    Contributor

    OK, let's close this until it happens again. @jiangzeng please reactivate if it does.

  13. 6 remaining items

  14. jimcarley commented on Jan 4, 2017

    @jimcarley
    Contributor

    Thanks for replying, Qi. I was in the process of writing a reply, but you beat me to it.

  15. danmoseley commented on Jul 22, 2017

    @danmoseley
    Contributor

    https://mc.dot.net/#/user/danmosemsft/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/59bc20a58c0b3a277811d4010e2a51e2eb513c5a/workItem/System.Transactions.Local.Tests/analysis/xunit/System.Transactions.Tests.AsyncTransactionScopeTests~2FAsyncTSTest(variation:%209)

    unfortunately I do not see anything extra in the test result file:

          <test name="System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest(variation: 9)" type="System.Transactions.Tests.AsyncTransactionScopeTests" method="AsyncTSTest" time="0.0291742" result="Fail">
            <failure exception-type="System.AggregateException">
              <message><![CDATA[System.AggregateException : One or more errors occurred. (Assert.Equal() Failure\nExpected: (null)\nActual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) })\n---- Assert.Equal() Failure\nExpected: (null)\nActual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }]]></message>
              <stack-trace><![CDATA[   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Transactions.Tests.AsyncTransactionScopeTests.<>c__DisplayClass6_0.<AsyncTSTest>b__0() in /mnt/j/workspace/dotnet_corefx/master/linux-TGroup_netcoreapp+CGroup_Release+AGroup_x64+TestOuter_false_prtest/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 156
       at System.Transactions.Tests.TestEventListener.RunWithCallback(Action`1 handler, Action body) in /mnt/j/workspace/dotnet_corefx/master/linux-TGroup_netcoreapp+CGroup_Release+AGroup_x64+TestOuter_false_prtest/src/System.Transactions.Local/tests/TransactionTracingEventListener.cs:line 104
       at System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest(Int32 variation) in /mnt/j/workspace/dotnet_corefx/master/linux-TGroup_netcoreapp+CGroup_Release+AGroup_x64+TestOuter_false_prtest/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 417
    ----- Inner Stack Trace -----
       at System.Transactions.Tests.AsyncTransactionScopeTests.DoTaskUnderAsyncTS(Boolean requiresNew, String txId) in /mnt/j/workspace/dotnet_corefx/master/linux-TGroup_netcoreapp+CGroup_Release+AGroup_x64+TestOuter_false_prtest/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 1609
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)]]></stack-trace>
            </failure>
          </test>
    
  16. danmoseley commented on Jul 22, 2017

    @danmoseley
    Contributor

    @qizhanMS which file would the logging be in?

  17. danmoseley commented on Oct 31, 2017

    @danmoseley
    Contributor

    @qizhanMS @jimcarley where would I expect to see the logging? The XML just has

          <test name="System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest(variation: 12)" type="System.Transactions.Tests.AsyncTransactionScopeTests" method="AsyncTSTest" time="0.0237456" result="Fail">
            <failure exception-type="System.AggregateException">
              <message><![CDATA[System.AggregateException : One or more errors occurred. (Assert.Equal() Failure\nExpected: (null)\nActual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) })\n---- Assert.Equal() Failure\nExpected: (null)\nActual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }]]></message>
              <stack-trace><![CDATA[   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at System.Threading.Tasks.Task.Wait()
       at System.Transactions.Tests.AsyncTransactionScopeTests.<>c__DisplayClass6_0.<AsyncTSTest>b__0() in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 171
       at System.Transactions.Tests.TestEventListener.RunWithCallback(Action`1 handler, Action body) in /root/corefx/src/System.Transactions.Local/tests/TransactionTracingEventListener.cs:line 104
       at System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest(Int32 variation) in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 102
    ----- Inner Stack Trace -----
       at System.Transactions.Tests.AsyncTransactionScopeTests.AssertTransactionNull() in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 1662
       at System.Transactions.Tests.AsyncTransactionScopeTests.AssertTransaction(String txId) in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 1653
       at System.Transactions.Tests.AsyncTransactionScopeTests.SyncTSDoTaskUnderAsyncTS(Boolean parentRequiresNew, Boolean childRequiresNew, String txId) in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 1589
       at System.Transactions.Tests.AsyncTransactionScopeTests.<>c.<AsyncTSTest>b__6_10() in /root/corefx/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 171
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)]]></stack-trace>
            </failure>
          </test>
    

    https://mc.dot.net/#/product/netcore/200/source/official~2Fcorefx~2Frelease~2F2.0.0~2F/type/test~2Ffunctional~2Fcli~2F/build/20171030.01/workItem/System.Transactions.Local.Tests/wilogs

    This is not a high impact failure but if you added logging it would make sense to use it if we can find it..

  18. karelz commented on Jan 3, 2018

    @karelz
    Member

    Another failure in official Helix run: 20171224.02 on Debian87

    System.AggregateException : One or more errors occurred. (Assert.Equal() Failure
    Expected: (null)
    Actual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) })
    ---- Assert.Equal() Failure
    Expected: (null)
    Actual:   Transaction { IsolationLevel = (throws ObjectDisposedException), PromoterType = (throws ObjectDisposedException), TransactionInformation = (throws ObjectDisposedException) }
    
    at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) in /root/coreclr/src/mscorlib/src/System/Threading/Tasks/Task.cs:line 2835
    at System.Transactions.Tests.AsyncTransactionScopeTests.<>c__DisplayClass6_0.<AsyncTSTest>b__0() in /root/corefx-1246775/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 171
    at System.Transactions.Tests.TestEventListener.RunWithCallback(Action`1 handler, Action body) in /root/corefx-1246775/src/System.Transactions.Local/tests/TransactionTracingEventListener.cs:line 108
    at System.Transactions.Tests.AsyncTransactionScopeTests.AsyncTSTest(Int32 variation) in /root/corefx-1246775/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 417
    ----- Inner Stack Trace -----
    at System.Transactions.Tests.AsyncTransactionScopeTests.SyncTSDoTaskUnderAsyncTS(Boolean parentRequiresNew, Boolean childRequiresNew, String txId) in /root/corefx-1246775/src/System.Transactions.Local/tests/AsyncTransactionScopeTests.cs:line 1591
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) in /root/coreclr/src/mscorlib/shared/System/Threading/ExecutionContext.cs:line 151
    at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) in /root/coreclr/src/mscorlib/src/System/Threading/Tasks/Task.cs:line 2440
    
  19. karelz commented on Apr 2, 2018

    @karelz
    Member

    Moving to Future based on offline info from @qizhanMS:

    This is not a must-have for 2.1. It is a transient test failure. Let’s postpone it to next release.

  20. stephentoub commented on Oct 27, 2018

    @stephentoub
    MemberAuthor

    Hasn't failed in a long time. Closing.

  21. transferred this issue fromdotnet/corefxon Jan 31, 2020
  22. added this to the 3.0 milestone on Jan 31, 2020
  23. ghost locked as resolved and limited conversation to collaborators on Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Transactionstest-bugtest-run-core

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions