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

[tests] Misc fixes for playground tests #5318

Merged
merged 5 commits into from
Aug 16, 2024

Conversation

radical
Copy link
Member

@radical radical commented Aug 16, 2024

  • Run AppHostRunsCleanly only for apphosts that don't have TestEndpoints defined
  • Run AppHostRunsCleanly only for apphosts that don't have TestEndpoints defined
  • cleanup TestEndpoints - serialization not required
  • add Mongo which can get sanity checked by AppHostRunsCleanly, even though the TestEndpoints for it are blocked
Microsoft Reviewers: Open in CodeFlow

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-integrations Issues pertaining to Aspire Integrations packages label Aug 16, 2024
@radical radical added area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication testing ☑️ and removed area-integrations Issues pertaining to Aspire Integrations packages labels Aug 16, 2024
@@ -27,6 +27,10 @@
<ItemGroup>
<_TestRunCommandArguments Remove="@(_TestRunCommandArguments)" />

<_TestBlameArguments Remove="@(_TestBlameArguments)" />
Copy link
Member

Choose a reason for hiding this comment

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

What's already in this item that need to be cleared?

Copy link
Member Author

Choose a reason for hiding this comment

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

<_TestBlameArguments Include="--blame-hang" />
<_TestBlameArguments Include="--blame-hang-dump-type full" />
<_TestBlameArguments Include="--blame-hang-timeout 10m" />
<_TestBlameArguments Include="--blame-crash" />
<_TestBlameArguments Include="--blame-crash-dump-type full" />

Copy link
Member

Choose a reason for hiding this comment

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

Why don't we want the defaults? Maybe adding a comment here could help.

Copy link
Member Author

Choose a reason for hiding this comment

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

I had this on the commit message, which is not useful enough as it would get lost in the squashed commit: Remove the blame-hang-timeout for playground tests, as it is pretty much one main test running.

I'll add a comment with that expanded to:
Remove the blame-hang-timeout for playground tests, as it is pretty much one main test running - 'TestEndpointsReturnOk'. IOW, the blame-hang timeout would have to be at least as long as the full TestSession timeout.

Is that clearer? I'm in two minds now whether to instead use 20min blame-hang-timeout, which is the test session timeout, so it won't really serve any purpose. But if we add more tests and the session timeout goes up, then this hang timeout would become relevant.

Copy link
Member Author

Choose a reason for hiding this comment

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

Adding in a follow up.

Comment on lines +158 to +159
var appHostName = Path.GetFileNameWithoutExtension(asm);
if (appHostsWithTestEndpoints.Contains(appHostName))
Copy link
Member

Choose a reason for hiding this comment

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

Can you add a comment why we are filtering these?

Copy link
Member Author

Choose a reason for hiding this comment

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

I added a comment, and renamed the method so it is clearer.

@radical radical merged commit dc6dfb1 into dotnet:main Aug 16, 2024
11 checks passed
@radical radical deleted the playground-tests-cleanup branch August 16, 2024 20:38
@github-actions github-actions bot locked and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication testing ☑️
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants