-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
bpo-41818: test_openpty succeed on Gentoo, don't expect to fail on this platform #23514
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
Conversation
os_release = pathlib.Path("/etc/os-release") | ||
if os_release.exists(): | ||
# Actually the file has complex multi-line structure, | ||
# these is no need to parse it for Gentoo check |
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.
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.
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.
@@ -75,6 +76,14 @@ def _readline(fd): | |||
|
|||
def expectedFailureIfStdinIsTTY(fun): | |||
# avoid isatty() for now | |||
PLATFORM = platform.system() |
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.
I don't understand the rationale for skipping the test only on Gentoo. Would you mind to write a comment to explaining the rationale? Why not skipping the test on Ubuntu? Is it a temporary workaround until someone can investigate the root issue? Please add a reference to bpo-41818 in the command.
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.
No, it is the reverse: Gentoo passes the test, all other tested Linux distributions fail.
That's why expectedFailure()
is applied for each platform where stdin is a TTY except Gentoo.
I'll add a comment.
@asvetlov: Status check is done, and it's a success ✅ . |
1 similar comment
@asvetlov: Status check is done, and it's a success ✅ . |
Sorry, I can't merge this PR. Reason: |
1 similar comment
Sorry, I can't merge this PR. Reason: |
I just noticed this. I have a 1-2 hour(s) long meeting with my advisor that is scheduled to start in an hour. After that, I will install Gentoo in a VM to inspect what exactly is happening. Thank you for being patient. |
@asvetlov Thank you for being so kind. Also, thank you for preparing this quick-fix. My advisor has postponed the meeting because of thanksgiving preparation. I will look into this matter now. |
@ethanfurman @asvetlov I created a Gentoo VM which is currently running There are a few things to note. I realized that by default, the live cd does not include a C compiler; their "stage tarballs" include a C compiler. Since I already have one VM currently performing a full installation of Gentoo, I decided to avoid performing those steps again. As an initial phase of the investigation, I ran the tests using the To be able to run the tests using Python 3.7, I had to comment out the 2 I will try compiling Python 3.10 after Gentoo is fully installed in the first VM. Edit: I ran the tests without applying this quick-fix. |
FTR, I have serious doubts that this is a Gentoo-specific issue. Note that this bot is run using buildbot's and |
In fact, running this test on both of my Gentoo machines (including the one running the buildbot worker in question) in an interactive SSH session, there is a failure with this change:
There is no such failure without this change, or when run in a non-interactive SSH session. |
@zware I also have doubts about that. Thank you for the help. I can now reinforce your doubts. I just finished installing Gentoo; it took half a day for the process to complete. Some details:
Everything went as expected when I ran
Both the above results were as expected. Therefore, I am still not sure how the buildbot was able to make the test pass earlier. |
Update: #23526 |
Fix buildbot failures introduced after #22962 merging.
https://bugs.python.org/issue41818