Project

General

Profile

Actions

action #44594

closed

[functional][u] test fails in sysstat - regular expression for pidstat test is incorrect

Added by szarate over 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
Bugs in existing tests
Target version:
SUSE QA - Milestone 23
Start date:
2018-11-30
Due date:
% Done:

0%

Estimated time:
Difficulty:

Description

Observation

Looking one step further into the test, we can see that waiitserial was expecting a 0, and got a "0\n"... however the test still failed... so, false negative there?

openQA test in scenario sle-15-SP1-Installer-DVD-s390x-extra_tests_in_textmode@s390x-kvm-sle12 fails in
sysstat

Reproducible

Fails since (at least) Build 47.1

Expected result

Seems to always fail on s390x since the introduction of the test module (I think)

Suggestions

  • Crosscheck against the test on x86_64
  • See why s390x is behaving differently
  • Potentially rewrite the test module to use a more stable approach of parsing the serial terminal output

Further details

Always latest result in this scenario: latest


Related issues 1 (0 open1 closed)

Precedes openQA Tests - action #46919: [functional][u][svirt][sporadic] auto_review:"IO::Socket::INET: connect: Connection timed out"Rejectedszarate2018-12-01

Actions
Actions #1

Updated by mloviska over 5 years ago

But pidstat | awk '{print $3}' | head | tail -n 1 should not return 0.

 ~ pidstat
Linux 4.18.5-1-default (localhost)  11/30/18    _x86_64_    (8 CPU)

15:04:37      UID       PID    %usr %system  %guest   %wait    %CPU   CPU  Command
15:04:37        0         1    0.01    0.01    0.00    0.00    0.01     3  systemd
15:04:37        0         2    0.00    0.00    0.00    0.00    0.00     4  kthreadd
15:04:37        0         9    0.00    0.00    0.00    0.00    0.00     0  ksoftirqd/0
15:04:37        0        10    0.00    0.08    0.00    0.04    0.08     6  rcu_preempt
15:04:37        0        11    0.00    0.00    0.00    0.00    0.00     1  rcu_sched
15:04:37        0        12    0.00    0.00    0.00    0.00    0.00     7  rcu_bh
15:04:37        0        14    0.00    0.00    0.00    0.00    0.00     0  watchdog/0
15:04:37        0        17    0.00    0.00    0.00    0.00    0.00     1  watchdog/1
15:04:37        0        19    0.00    0.00    0.00    0.00    0.00     1  ksoftirqd/1
15:04:37        0        23    0.00    0.00    0.00    0.00    0.00     2  watchdog/2
15:04:37        0        24    0.00    0.00    0.00    0.00    0.00     2  migration/2
15:04:37        0        25    0.00    0.00    0.00    0.00    0.00     2  ksoftirqd/2

Actions #2

Updated by mloviska over 5 years ago

➜  ~ cat - > /tmp/run_test           
pidstat | awk '{print $3}' | head | tail -n 1
➜  ~ bash -eox pipefail /tmp/run_test
+ pidstat
+ awk '{print $3}'
+ head
+ tail -n 1
14

Actions #3

Updated by SLindoMansilla over 5 years ago

  • Subject changed from [u] test fails in sysstat - Possible false negative in wait_serial to [functional][u] test fails in sysstat - Possible false negative in wait_serial
  • Target version set to Milestone 22
Actions #4

Updated by okurz over 5 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_in_textmode
https://openqa.suse.de/tests/2347166

Actions #5

Updated by okurz over 5 years ago

This is an autogenerated message for openQA integration by the openqa_review script:

This bug is still referenced in a failing openQA test: extra_tests_in_textmode
https://openqa.suse.de/tests/2375854

Actions #6

Updated by okurz over 5 years ago

  • Priority changed from Normal to High

Next task: Find "last good"

Bumping to "High" as used as label in currently failing tests

Actions #7

Updated by mgriessmeier about 5 years ago

okurz wrote:

Next task: Find "last good"

Bumping to "High" as used as label in currently failing tests

it was introduced with 226bd65943d21e371f8308e35d7cd9010f26f5d4 on Nov 16, 2018
so I doubt there will be any last good

Actions #8

Updated by okurz about 5 years ago

  • Description updated (diff)
  • Status changed from New to Workable
Actions #9

Updated by szarate about 5 years ago

  • Status changed from Workable to In Progress
  • Assignee set to szarate

Picking up this one

Actions #10

Updated by szarate about 5 years ago

  • Precedes action #46919: [functional][u][svirt][sporadic] auto_review:"IO::Socket::INET: connect: Connection timed out" added
Actions #11

Updated by szarate about 5 years ago

  • Description updated (diff)

Testing on 3 different machines (s390 included), gave the same result, however while looking well at the output, it seems that there's an extra "\n" in the test...

LC_TIME='C' pidstat  |awk '{print $3}' | head | tail -n 1 | hexdump -c
0000000   0  \n                                                        
0000002

pid can vary :), didn't look too much in the test when I reported it...

Actions #12

Updated by szarate about 5 years ago

The regexp is the culprit... sub { m/[1-999]/ }... pr is comming it's way

Actions #13

Updated by szarate about 5 years ago

  • Status changed from In Progress to Feedback
Actions #14

Updated by szarate about 5 years ago

  • Subject changed from [functional][u] test fails in sysstat - Possible false negative in wait_serial to [functional][u] test fails in sysstat - regular expression for pidstat test is incorrect
Actions #16

Updated by okurz about 5 years ago

  • Target version changed from Milestone 22 to Milestone 23

Both PRs merged but new jobs in the same scenario so far failed earlier so we can not verify yet: https://openqa.suse.de/tests/2466910

Actions #17

Updated by szarate about 5 years ago

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF