test_linkcheck_allowed_redirects: enable HTTP HEAD request support#11323
test_linkcheck_allowed_redirects: enable HTTP HEAD request support#11323jayaddison wants to merge 1 commit intosphinx-doc:masterfrom jayaddison:issue-11299/reduce-flaky-test-request-roundtrips
Conversation
…ps by enabling support for HEAD requests This is intended to reduce the number of HTTP requests within this particular test to closer-to-the-norm compared to other tests within the test_build_linkcheck.py module; this test has been failing intermittently and it seems possible that timeouts due to HTTP roundtrip traffic are a contributing factor.
|
Thanks for the review @francoisfreitag. After doing more testing, I'm not really convinced that this would fix the test flakiness. I'd be OK with it being merged.. but if there's no particular reason for it, then I'd probably tend towards closing it unmerged, since otherwise it'll pollute the commit history. Either way, I'll run a few more tests in jayaddison/sphinx#1 and perhaps that'll discover more -- or perhaps not :) That has been my Friday, 2023-04-14.. |
|
(the approach I prefer now, since I couldn't find any particular reason for a performance regression, is simply to increase the timeout thresholds slightly further in #11326) |
|
My understanding of this change : allowing |
|
That is true that this change should provide a very, very small runtime improvement for the tests, yes. |
|
Nothing about the experimental evaluation data collected in jayaddison/sphinx#1 disproved this fix -- that is, no test failures occurred in the I'll close this pull request -- if someone later feels that this change is particularly valuable (perhaps it turns out that actually it does fix the problem comprehensively, somehow), then as long as there's supporting evidence for that, I've no problem with it being merged. Roughly speaking: I don't mind being wrong, but I'd like to understand why. In this case I feel like I'm wrong, but the data hasn't yet confirmed it. So I'll choose not to proceed here. |
This is intended to reduce the number of HTTP requests within this particular test to closer-to-the-norm compared to other tests within the
test_build_linkcheck.pymodule; this test has been failing intermittently and it seems possible that timeouts due to HTTP roundtrip traffic are a contributing factor.Feature or Bugfix
Purpose
test_linkcheck_allowed_redirectstest -- or to rule out another potential source of that problemlinkcheckrequest timeout thresholds for this (and other) testsDetail
Relates