-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Better exception handling around self-check #12865
Better exception handling around self-check #12865
Conversation
This correctly suppresses issues around building networking sessions for a self version check.
Move the `run` call into a wrapper function and inline the exception handling while moving the try-finally around `run` into the nested function. This reduces the amount of code at a deeper nesting level and moves the self-version-check logic into the "around the run" exception catching so that a consistent message is presented in cases of failures.
8fa3a0b
to
3518d32
Compare
Providing a value return value ensures that downstream code does not try to pass around invalid values.
Bah, CI failure is the retry tests failing. /cc @ichard26 for awareness. |
Ugh, that's annoying. I'm so sorry about that. I'll take a look after work
soon.
…On Sun., Jul. 21, 2024, 6:05 a.m. Pradyun Gedam, ***@***.***> wrote:
Bah, CI failure is the retry tests failing. /cc @ichard26
<https://github.com/ichard26> for awareness.
—
Reply to this email directly, view it on GitHub
<#12865 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/APHZN7LX5HLJQO4GBTY3HILZNOBU7AVCNFSM6AAAAABLGWGQBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGU2TEMRVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Looking at the test, it seems to be a flaky failure. I'm going to rekick CI to get this unblocked, but I think these tests may have to go as I'm not sure how to avoid random failures due to system time resolution variation and system CPU load. I think what happened here is that the GHA runner was loaded running other jobs, causing the test to pause execution during the first call for long enough that the second retry is never scheduled as more than 10ms have passed. I would've thought earlier that 10ms ought to be enough for a single Python function call to finish, but I forgot to consider system load. |
I can also confirm that this also gracefully handles the self version check error described in #12864.
|
See #12864 for context.