Skip to content

System.Threading.Tasks.Extensions tests hanging on WASM #38931

Closed

Description

@mdh1418

Several tests from System.Threading.Tasks.Extensions are hanging when running the test suite on Browser WebAssembly.

It is suspected that "incomplete" tests in xharness lead to an infinite loop in the threadpool pump loop. #38815 (comment)

[SKIP] System.Threading.Tasks.Tests.AsyncValueTaskMethodBuilderTests.AwaitTasksAndValueTasks_InTaskAndValueTaskMethods
[SKIP] System.Threading.Tasks.Tests.AsyncValueTaskMethodBuilderTests.Generic_ConcurrentBuilders_WorkCorrectly
[SKIP] System.Threading.Tasks.Tests.AsyncValueTaskMethodBuilderTests.NonGeneric_ConcurrentBuilders_WorkCorrectly
[SKIP] System.Threading.Tasks.Sources.Tests.ManualResetValueTaskSourceTests.SetException_AfterOnCompleted_ResultAvailableAsynchronously
[SKIP] System.Threading.Tasks.Sources.Tests.ManualResetValueTaskSourceTests.AsyncEnumerable_Success
[SKIP] System.Threading.Tasks.Sources.Tests.ManualResetValueTaskSourceTests.SetResult_AfterOnCompleted_ResultAvailableAsynchronously
[SKIP] System.Threading.Tasks.Sources.Tests.ManualResetValueTaskSourceTests.ReuseInstanceWithResets_Success
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_CreateFromValueTaskSource_Canceled(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_CreateFromValueTaskSource_Success(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_CreateFromValueTaskSource_Faulted(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_CreateFromTask_Await_Normal
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_CreateFromValueTaskSource_Await_Normal
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.CreateFromValueTaskSource_Await_Normal
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_Awaiter_ContinuesOnCapturedContext
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_CreateFromTask_Await_Normal
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_ConfiguredAwaiter_ContinuesOnCapturedContext
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_CreateFromValueTaskSource_Canceled(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_CreateFromValueTaskSource_Faulted(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.NonGeneric_CreateFromValueTaskSource_Success(sync: False)
[SKIP] System.Threading.Tasks.Tests.ValueTaskTests.Generic_ConfiguredAwaiter_ContinuesOnCapturedContext

Activity

  1. added
    arch-wasm
    on Jul 8, 2020
  2. added
    untriaged
    on Jul 8, 2020
  3. added this to the Future milestone on Jul 31, 2020
  4. marek-safar commented on Jul 31, 2020

    @marek-safar
    Contributor

    Is this xharness issue?

    /cc @akoeplinger

  5. akoeplinger commented on Aug 3, 2020

    @akoeplinger
    Member

    I looked at it and yeah it's kind of an xharness issue. We only pump the threadpool but we don't pump the timer queue inside the xharness runner, so in the case of Task.Delay() it'll schedule a callback on the timer queue and that will never happen which leads to the infinite loop waiting for the test to finish.

    I'll know how to fix it.

  6. self-assigned this
    on Aug 3, 2020
  7. removed
    untriaged
    on Aug 3, 2020
  8. ghost locked as resolved and limited conversation to collaborators on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-System.Threading.Tasks

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions