Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source generator tests failing with NullReferenceException in TaskReplicator #110127

Closed
jkotas opened this issue Nov 25, 2024 · 2 comments · Fixed by #110129
Closed

Source generator tests failing with NullReferenceException in TaskReplicator #110127

jkotas opened this issue Nov 25, 2024 · 2 comments · Fixed by #110129
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' in-pr There is an active PR which will close this issue when it is merged Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@jkotas
Copy link
Member

jkotas commented Nov 25, 2024

  Starting:    ComInterfaceGenerator.Unit.Tests (parallel test collections = on [2 threads], stop on fail = off)
    ComInterfaceGenerator.Unit.Tests.ComClassGeneratorOutputShape.SingleComClass [FAIL]
      System.AggregateException : One or more errors occurred. (Object reference not set to an instance of an object.)
      ---- System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
        /_/src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/TaskReplicator.cs(158,0): at System.Threading.Tasks.TaskReplicator.Run[TState](ReplicatableUserAction`1 action, ParallelOptions options, Boolean stopOnFirstFailure)
        /_/src/libraries/System.Threading.Tasks.Parallel/src/System/Threading/Tasks/Parallel.cs(982,0): at System.Threading.Tasks.Parallel.ForWorker[TLocal,TInt](TInt fromInclusive, TInt toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=877993
Build error leg or test failing: ComInterfaceGenerator.Unit.Tests.AddGeneratedComClassTests.TypeThatImplementsGeneratedComInterfaceType_ReportsDiagnostic
Pull request: #110123

Error Message

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

{
  "ErrorMessage": [ "NullReferenceException", "System.Threading.Tasks.TaskReplicator" ],
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=877993
Error message validated: [NullReferenceException System.Threading.Tasks.TaskReplicator]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/25/2024 5:47:56 AM UTC

Report

Build Definition Test Pull Request
878074 dotnet/runtime System.Text.RegularExpressions.Tests.RegexGeneratorParserTests.Valid_ClassWithGenericConstraints #109996
877993 dotnet/runtime System.Text.RegularExpressions.Tests.RegexGeneratorParserTests.Valid_ClassWithGenericConstraints #110123

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
2 2 2
@jkotas jkotas added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Nov 25, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Nov 25, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 25, 2024
@jkotas
Copy link
Member Author

jkotas commented Nov 25, 2024

@EgorBo Looks like this was introduced by #110076 . I am trying to revert it in #110129

@dotnet-policy-service dotnet-policy-service bot added the in-pr There is an active PR which will close this issue when it is merged label Nov 25, 2024
@jkotas jkotas added area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 25, 2024
Copy link
Contributor

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

@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Nov 25, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' in-pr There is an active PR which will close this issue when it is merged Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant