-
Notifications
You must be signed in to change notification settings - Fork 355
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
webui: Saving webui-desktop log to anaconda.log #5734
webui: Saving webui-desktop log to anaconda.log #5734
Conversation
62ccfff
to
cc4b7af
Compare
cc4b7af
to
e818a9c
Compare
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 think the below suggestion would simplify work a lot.
e818a9c
to
f7359bc
Compare
f7359bc
to
0121d18
Compare
0121d18
to
b23a75b
Compare
Removing my review after discussion with @adamkankovsky. He pointed me to a fact that |
b23a75b
to
ff106f2
Compare
8d52554
to
0dfb4f4
Compare
/build-image --live |
Images built based on commit 0dfb4f4:
Download the images from the bottom of the job status page. |
0dfb4f4
to
ad37262
Compare
@jkonecny12 I tested this on boot.iso and it works well. |
f.write(repr(proc.pid)) | ||
proc.wait() | ||
try: | ||
proc = startProgram( |
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.
Why not use stdout
and stderr
parameters of the startProgram
?
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.
Because its easier to use the subprocess.PIPE as default and proc.comunicate() for me. But i can change it to IO string buffer as well.
ad37262
to
b146ee5
Compare
b146ee5
to
ce2830a
Compare
ce2830a
to
847454e
Compare
847454e
to
29a0379
Compare
29a0379
to
4111757
Compare
# Conflicts: # pyanaconda/ui/webui/__init__.py
4111757
to
1ad5a5d
Compare
with open(self._viewer_pid_file, "w") as f: | ||
f.write(repr(proc.pid)) | ||
|
||
(output_string, err_string) = proc.communicate() |
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.
The issue I'm seeing (if I read it correctly) is that you are blocking completely this thread. If this thread is the main thread (which I guess it is) it will also block event loop so no events are processed. That could have a problematic outcomes like not being able to react on exceptions and react on DBus events.
Please verify if my assumptions are correct or wrong.
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 shouldn't be any difference from the original code, there was a wait in the same place, which blocked the kernel until the webui was finished.
The BOSS who takes care of this should have been running in a parallel process long ago and this should not affect him in any way.
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 somehow remember that I said even back then that this is not correct way to handle it. But if it was already part of the original code I guess it should be fine here....
/kickstart-test --testtype smoke |
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.
LGTM.
No description provided.