dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.46k stars 4.76k forks source link

Task wasn't RunSynchronously with TaskScheduler specified #94653

Open MichalStrehovsky opened 1 year ago

MichalStrehovsky commented 1 year ago

Seen in Native AOT Alpine x64 test legs only so far.

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=465740 Build error leg or test failing: System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest11 Pull request: https://github.com/dotnet/runtime/pull/94515

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Task wasn't RunSynchronously with TaskScheduler specified",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=465740 Error message validated: Task wasn't RunSynchronously with TaskScheduler specified Result validation: :white_check_mark: Known issue matched with the provided build. Validation performed at: 11/13/2023 7:00:11 AM UTC

Report

Build Definition Test Pull Request
565658 dotnet/runtime System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest10 dotnet/runtime#98022
561688 dotnet/runtime System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest10
560825 dotnet/runtime System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest10
559095 dotnet/runtime System.Threading.Tasks.Tests.WorkItemExecution
552888 dotnet/runtime System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest12
549969 dotnet/runtime System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest10

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 6
ghost commented 1 year ago

Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.

Issue Details
Seen in Native AOT Alpine x64 test legs only so far. ## Build Information Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=465740 Build error leg or test failing: System.Threading.Tasks.Tests.TaskRunSyncTests.TaskRunSyncTest11 Pull request: https://github.com/dotnet/runtime/pull/94515 ## Error Message Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssues.md#how-to-fill-out-a-known-issue-error-section). ```json { "ErrorMessage": "Task wasn't RunSynchronously with TaskScheduler specified", "ErrorPattern": "", "BuildRetry": false, "ExcludeConsoleLog": false } ```
Author: MichalStrehovsky
Assignees: -
Labels: `blocking-clean-ci`, `area-NativeAOT-coreclr`, `Known Build Error`
Milestone: -
MichalStrehovsky commented 9 months ago

Disabling this test on musl in #99031.

This test has several different failure modes.

dotnet-policy-service[bot] commented 6 months ago

Tagging subscribers to this area: @dotnet/area-system-threading-tasks See info in area-owners.md if you want to be subscribed.

ericstj commented 4 months ago

It looks like the entirety of System.Threading.Tasks.Tests.csproj has been excluded from MUSL as part of this. @stephentoub @dotnet/area-system-threading-tasks are you OK with that?

stephentoub commented 4 months ago

There's little-to-no logic in Tasks that's OS-specific. I've not investigated the failure or the reason for it, but if it's disabled only on MUSL with NativeAOT, we have plenty of other validation in place such that I'm not concerned for now.