Skip to content

xunit1051 Part 1 #8951

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

Closed
wants to merge 2 commits into from
Closed

xunit1051 Part 1 #8951

wants to merge 2 commits into from

Conversation

illay1994
Copy link
Contributor

@illay1994 illay1994 commented Apr 24, 2025

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes #8488

Fixed xunit1051 warning in following projects:

tests\Aspire.Azure.AI.OpenAI.Tests
tests\Aspire.Components.Common.Tests
tests\Aspire.Confluent.Kafka.Tests
tests\Aspire.Dashboard.Components.Tests
tests\Aspire.Elastic.Clients.Elasticsearch.Tests
tests\Aspire.Hosting.Analyzers.Tests
tests\Aspire.Hosting.Kubernetes.Tests
tests\Aspire.Hosting.Python.Tests
tests\Aspire.Hosting.Redis.Tests
tests\Aspire.Hosting.Seq.Tests
tests\Aspire.Hosting.SqlServer.Tests
tests\Aspire.Hosting.Testing.Tests
tests\Aspire.Hosting.Valkey.Tests
tests\Aspire.Milvus.Client.Tests
tests\Aspire.MongoDB.Driver.Tests
tests\Aspire.NATS.Net.Tests
tests\Aspire.OpenAI.Tests
tests\Aspire.Playground.Tests
tests\Aspire.Qdrant.Client.Tests
tests\Aspire.RabbitMQ.Client.Tests
tests\Aspire.StackExchange.Redis.Tests
tests\Aspire.Templates.Tests
tests\Microsoft.Extensions.ServiceDiscovery.Tests

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
    • No. Follow-up changes expected.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes
    • No
  • Did you add public API?
    • Yes
      • If yes, did you have an API Review for it?
        • Yes
        • No
      • Did you add <remarks /> and <code /> elements on your triple slash comments?
        • Yes
        • No
    • No
  • Does the change make any security assumptions or guarantees?
    • Yes
      • If yes, have you done a threat model and had a security review?
        • Yes
        • No
    • No
  • Does the change require an update in our Aspire docs?

@github-actions github-actions bot added the area-integrations Issues pertaining to Aspire Integrations packages label Apr 24, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Apr 24, 2025
@illay1994
Copy link
Contributor Author

I don't want to make PR bigger.
After that i will create PR per project

tests\Aspire.Azure.AI.OpenAI.Tests
tests\Aspire.Components.Common.Tests
tests\Aspire.Confluent.Kafka.Tests
tests\Aspire.Dashboard.Components.Tests
tests\Aspire.Elastic.Clients.Elasticsearch.Tests
tests\Aspire.Hosting.Analyzers.Tests
tests\Aspire.Hosting.Kubernetes.Tests
tests\Aspire.Hosting.Python.Tests
Fixed in next projects
tests\Aspire.Hosting.Redis.Tests
tests\Aspire.Hosting.Seq.Tests
tests\Aspire.Hosting.SqlServer.Tests
tests\Aspire.Hosting.Testing.Tests
tests\Aspire.Hosting.Valkey.Tests
tests\Aspire.Milvus.Client.Tests
tests\Aspire.MongoDB.Driver.Tests
tests\Aspire.NATS.Net.Tests
tests\Aspire.OpenAI.Tests
tests\Aspire.Playground.Tests
tests\Aspire.Qdrant.Client.Tests
tests\Aspire.RabbitMQ.Client.Tests
tests\Aspire.StackExchange.Redis.Tests
tests\Aspire.Templates.Tests
tests\Microsoft.Extensions.ServiceDiscovery.Tests
@RussKie RussKie changed the title #8488 Fixed warning xunit1051 Part 1 xunit1051 Part 1 Apr 28, 2025
Copy link
Member

@RussKie RussKie left a comment

Choose a reason for hiding this comment

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

Please use GitHub keywords when referencing underlying issues. In this case, the body of the original message must contains "Fixes #8488" or alike. Ideally, the git commit must contain the same.

The same applies to all other pull-requests.

@RussKie RussKie added the needs-author-action An issue or pull request that requires more info or actions from the author. label Apr 28, 2025
@illay1994
Copy link
Contributor Author

Please use GitHub keywords when referencing underlying issues. In this case, the body of the original message must contains "Fixes #8488" or alike. Ideally, the git commit must contain the same.

