action #44594
closed[functional][u] test fails in sysstat - regular expression for pidstat test is incorrect
0%
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
Updated by mloviska almost 6 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
Updated by mloviska almost 6 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
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
It fails since last 7 builds: https://openqa.suse.de/tests/2314767#next_previous
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
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
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
Updated by mgriessmeier over 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
Updated by okurz over 5 years ago
- Description updated (diff)
- Status changed from New to Workable
Updated by szarate over 5 years ago
- Status changed from Workable to In Progress
- Assignee set to szarate
Picking up this one
Updated by szarate over 5 years ago
- Precedes action #46919: [functional][u][svirt][sporadic] auto_review:"IO::Socket::INET: connect: Connection timed out" added
Updated by szarate over 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...
Updated by szarate over 5 years ago
The regexp is the culprit... sub { m/[1-999]/ }... pr is comming it's way
Updated by szarate over 5 years ago
- Status changed from In Progress to Feedback
Updated by szarate over 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
Updated by szarate over 5 years ago
Pr merged, https://github.com/os-autoinst/os-autoinst-distri-opensuse/pull/6803 created as follow up
Updated by okurz over 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
Updated by szarate over 5 years ago
- Status changed from Feedback to Resolved
Test is passing now! https://openqa.suse.de/tests/2485479#step/sysstat/70