action #112547
closedcoordination #68794: [qe-core][functional][epic] rework postfail hooks
[qe-core] test fails in groupwise - make coredumps more visible
0%
Description
Observation¶
Sometimes reviewers will open tickets like #112514 because the failure is not obvious, if during the post_fail_hook
the coredump detection part, sees something... we should make it clear with a record info.
Latest example is:
https://openqa.suse.de/tests/12811611#step/postgresql_server/149
openQA test in scenario sle-15-SP3-Desktop-DVD-Updates-x86_64-qam-regression-message@64bit fails in
groupwise
Acceptance Criteria:¶
- An info box is displayed when there's a coredump in the SUT.
- When there's a coredump during the execution of a module, it is exported by the post fail hook
Suggestions¶
For both suggestions a fake asser_screen or assert_script_run call that is guaranteed to fail would cause the PFH to be called & executed:
- start xterm, then
kill -QUIT $xterm_process
- Use a test program that coredumps
void program_killer (){
// this generates a segmentation fault
volatile int *ptr = (int*)0;
*ptr = 0;
}
Updated by szarate over 2 years ago
- Copied from action #112514: [qe-core] test fails in groupwise added
Updated by szarate over 2 years ago
Turns out we do make it visible, however reviewers can overlook this... https://openqa.suse.de/tests/8954686#step/groupwise/83
Updated by szarate about 1 year ago
- Tags set to platform-team, qe-core-november-sprint
- Description updated (diff)
Updated by szarate about 1 year ago
Updated by szarate about 1 year ago
- Status changed from New to Workable
- Target version set to QE-Core: Ready
Updated by szarate about 1 year ago
- Sprint set to QE-Core: November Sprint 23 (Nov 15 - Dec 13)
Updated by rfan1 about 1 year ago
We have the below lines which will collect coredump files if we want to
if (get_var('COLLECT_COREDUMPS')) {
upload_coredumps(proceed_on_failure => 1);
}
Then a simple way for error detection part, we can add the record_info
to notify reviewer to check if any coredump files list in SUT
Updated by szarate about 1 year ago
When recording info, make sure it also captures/show the list of available coredumps of the system