-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[release/7.0-rc1] HTTP/3 flaky test retries and logging #43423
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -421,6 +421,8 @@ public async Task StreamPool_StreamAbortedOnClient_NotPooled() | |||
public async Task StreamPool_StreamAbortedOnClientAndServer_NotPooled() | |||
{ | |||
// Arrange | |||
using var httpEventSource = new HttpEventSourceListener(LoggerFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unreferenced❔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. It registers an event source in the constructor and removes it on dispose. Since no one uses it, it could be changed to:
using var _ = new HttpEventSourceListener(LoggerFactory);
But I'd prefer to do that in a separate PR to remove them all at once. Personally, I'm happy leaving it as is.
@@ -7,6 +7,8 @@ namespace Microsoft.AspNetCore.Testing; | |||
|
|||
public static class ServerRetryHelper | |||
{ | |||
private const int RetryCount = 15; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: There's no delay in the loop below beyond connection timeouts. Suggest going higher if I'm right that address in use normally causes an almost-immediate failure.
@@ -228,6 +228,8 @@ public async Task GET_ServerStreaming_ClientReadsPartialResponse(HttpProtocols p | |||
public async Task POST_ClientSendsOnlyHeaders_RequestReceivedOnServer(HttpProtocols protocol) | |||
{ | |||
// Arrange | |||
using var httpEventSource = new HttpEventSourceListener(LoggerFactory); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unreferenced❔
Any reason this hasn't been checked in @adityamandaleeka @JamesNK❔ |
Waiting on @adityamandaleeka approval 🙏 |
Sorry, I hadn't seen this one. Approved, test-only changes. |
I forgot to add you 😄 |
* HTTP/3 flaky test retries and logging * Rewrite retry helper to get ports via binding port to 0
Address various pipeline failures:
More retries will hopefully remove one set of failures. More logging to find solutions for others in the future. System.Net.Quic team is still making changes, so it can be a source of instability.
Test only changes.