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: linkcheck: refactor to remove variable sharing between tests and test webservers #11426
tests: linkcheck: refactor to remove variable sharing between tests and test webservers #11426
Conversation
… unit test and webserver handler threads
This comment was marked as outdated.
This comment was marked as outdated.
I'm sorta unsatisfied and not entirely convinced by this explanation, but it does seem that the algorithm used by Would that complexity be enough to put some of the unit tests near the client timeout threshold? ... I don't know, 0.05s seems like it should be a lot of compute-time budget. 🤷 I've removed a call to the method in 81ce0f0 and on a sample size of one, it allowed the two instances of |
58d7b07
to
7099f3b
Compare
…remove-threadshared-variables
Further suggestions and feedback welcome; otherwise I think that this should be ready for review (no further changes planned at the moment). |
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.
Looking good!
Thank you @francoisfreitag! |
|
Thanks again @AA-Turner. Related to this and #11432: do you have any idea why it might be that the LaTeX-related continuous integration tests seem to be more susceptible to timeout failures? |
Feature or Bugfix
Purpose
test_auth_header_uses_first_match
test appears flaky when threaded test webservers are used (see Flaky unit test: test_auth_header_uses_first_match #11348).records
variable -- used to capture request header values within the server, and then assert on their values in the unit test -- across threads is somehow unsafe/unreliable (and could be the cause of the test flakiness).Detail
records
variable between unit tests and their corresponding webserver request handler threads.Relates