Skip to content

Conversation

@radical
Copy link
Member

@radical radical commented Aug 20, 2024

.. from 60s to 120s. This has been failing frequently on CI with:

Aspire.Elastic.Clients.Elasticsearch.Tests.AspireElasticClientExtensionsTest.ElasticsearchInstrumentationEndToEnd [FAIL]
  Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Half-way through waiting for remote process.
  Timed out at 8/20/2024 6:22:40 PM after 60000ms waiting for remote process.
  	Process ID: 29680
  	Handle: 11984
  	Name: dotnet
  	MainModule: /datadisks/disk1/work/B7250A1D/p/dotnet-cli/dotnet
  	StartTime: 8/20/2024 6:21:39 PM
  	TotalProcessorTime: 00:00:00.7300000

  Stack Trace:
    /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(225,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing)
    /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(55,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose()
    /_/tests/Aspire.Elastic.Clients.Elasticsearch.Tests/AspireElasticClientExtensionsTest.cs(145,0): at Aspire.Elastic.Clients.Elasticsearch.Tests.AspireElasticClientExtensionsTest.ElasticsearchInstrumentationEndToEnd()
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Microsoft Reviewers: Open in CodeFlow

…tuor

.. from 60s to 120s. This has been failing frequently on CI with:

```
Aspire.Elastic.Clients.Elasticsearch.Tests.AspireElasticClientExtensionsTest.ElasticsearchInstrumentationEndToEnd [FAIL]
  Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Half-way through waiting for remote process.
  Timed out at 8/20/2024 6:22:40 PM after 60000ms waiting for remote process.
  	Process ID: 29680
  	Handle: 11984
  	Name: dotnet
  	MainModule: /datadisks/disk1/work/B7250A1D/p/dotnet-cli/dotnet
  	StartTime: 8/20/2024 6:21:39 PM
  	TotalProcessorTime: 00:00:00.7300000

  Stack Trace:
    /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(225,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose(Boolean disposing)
    /_/src/Microsoft.DotNet.RemoteExecutor/src/RemoteInvokeHandle.cs(55,0): at Microsoft.DotNet.RemoteExecutor.RemoteInvokeHandle.Dispose()
    /_/tests/Aspire.Elastic.Clients.Elasticsearch.Tests/AspireElasticClientExtensionsTest.cs(145,0): at Aspire.Elastic.Clients.Elasticsearch.Tests.AspireElasticClientExtensionsTest.ElasticsearchInstrumentationEndToEnd()
       at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
       at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
```
@ghost ghost added the area-integrations Issues pertaining to Aspire Integrations packages label Aug 20, 2024
@radical radical added area-engineering-systems infrastructure helix infra engineering repo stuff testing ☑️ and removed area-integrations Issues pertaining to Aspire Integrations packages labels Aug 20, 2024
@radical
Copy link
Member Author

radical commented Aug 20, 2024

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@radical radical marked this pull request as ready for review August 20, 2024 23:24
Copy link
Member

@sebastienros sebastienros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just made comments unrelated to the goal of this PR.

{ "testAssembly": { "regex": "Aspire.EndToEnd.*" }, "failureMessage": { "regex": "App run failed" } },
{ "testAssembly": { "regex": "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.*" } },
{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } }
{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this assembly needs retry? Isn't it unit tests only?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two can be dropped. We had added retries for old issues which have since been fixed.
4976ee1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point is more about:

  • When to use testAssembly vs testName
  • That "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.*" is not a regex, or at least it's doing what we assume it tries to do by chance (the dot can be anything and the * appears right after a dot, double points for luck here).

{ "testAssembly": { "regex": "Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.*" } },
{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } }
{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } },
{ "testName": { "contains": "Aspire.Elastic.Clients.Elasticsearch.Tests.ConformanceTests.HealthCheckReportsExpectedStatus" } },
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I see is that the "testName/contains" rule might be more appropriate than
"testAssembly/regex" in the preceeding cases, since the regex is not really a regex, and contains could be used with the assembly name as the prefix instead.

{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } }
{ "testAssembly": { "regex": "Aspire.Microsoft.EntityFrameworkCore.SqlServer.*" } },
{ "testName": { "contains": "Aspire.Elastic.Clients.Elasticsearch.Tests.ConformanceTests.HealthCheckReportsExpectedStatus" } },
{ "testAssembly": { "contains": "Aspire.Elastic.Clients.Elasticsearch.Test" }, "failureMessage": { "contains": "RemoteExecutionException : Half-way through waiting for remote process." } }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny, after my two previous comments, I see a mix, "contains" on "testAssembly". Not wrong though.

@radical radical merged commit db060e5 into dotnet:main Aug 21, 2024
@radical radical deleted the elasticsearch-tests branch August 21, 2024 06:10
@github-actions github-actions bot locked and limited conversation to collaborators Sep 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-engineering-systems infrastructure helix infra engineering repo stuff testing ☑️

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants