Skip to content

[serve] Increase httpx timeout to 30s for backpressure test#53711

Merged
aslonnie merged 8 commits intoray-project:masterfrom
akyang-anyscale:alexyang/serve-win-backpressure
Jun 11, 2025
Merged

[serve] Increase httpx timeout to 30s for backpressure test#53711
aslonnie merged 8 commits intoray-project:masterfrom
akyang-anyscale:alexyang/serve-win-backpressure

Conversation

@akyang-anyscale
Copy link
Copy Markdown
Contributor

@akyang-anyscale akyang-anyscale commented Jun 10, 2025

The test is failing on windows because of httpx client timeout. Previously with the requests library, there was no timeout set. Removing this timeout for httpx passes the test on windows: https://buildkite.com/ray-project/microcheck/builds/18192/steps/canvas?sid=01975bcb-eac1-4804-a269-858ffdb32cf2.

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@akyang-anyscale akyang-anyscale changed the title test [serve] Remove httpx timeout for test_backpressure test Jun 10, 2025
@ray.remote(num_cpus=0)
def do_request(msg: str) -> Tuple[int, str]:
r = httpx.request("GET", "http://localhost:8000/", json={"msg": msg})
r = httpx.request("GET", "http://localhost:8000/", json={"msg": msg}, timeout=None)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

maybe just make this long enough but not indefinitely?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

how long of timeout does it require for the test to pass?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

around 75s, will try 10 seconds, since we make ~12 of these http calls

Copy link
Copy Markdown
Contributor Author

@akyang-anyscale akyang-anyscale Jun 11, 2025

Choose a reason for hiding this comment

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

ok 10s failed, so setting to 30s, which works.

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@akyang-anyscale akyang-anyscale changed the title [serve] Remove httpx timeout for test_backpressure test [serve] Increase httpx timeout to 30s for backpressure test Jun 11, 2025
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@akyang-anyscale akyang-anyscale added the go add ONLY when ready to merge, run all tests label Jun 11, 2025
Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
@akyang-anyscale
Copy link
Copy Markdown
Contributor Author

@aslonnie could you help merge this?

@aslonnie aslonnie merged commit 0a6b94f into ray-project:master Jun 11, 2025
5 checks passed
elliot-barn pushed a commit that referenced this pull request Jun 18, 2025
The test is failing on windows because of httpx client timeout.
Previously with the `requests` library, there was no timeout set.
Removing this timeout for httpx passes the test on windows.

---------

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
elliot-barn pushed a commit that referenced this pull request Jul 2, 2025
The test is failing on windows because of httpx client timeout.
Previously with the `requests` library, there was no timeout set.
Removing this timeout for httpx passes the test on windows.

---------

Signed-off-by: akyang-anyscale <alexyang@anyscale.com>
Signed-off-by: elliot-barn <elliot.barnwell@anyscale.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants