Repository navigation
Add retries to tlsv1_3 tests - #51434
nikitamikhaylov merged 2 commits into
Conversation
|
This is an automated comment for commit 5de8c4a with description of existing statuses. It's updated for the latest CI running
|
| assert "unknown ca" in str(err.value) | ||
| while count <= MAX_RETRY: | ||
| with pytest.raises(Exception) as err: | ||
| execute_query_https("SELECT currentUser()", user="john", cert_name="wrong") |
There was a problem hiding this comment.
It is probably better to add retries to the execute_query_https itself instead of each time it is called.
There was a problem hiding this comment.
Because this error only an issue for requests that are using an invalid cert, I would like to keep the scope of the retries as strict as possible, especially considering that we are not fixing anything, we just allowing the requests fail in a particular way a few times. E.g.: maybe we can have a race condition in our networking layer that would cause the broken pipe error to show up in other test cases time to time. If we include the retry logic to the execute_query_https method, we might not notice those errors.
However if you think that is way to go, I am happy to make the changes.
|
The last time the retries were added it did not seem to solve the issue: #49632, #49982 and in the end, it is still failing even today: link (the test is different but the issue is the same) I think that we should add more debug information to the exception about the connectivity (try to execute a query with standard |
tlsv1_3 tests
|
I think the retries didn't work previously because the wrong type of exception was used: instead of The >>> str(URLError(BrokenPipeError(32, 'Broken pipe')))
'<urlopen error [Errno 32] Broken pipe>'As you can see this matches the string printed by the failed test. So in my opinion the retry logic didn't do any retries at all, therefore it didn't fixed the issue. Do I miss something? |
|
@antaljanosbenjamin now it is |
|
I only changed the |
Changelog category (leave one):
I spent quite some time to investigate and reproduce the flaky failures, but I was unable to do it, so we decided to add some retries to reduce the flakyness of our tests. More info in this comment.