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
Look for problems in the system #1713
Conversation
Interesting approach. I like the idea in general. What I am not so sure about is that you are calling this in "consoletest_setup" which is a part of a lot of scenarios and will further slow down the execution in cases when everything is just fine. Also, as complexity increases in your problem analysis, jobs can also fail in there. I suggest to better separate what is "setup", what is "gather generic information" and "do analysis of a real problem". For a start, maybe you can even in the current state move out of the logs gathering from "consoletest_setup" and make that module just what it says, a "setup", e.g. only including setting up the serial port, consoles, making sure packagekit is stopped, etc. The sub |
7e9a847
to
f902717
Compare
http://assam.suse.cz/tests/2774#step/consoletest_setup/31 Removed some duplicities from Still:
|
} | ||
else { | ||
script_run("$cmd | tee $file"); | ||
} |
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.
perl beginner question: As $args
should always exist as a variable, does it work to just write
script_run("$cmd | tee $file", $args->{timeout});
in any case without getting a warning?
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.
It actually works as use warnings
is not present. Thanks for the hint.
can't access your machine, is it down? |
It's back online now. |
f902717
to
35a6a09
Compare
New verify run: http://assam.suse.cz/tests/2785#step/consoletest_setup/32. |
35a6a09
to
efa41db
Compare
@@ -70,16 +70,14 @@ sub run() { | |||
script_run "ps axf > /tmp/psaxf.log"; | |||
script_run "cat /proc/loadavg > /tmp/loadavg_consoletest_setup.txt"; | |||
|
|||
# Just after the setup: let's see the network configuration |
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.
we also need it in each succeeded run, please do not remove it or only uploading when the test failed.
efa41db
to
3c6561c
Compare
POO#11930 This new sub problem_detection() detects problems in the installed system and uploads log to worker. Currently it looks into systemd journal, coredumpctl, systemctl et all for core dumps, signs of python traceback, general problems in the journal etc. (Other proposals welcome.) I implemented POO#11930 not as an enhancement to textinfo.pm test but as a function which might be called from different places (installed system and even installer itself), and multiple times.
3c6561c
to
0124c34
Compare
LGTM wanna remove the WIP label? |
LGTM |
POO#11930
This new sub problem_detection() detects problems in the installed
system and uploads log to worker. Currently it looks into systemd
journal, coredumpctl, systemctl et all for core dumps, signs of python
traceback, general problems in the journal etc. (Other proposals
welcome.)
I implemented POO#11930 not as an enhancement to textinfo.pm test but as
a function which might be called from different places (installed system
and even installer itself), and multiple times. Atm I execute it from
console/consoletest_setup.pm
andx11/shutdown.pm
. Problem of currentapproach is that it adds 5-6 minutes to the test suite per execution.
Verification run: http://assam.suse.cz/tests/2678#downloads.