-
Notifications
You must be signed in to change notification settings - Fork 115
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
Poll ncat tunnel pid #15056
Poll ncat tunnel pid #15056
Conversation
Can one of the admins verify this patch? |
trigger: test-robottelo |
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.
Mind leveraging wait_for
in the retry logic?
btw, Am a bit surprised that we got this far with the pid listing diff logic. Looks quite race-condition-prone to me now. If we had multiple (xdist) tests running against the same machine (that is configurable), such check could be easily fooled by listing other xdist worker's PIDs.
However, since we hadn't run into any issues for so many years, I'd not fiddle with it ;)
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem
Not at all.
Yes, now that you mentioned it. Probably the session (broker) should take care of keeping track of started processes. |
I'd rather make the check to look at the target port directly, as that's what we ultimately wait for. There still would be some room for race conditions, but the chances of hitting one might be much, much slimmer. Anyway, as I mentioned before - as long as nobody has hit the RC yet, it's probably a corner-case scenario (perhaps it might be worth adding a comment about it, so it's not lost) and i would not over-engineer it. |
trigger: test-robottelo |
trigger: test-robottelo |
PRT Result
|
@lpramuk mind giving this a review? |
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem (cherry picked from commit e918739)
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem (cherry picked from commit e918739)
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem (cherry picked from commit e918739)
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem (cherry picked from commit e918739)
when checking the pid right after ncat startup it could happen that no pid was found despite ncat being started. Polling solves this problem
Problem Statement
when checking the pid right after ncat startup
it could happen that no pid was found despite ncat being started
Solution
polling the ncat pid
Some tests using the feature