Project

General

Profile

Actions

action #112547

closed

coordination #68794: [qe-core][functional][epic] rework postfail hooks

[qe-core] test fails in groupwise - make coredumps more visible

Added by szarate almost 2 years ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Enhancement to existing tests
Target version:
Start date:
2022-06-15
Due date:
% Done:

0%

Estimated time:
Difficulty:
Sprint:
QE-Core: November Sprint 23 (Nov 15 - Dec 13)

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:

  1. An info box is displayed when there's a coredump in the SUT.
  2. 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:

  1. start xterm, then kill -QUIT $xterm_process
  2. Use a test program that coredumps
void program_killer (){
  // this generates a segmentation fault
  volatile int *ptr = (int*)0;
  *ptr = 0;
}

Related issues 1 (0 open1 closed)

Copied from openQA Tests - action #112514: [qe-core] test fails in groupwiseRejectedszarate2022-06-15

Actions
Actions #1

Updated by szarate almost 2 years ago

Actions #2

Updated by szarate almost 2 years ago

Turns out we do make it visible, however reviewers can overlook this... https://openqa.suse.de/tests/8954686#step/groupwise/83

Actions #3

Updated by szarate 5 months ago

  • Tags set to platform-team, qe-core-november-sprint
  • Description updated (diff)
Actions #4

Updated by szarate 5 months ago

  • Parent task set to #68794
Actions #6

Updated by szarate 5 months ago

  • Description updated (diff)
Actions #7

Updated by szarate 5 months ago

  • Status changed from New to Workable
  • Target version set to QE-Core: Ready
Actions #8

Updated by szarate 5 months ago

  • Sprint set to QE-Core: November Sprint 23 (Nov 15 - Dec 13)
Actions #9

Updated by rfan1 5 months ago

  • Assignee set to rfan1
Actions #10

Updated by rfan1 5 months 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

Actions #11

Updated by szarate 5 months ago

When recording info, make sure it also captures/show the list of available coredumps of the system

Actions #12

Updated by rfan1 5 months ago

  • Status changed from Workable to In Progress
Actions #14

Updated by rfan1 5 months ago

  • Status changed from In Progress to Feedback
Actions #15

Updated by rfan1 4 months ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF