Regression caught by replay_kernel.py:ReplayKernelNormal.test_aarch64_virt
Hi everyone,
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
I've bisected it down to the following commit:
---
78ff82bb1b67c0d79113688e4b3427fc99cab9d4 is the first bad commit commit 78ff82bb1b67c0d79113688e4b3427fc99cab9d4
Author: Richard Henderson <[email protected]>
accel/tcg: Reduce CF_COUNT_MASK to match TCG_MAX_INSNS
The space reserved for CF_COUNT_MASK was overly large. Reduce to free up cflags bits and eliminate an extra test.
Message-Id: <[email protected]>
accel/tcg/translate-all.c | 5 ++--- include/exec/exec-all.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-)
---
To reproduce it:
1. configure --target-list=aarch64-softmmu
2. meson compile
3. make check-venv
4. ./tests/venv/bin/avocado --show=test run tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt
PS: I haven't had the time yet to scan the mailing list for possible discussions about it.
[1] https://gitlab.com/qemu-project/qemu/-/jobs/1445513133#L268
Signature · 4 lines
Cleber Rosa [ Sr Software Engineer - Virtualization Team - Red Hat ] [ Avocado Test Framework - avocado-framework.github.io ] [ 7ABB 96EB 8B46 B94D 5E0F E9BB 657E 8D33 A5F2 09F3 ]
Quoted 7 lines · Cleber Rosa
Hi everyone,
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
I've bisected it down to the following commit:
Thanks for bisecting.
I didn't try to understand why the bug happens, but it can be solved with the following patch:
accel/tcg/translate-all.c +1 -1
@@ -1428,7 +1428,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu, max_insns = cflags &CF_COUNT_MASK ;if (max_insns ==0 ) { - max_insns =TCG_MAX_INSNS ; + max_insns =CF_COUNT_MASK ; }QEMU_BUILD_BUG_ON (CF_COUNT_MASK +1 !=TCG_MAX_INSNS );
Quoted 36 lines
---
78ff82bb1b67c0d79113688e4b3427fc99cab9d4is the first bad commit commit78ff82bb1b67c0d79113688e4b3427fc99cab9d4
Author: Richard Henderson <[email protected]>accel/tcg: Reduce
CF_COUNT_MASKto matchTCG_MAX_INSNSThe space reserved for
CF_COUNT_MASKwas overly large. Reduce to free up cflags bits and eliminate an extra test.Tested-by Mark Cave-Ayland <[email protected]>Signed-off-by Richard Henderson <[email protected]>Reviewed-by Alex Bennée <[email protected]>Reviewed-by Peter Maydell <[email protected]>Message-Id: <[email protected]>
accel/tcg/translate-all.c | 5 ++--- include/exec/exec-all.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-)---
To reproduce it:
1. configure --target-list=aarch64-softmmu
2. meson compile
3. make check-venv
4. ./tests/venv/bin/avocado --show=test run tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virtPS: I haven't had the time yet to scan the mailing list for possible discussions about it.
[1] https://gitlab.com/qemu-project/qemu/-/jobs/1445513133#L268
Quoted 24 lines · Cleber Rosa
Hi everyone,
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
I've bisected it down to the following commit:
---
78ff82bb1b67c0d79113688e4b3427fc99cab9d4is the first bad commit commit78ff82bb1b67c0d79113688e4b3427fc99cab9d4
Author: Richard Henderson <[email protected]>accel/tcg: Reduce
CF_COUNT_MASKto matchTCG_MAX_INSNSThe space reserved for
CF_COUNT_MASKwas overly large. Reduce to free up cflags bits and eliminate an extra test.Tested-by Mark Cave-Ayland <[email protected]>Signed-off-by Richard Henderson <[email protected]>Reviewed-by Alex Bennée <[email protected]>Reviewed-by Peter Maydell <[email protected]>
Quoted 5 lines
Message-Id: <[email protected]>
accel/tcg/translate-all.c | 5 ++--- include/exec/exec-all.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-)
This is probably fixed by
https://patchew.org/QEMU/[email protected]/
(which is in RTH's pullreq currently on list).
-- PMM
Quoted 32 lines · Peter Maydell
Quoted 24 lines · Cleber Rosa
Hi everyone,
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
I've bisected it down to the following commit:
---
78ff82bb1b67c0d79113688e4b3427fc99cab9d4is the first bad commit commit78ff82bb1b67c0d79113688e4b3427fc99cab9d4
Author: Richard Henderson <[email protected]>accel/tcg: Reduce
CF_COUNT_MASKto matchTCG_MAX_INSNSThe space reserved for
CF_COUNT_MASKwas overly large. Reduce to free up cflags bits and eliminate an extra test.Tested-by Mark Cave-Ayland <[email protected]>Signed-off-by Richard Henderson <[email protected]>Reviewed-by Alex Bennée <[email protected]>Reviewed-by Peter Maydell <[email protected]>Quoted 5 lines
Message-Id: <[email protected]>
accel/tcg/translate-all.c | 5 ++--- include/exec/exec-all.h | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-)
Quoted 6 lines
This is probably fixed by
https://patchew.org/QEMU/[email protected]/
(which is in RTH's pullreq currently on list).-- PMM
Actually, it is already fixed by df3a2de51a07089a4a729fe1f792f658df9dade4.
BTW, TCG looks like the right place where the bug was, because it affected other targets and machines. This is the actual list of tests I was seeing the same issue (and are now fixed):
(1/4) tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt:
PASS (8.86 s)
(2/4) tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_arm_virt:
PASS (13.42 s)
(3/4) tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_m68k_mcf5208evb:
PASS (3.20 s)
(4/4) tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_xtensa_lx60:
PASS (12.29 s)
Cheers,
- Cleber.
Quoted 7 lines · Cleber Rosa
Quoted 3 lines · Peter Maydell
This is probably fixed by
https://patchew.org/QEMU/[email protected]/
(which is in RTH's pullreq currently on list).Actually, it is already fixed by
df3a2de51a07089a4a729fe1f792f658df9dade4.
That is the patchset I linked to above, which has now reached master :-)
-- PMM
Quoted 2 lines · Cleber Rosa
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
FWIW I find that on my local machine this test is consistently flaky and always has been, so I just ignore any failure I see in it when running 'make check-acceptance' locally.
-- PMM
Quoted 11 lines · Peter Maydell
Quoted 2 lines · Cleber Rosa
tests/acceptance/replay_kernel.py:ReplayKernelNormal.test_aarch64_virt is currently failing consistently (first found that in [1]).
FWIW I find that on my local machine this test is consistently flaky and always has been, so I just ignore any failure I see in it when running 'make check-acceptance' locally.
-- PMM
Hi Peter,
Yes, I've spent quite some time with some flaky behavior while running the replay tests as well. But in the end, the test remained unchanged because we found the issues in the actual code under test (one time the recording of the replay file would sometimes be corrupted when using >=1 CPUs, but 100% of the time when using a single CPU).
This time, it was failing 100% of the time in my experience, and now, after the fix in df3a2de51a07089a4a729fe1f792f658df9dade4, it's passing 100% of the time. So I guess even tests with some observed flakiness can have their value.
Cheers,
- Cleber.
Quoted 10 lines · Cleber Rosa
Yes, I've spent quite some time with some flaky behavior while running the replay tests as well. But in the end, the test remained unchanged because we found the issues in the actual code under test (one time the recording of the replay file would sometimes be corrupted when using >=1 CPUs, but 100% of the time when using a single CPU).
This time, it was failing 100% of the time in my experience, and now, after the fix in
df3a2de51a07089a4a729fe1f792f658df9dade4, it's passing 100% of the time. So I guess even tests with some observed flakiness can have their value.
To me they have very little value, because once I notice a test is flaky I simply start to ignore whether it is passing or failing, and then it might as well not be there at all.
(This is happening currently with the gitlab CI tests, which have been failing for a week.)
-- PMM
Quoted 13 lines · Peter Maydell
Quoted 10 lines · Cleber Rosa
Yes, I've spent quite some time with some flaky behavior while running the replay tests as well. But in the end, the test remained unchanged because we found the issues in the actual code under test (one time the recording of the replay file would sometimes be corrupted when using >=1 CPUs, but 100% of the time when using a single CPU).
This time, it was failing 100% of the time in my experience, and now, after the fix in
df3a2de51a07089a4a729fe1f792f658df9dade4, it's passing 100% of the time. So I guess even tests with some observed flakiness can have their value.
Quoted 8 lines
To me they have very little value, because once I notice a test is flaky I simply start to ignore whether it is passing or failing, and then it might as well not be there at all.
(This is happening currently with the gitlab CI tests, which have been failing for a week.)-- PMM
I hear you... and I acknowledge that we currently don't have a good solution for keeping track of the test results data and thus going beyond one's perceived value of a test.
It's not something for the short term, but I do plan to work on a "confidence" tracker for tests. There is some seed work in the CKI data warehouse project[1] but it's very incipient.
- Cleber.
[1] - https://gitlab.com/cki-project/datawarehouse/-/blob/main/datawarehouse/views.py#L158