Bug 15895

Summary: AB-INT PTEST RISCV64: parted ptest failure
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Trevor Gamblin <tgamblin>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: richard.purdie, tgamblin, tim.orling, yoann.congal
Version: unspecified   
Target Milestone: 6.1 M2   
Hardware: RISCV   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2025-06-09 06:56:05 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/87/steps/12/logs/stdio

Failed ptests:
{'parted': 'START: ptest-runner\n'
'2025-06-06T22:36\n'
"make: Entering directory '/usr/lib/parted/ptest/tests'\n"
'PASS: help-version.sh\n'
'PASS: t0000-basic.sh\n'
(...)
'Mem:        1002052       98420      854964         448       '           
'48668      888312\n'           
'Swap:             0           0           0\n'           '\n'           
'ERROR: Exited from signal Killed (9)\n'           'DURATION: 1347\n'}

Looking like a timeout.

qemuriscv64-ptest rocky9-vk-1
Comment 1 João Marcos Costa 2025-06-23 10:08:10 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/129/steps/12/logs/stdio

qemuriscv64-ptest rocky9-vk-2
Comment 2 João Marcos Costa 2025-08-07 07:49:47 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/319/steps/13/logs/stdio

qemuriscv64-ptest opensuse155-vk-1
Comment 3 João Marcos Costa 2025-10-23 12:18:13 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/662/steps/14/logs/stdio

qemuriscv64-ptest opensuse155-vk-1
Comment 4 Trevor Gamblin 2025-10-31 14:31:06 UTC
Some observations after running the ptests 50 times locally:

