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

[Flaky Test] Change request to POST to avoid retry on server Shutdown #105035

Merged

Conversation

rokonec
Copy link
Contributor

@rokonec rokonec commented Jul 17, 2024

Fixes: #96407

Context

I am not sure how was this test runs in past, as the code https://github.com/rokonec/runtime/blob/01fb6bdee56cbbceb0fa9f2f890b0bcb4bdacb6e/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnection.cs#L654-L657
intent to retry when server side shut downs its side for idle timeout or other reason.
This test has timeouted on any OS during my testing.
Originally it was belived this test was flaky on OSX only, but it was present on other OSes, just less frequently.

Changes made

Test code only changes
Test request changed from GET to POST-with-content-body to avoid implicit retry logic.

@rokonec rokonec self-assigned this Jul 17, 2024
@rokonec rokonec added the test-bug Problem in test source code (most likely) label Jul 17, 2024
@rokonec
Copy link
Contributor Author

rokonec commented Jul 17, 2024

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rokonec
Copy link
Contributor Author

rokonec commented Jul 17, 2024

/azp run runtime

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rokonec rokonec changed the title Change method POST to avoid retry on server Shutdown [Flaky Test] Change method POST to avoid retry on server Shutdown Jul 17, 2024
@rokonec rokonec changed the title [Flaky Test] Change method POST to avoid retry on server Shutdown [Flaky Test] Change request to POST to avoid retry on server Shutdown Jul 17, 2024
@rokonec
Copy link
Contributor Author

rokonec commented Jul 18, 2024

/azp run runtime-libraries-coreclr outerloop

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@ManickaP ManickaP left a comment

Choose a reason for hiding this comment

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

LGTM assuming the test is passing.

@rokonec
Copy link
Contributor Author

rokonec commented Jul 18, 2024

/ba-g Unrelated failures.

@rokonec rokonec merged commit 8f3a317 into dotnet:main Jul 18, 2024
77 of 91 checks passed
@rokonec rokonec deleted the dev/rokonec/96407-fix-unstable-metric-test branch July 18, 2024 11:09
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2024
@karelz karelz added this to the 9.0.0 milestone Sep 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Http test-bug Problem in test source code (most likely)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker Test failure
3 participants