The same applies to all other pull-requests.

Thanks.
I will follow this naming in future

@dotnet-policy-service dotnet-policy-service bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Apr 28, 2025
@RussKie
Copy link
Member

RussKie commented Apr 29, 2025

MC

@RussKie RussKie added needs-author-action An issue or pull request that requires more info or actions from the author. testing ☑️ labels Apr 29, 2025
@illay1994
Copy link
Contributor Author

Hi @RussKie

Could you help me to find 4 failing test?

I spend 2 hours yesterday
I will fit it later today

@dotnet-policy-service dotnet-policy-service bot removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Apr 29, 2025
@RussKie
Copy link
Member

RussKie commented Apr 29, 2025

I believe here are the issues:

https://github.com/dotnet/aspire/actions/runs/14716303439/job/41300519858?pr=8951#step:19:4155

  failed Aspire.Hosting.Tests.WithHttpCommandTests.WithHttpCommand_ResultsInExpectedResultForStatusCode(statusCode: 201, expectSuccess: True) (34s 926ms)
    Assert.Equal() Failure: Values differ
    Expected: True
    Actual:   False
      at Aspire.Hosting.Tests.WithHttpCommandTests.WithHttpCommand_ResultsInExpectedResultForStatusCode(Int32 statusCode, Boolean expectSuccess) in /_/tests/Aspire.Hosting.Tests/WithHttpCommandTests.cs:156
      --- End of stack trace from previous location ---

https://github.com/dotnet/aspire/actions/runs/14716303439/job/41300519858?pr=8951#step:19:3184

  failed Aspire.Hosting.Tests.SlimTestProgramTests.TestProjectStartsAndStopsCleanly (0ms)
    Xunit.Runner.InProc.SystemConsole.TestingPlatform.XunitException: Collection fixture type 'Aspire.Hosting.Tests.SlimTestProgramFixture' threw in InitializeAsync
    ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
      
      ----- Inner Stack Trace -----
      at Aspire.Hosting.Tests.SlimTestProgramFixture.WaitReadyStateAsync(CancellationToken cancellationToken) in /_/tests/Aspire.Hosting.Tests/TestProgramFixture.cs:68
      at Aspire.Hosting.Tests.TestProgramFixture.InitializeAsync() in /_/tests/Aspire.Hosting.Tests/TestProgramFixture.cs:37
  failed Aspire.Hosting.Tests.SlimTestProgramTests.TestPortOnEndpointAnnotationAndAllocatedEndpointAnnotationMatch (0ms)
    Xunit.Runner.InProc.SystemConsole.TestingPlatform.XunitException: Collection fixture type 'Aspire.Hosting.Tests.SlimTestProgramFixture' threw in InitializeAsync
    ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.
      
      ----- Inner Stack Trace -----
      at Aspire.Hosting.Tests.SlimTestProgramFixture.WaitReadyStateAsync(CancellationToken cancellationToken) in /_/tests/Aspire.Hosting.Tests/TestProgramFixture.cs:68
      at Aspire.Hosting.Tests.TestProgramFixture.InitializeAsync() in /_/tests/Aspire.Hosting.Tests/TestProgramFixture.cs:37
  failed Aspire.Hosting.Tests.SlimTestProgramTests.TestPortOnEndpointAnnotationAndAllocatedEndpointAnnotationMatchForReplicatedServices (0ms)
    Xunit.Runner.InProc.SystemConsole.TestingPlatform.XunitException: Collection fixture type 'Aspire.Hosting.Tests.SlimTestProgramFixture' threw in InitializeAsync
    ---- System.Threading.Tasks.TaskCanceledException : A task was canceled.

These could be just flaky, but we can't know unless the conflict is resolved.

@RussKie RussKie added the needs-author-action An issue or pull request that requires more info or actions from the author. label Apr 29, 2025
@danmoseley
Copy link
Member

closing per comment in #9020.

@illay1994 thanks for the effort.

@danmoseley danmoseley closed this Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-integrations Issues pertaining to Aspire Integrations packages community-contribution Indicates that the PR has been added by a community member needs-author-action An issue or pull request that requires more info or actions from the author. testing ☑️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follow up tasks for the move to xunit v3
3 participants