- No explicit failures
- The test suite will not be as easy to augment with an increased timeout as glib-2.0 was, since the tests are invoked from a Makefile target
- It outputs /usr/lib/parted/ptest/tests/test-suite.log, but this file doesn't have detailed duration info per test, just warnings about skipped tests (seem to depend on missing perl modules)
- About 10% of the time, the test duration increases somewhere between 10-40 seconds. Load on the host system was variable during the tests, so that probably plays a factor here and if there's a timeout, increased load could occasionally push the duration to exceed it like we've seen in other bugs (e.g. https://bugzilla.yoctoproject.org/show_bug.cgi?id=15884)
- The test suite also seems to use cmp for some tests, and the ptest image includes the busybox version by default, so taking the same approach of adding diffutils to the ptest RDEPENDS (like in 15884) might help here. This still needs testing.
Comment 5 Trevor Gamblin 2025-11-04 14:11:56 UTC
I ran a test last night where diffutils was added to the ptest RDEPENDS for parted like in 15884, and compared to the prior runs I saw a much more consistent duration for the ptests, varying at most about 3-4 seconds from the ~390s mark.
Comment 6 Trevor Gamblin 2025-11-04 20:26:51 UTC
For the record, with diffutils installed the test seems to save 5-10 seconds of runtime under light or no load. Heavier loads make it seem more variable. Still testing. I can occasionally spot spikes as high as 760s (from a typical baseline of ~390s) without diffutils, while with it I've seen a typical runtime of ~384s with a high of ~590s.
Comment 7 Trevor Gamblin 2025-11-05 13:24:00 UTC
With QEMU's process limited to a single core with taskset, I see 'ERROR: Exited from signal Killed (9)' every time in 20 ptest runs. The failing tests in this case are:

t1100-busy-label.sh (19 times, every run after the first) - uses "compare" 4 times
t1104-remove-and-add-partition.sh (2 times, runs 5 and 6) - uses "compare" 0 times

where "compare" is a shell function that wraps a call to cmp through compare_.
Comment 8 Trevor Gamblin 2025-11-18 20:30:19 UTC
It has taken me a while to get back to this. I think I was looking in the wrong place before, because t1100-busy-label.sh seems fine. What isn't fine however is t9040-many-partitions.sh. I wrote a local patch just to add some echo calls before each command in the test script, and it seems that the hanging call is here:

https://gitweb.git.savannah.gnu.org/gitweb/?p=parted.git;a=blob;f=tests/t9040-many-partitions.sh;h=31b60302484cf28576e531bbef8b0e23d5c0e471;hb=HEAD#l56

Looks like parted is being passed a *long* list of prospective mkpart commands and stumbling on them...
Comment 9 João Marcos Costa 2026-02-06 11:04:22 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/991/steps/13/logs/stdio

qemuriscv64-ptest ubuntu2204-vk-1
Comment 10 João Marcos Costa 2026-02-06 12:08:19 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1014/steps/13/logs/stdio

qemuriscv64-ptest ubuntu2404-vk-2
Comment 11 João Marcos Costa 2026-02-06 12:11:09 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1028/steps/13/logs/stdio

qemuriscv64-ptest fedora40-vk-2
Comment 12 Mathieu Dubois-Briand 2026-03-19 09:25:12 UTC
qemuriscv64-ptest debian12-vk-5 master&master-next completed at 2026-03-18 20:35:31+00:00
https://valkyrie.yocto.io/pub/non-release/20260318-109/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1275/steps/13/logs/stdio
Comment 13 Mathieu Dubois-Briand 2026-04-10 07:10:26 UTC
qemuriscv64-ptest ubuntu2604-vk-1 master completed at 2026-04-10 03:11:59+00:00
https://valkyrie.yocto.io/pub/non-release/20260410-8/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1421/steps/13/logs/stdio
Comment 14 Mathieu Dubois-Briand 2026-04-22 08:59:45 UTC
qemuriscv64-ptest alma9-vk-2 master&master-next completed at 2026-04-21 16:57:16+00:00
https://valkyrie.yocto.io/pub/non-release/20260421-88/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1478/steps/14/logs/stdio
Comment 16 Mathieu Dubois-Briand 2026-05-16 12:20:51 UTC
qemuriscv64-ptest debian11-vk-1 master completed at 2026-05-16 03:12:19+00:00
https://valkyrie.yocto.io/pub/non-release/20260516-8/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1601/steps/13/logs/stdio
Comment 17 Mathieu Dubois-Briand 2026-05-26 08:56:09 UTC
qemuriscv64-ptest fedora43-vk-1 master completed at 2026-05-19 03:20:21+00:00
https://valkyrie.yocto.io/pub/non-release/20260519-7/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1606/steps/13/logs/stdio
Comment 18 Mathieu Dubois-Briand 2026-05-28 08:16:55 UTC
qemuriscv64-ptest debian12-vk-7 master&master-next completed at 2026-05-28 00:00:30+00:00
https://valkyrie.yocto.io/pub/non-release/20260527-115/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1641/steps/13/logs/stdio
Comment 19 Mathieu Dubois-Briand 2026-06-09 09:10:51 UTC
qemuriscv64-ptest fedora43-vk-1 master completed at 2026-06-09 06:20:36+00:00
https://valkyrie.yocto.io/pub/non-release/20260609-8/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1705/steps/13/logs/stdio
Comment 20 Yoann Congal 2026-06-10 07:15:18 UTC
qemuriscv64-ptest ubuntu2604-vk-2 wrynose completed at 2026-06-10 01:19:37+00:00
https://autobuilder.yoctoproject.org/valkyrie/?#/builders/56/builds/1710
Comment 21 Mathieu Dubois-Briand 2026-06-10 16:42:33 UTC
qemuriscv64-ptest debian12-vk-1 mathieu/master-next completed at 2026-06-10 15:30:26+00:00
https://valkyrie.yocto.io/pub/non-release/20260610-87/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1718/steps/13/logs/stdio
Comment 22 João Marcos Costa 2026-06-18 11:40:58 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1710/steps/13/logs/stdio

qemuriscv64-ptest ubuntu2604-vk-2
Comment 23 Mathieu Dubois-Briand 2026-06-25 10:23:45 UTC
qemuriscv64-ptest fedora43-vk-1 master completed at 2026-06-25 02:25:55+00:00
https://valkyrie.yocto.io/pub/non-release/20260625-8/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1814/steps/13/logs/stdio
Comment 25 Mathieu Dubois-Briand 2026-07-07 12:51:48 UTC
qemuriscv64-ptest debian12-vk-4 mathieu/master-next completed at 2026-07-06 12:14:00+00:00
https://valkyrie.yocto.io/pub/non-release/20260706-59/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1880/steps/13/logs/stdio
Comment 26 Mathieu Dubois-Briand 2026-07-08 12:29:23 UTC
qemuriscv64-ptest ubuntu2604-vk-2 master&master-next completed at 2026-07-08 08:17:13+00:00
https://valkyrie.yocto.io/pub/non-release/20260708-42/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1893/steps/13/logs/stdio
Comment 27 João Marcos Costa 2026-08-24 09:54:01 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/972/steps/13/logs/stdio

qemuriscv64-ptest stream9-vk-1