Bug 15886

Summary: qemu riscv64: fix skipped ptest: unit/test-nested-aio-poll
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Randy MacLeod <randy.macleod>
Component: devtools / tool chainAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, tgamblin
Version: 5.3   
Target Milestone: 6.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Randy MacLeod 2025-06-02 16:58:30 UTC
A change has been or will soon be merged to master branch:
---
   qemu: Disable hanging ptest for riscv64

One of the ptests keeps hanging on qemuriscv64. Until it is investigated, stop
it running for now. Also improve the debug output from the run-ptest script so
it is easier to see where things hang in future.

---

Figure out the root cause of the problem and hopfully restore the test.
Comment 1 Randy MacLeod 2025-06-05 14:38:56 UTC
When enabled, the failure is intermittent.
Comment 2 Randy MacLeod 2026-01-09 19:20:24 UTC
❯ git show bf6a6ba96757471048044290318e32048040dae5  | cat
commit bf6a6ba96757471048044290318e32048040dae5
Author: Richard Purdie <richard.purdie@linuxfoundation.org>
Date:   Mon Jun 2 09:29:11 2025

    qemu: Disable hanging ptest for riscv64
    
    One of the ptests keeps hanging on qemuriscv64. Until it is investigated, stop
    it running for now. Also improve the debug output from the run-ptest script so
    it is easier to see where things hang in future.
    
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/recipes-devtools/qemu/qemu/run-ptest b/meta/recipes-devtools/qemu/qemu/run-ptest
index f9a4e8fb2b..1157b48855 100644
--- a/meta/recipes-devtools/qemu/qemu/run-ptest
+++ b/meta/recipes-devtools/qemu/qemu/run-ptest
@@ -9,5 +9,10 @@ export SRC_PATH=$ptestdir
 cd $ptestdir/tests
 tests=$(find . -name "test-*" ! -name "*.p")
 for f in $tests; do
+    # Test hangs intermittently on qemurisc64 on autobuilder
+    if [ "$f" = "./unit/test-nested-aio-poll" -a `uname -m` = "riscv64" ]; then
+        continue
+    fi
+    echo "Running $f"
     $f  | sed '/^ok/ s/ok/PASS:/g'
 done
Comment 3 Randy MacLeod 2026-05-28 13:17:57 UTC
Bulk move of unassigned 6.0-M* bugs to 6.1-M2.