Bug 16270

Summary: AB-INT PTEST RISCV64: gstreamer1.0 ptest failure: in gstreamer/gst_gstinfo.test
Product: [QA/Testing] Package Testing (ptest) Reporter: João Marcos Costa <joaomarcos.costa>
Component: ptestAssignee: Unassigned <unassigned>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: mathieu.dubois-briand, richard.purdie, skandigraun
Version: unspecified   
Target Milestone: 6.1 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description João Marcos Costa 2026-04-28 11:58:58 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1517/steps/13/logs/stdio

Failed ptests:
{'gstreamer1.0': ['gstreamer/gst_gstinfo.test']}

qemuriscv64-ptest stream9-vk-1

---
Executing: gstreamer/gst_gstinfo.test, gstreamer/gst_gstsystemclock.test, gstreamer/gst_gstbus.test, gstreamer/libs_aggregator.test
100%: Checks: 18, Failures: 0, Errors: 0
Check suite gst_aggregator ran in 7.510s (tests failed: 0)
PASS: gstreamer/libs_aggregator.test
Running test: gstreamer/libs_queuearray.test
+ CK_DEFAULT_TIMEOUT=20
+ GST_PLUGIN_LOADING_WHITELIST=gstreamer
+ GST_REGISTRY=/home/root/.cache/gstreamer-1.0/libs_queuearray.registry
+ GST_STATE_IGNORE_ELEMENTS=
+ exec /usr/libexec/installed-tests/gstreamer/libs_queuearray
Running suite(s): GstQueueArray
100%: Checks: 16, Failures: 0, Errors: 0
Check suite gst_queue_array ran in 0.199s (tests failed: 0)
PASS: gstreamer/libs_queuearray.test
Running test: gstreamer/pipelines_cleanup.test
+ CK_DEFAULT_TIMEOUT=20
+ GST_PLUGIN_LOADING_WHITELIST=gstreamer
+ GST_REGISTRY=/home/root/.cache/gstreamer-1.0/pipelines_cleanup.registry
+ GST_STATE_IGNORE_ELEMENTS=
+ exec /usr/libexec/installed-tests/gstreamer/pipelines_cleanup
Running suite(s): Pipeline cleanup
100%: Checks: 1, Failures: 0, Errors: 0
Check suite cleanup ran in 0.035s (tests failed: 0)
PASS: gstreamer/pipelines_cleanup.test
Running test: gstreamer/gst_gstcaps.test
+ CK_DEFAULT_TIMEOUT=20
+ GST_PLUGIN_LOADING_WHITELIST=gstreamer
+ GST_REGISTRY=/home/root/.cache/gstreamer-1.0/gst_gstcaps.registry
+ GST_STATE_IGNORE_ELEMENTS=
+ exec /usr/libexec/installed-tests/gstreamer/gst_gstcaps
Running suite(s): GstCaps
94%: Checks: 18, Failures: 1, Errors: 0
/usr/src/debug/gstreamer1.0/1.28.2/tests/check/gst/gstinfo.c:687:F:info:info_context_log_periodic:0: 'context_log_count' (2) is not equal to '1' (1)
Check suite gst_info ran in 8.216s (tests failed: 1)
FAIL: gstreamer/gst_gstinfo.test (Child process exited with code 1)
---

Full logs at https://valkyrie.yocto.io/pub/non-release/20260427-107/testresults/qemuriscv64-ptest/gstreamer1.0.log
Comment 1 João Marcos Costa 2026-04-28 13:07:16 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1517/steps/13/logs/stdio

qemuriscv64-ptest opensuse160-vk-1
Comment 2 João Marcos Costa 2026-04-29 08:54:22 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1526/steps/13/logs/stdio

qemuriscv64-ptest ubuntu2604-vk-2
Comment 3 João Marcos Costa 2026-06-18 11:14:39 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1746/steps/13/logs/stdio

Failed ptests:
{'gstreamer1.0': ['gstreamer/gst_gstinfo.test']}

qemuriscv64-ptest ubuntu2204-vk-3

---
Running test: gstreamer/gst_gstinfo.test
+ CK_DEFAULT_TIMEOUT=20
+ GST_PLUGIN_LOADING_WHITELIST=gstreamer
+ GST_REGISTRY=/home/root/.cache/gstreamer-1.0/gst_gstinfo.registry
+ GST_STATE_IGNORE_ELEMENTS=
+ exec /usr/libexec/installed-tests/gstreamer/gst_gstinfo
Running suite(s): GstInfo
Executing: gstreamer/libs_gstharness.test, gstreamer/gst_gstinfo.test, gstreamer/elements_capsfilter.test, gstreamer/libs_bytereader.test
(...)
94%: Checks: 18, Failures: 1, Errors: 0
/usr/src/debug/gstreamer1.0/1.28.2/tests/check/gst/gstinfo.c:687:F:info:info_context_log_periodic:0: 'context_log_count' (2) is not equal to '1' (1)
Check suite gst_info ran in 10.637s (tests failed: 1)
FAIL: gstreamer/gst_gstinfo.test (Child process exited with code 1)
---

Full logs: https://valkyrie.yocto.io/pub/non-release/20260615-50/testresults/qemuriscv64-ptest/gstreamer1.0.log
Comment 4 Mathieu Dubois-Briand 2026-07-20 12:05:12 UTC
qemuriscv64-ptest ubuntu2404-vk-3 mathieu/master-next-tests&mathieu/master-next completed at 2026-07-17 14:28:22+00:00
https://valkyrie.yocto.io/pub/non-release/20260717-85/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1936/steps/13/logs/stdio
Comment 5 João Marcos Costa 2026-07-27 09:04:42 UTC
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/1993/steps/14/logs/stdio

qemuriscv64-ptest rocky8-vk-1

---
Running suite(s): GstInfo
Executing: gstreamer/generic_sinks.test, gstreamer/pipelines_seek.test, gstreamer/gst_gstinfo.test, gstreamer/elements_fakesink.test
100%: Checks: 20, Failures: 0, Errors: 0
Check suite gst_sinks ran in 4.839s (tests failed: 0)
PASS: gstreamer/generic_sinks.test
Running test: gstreamer/gst_gstvecdeque.test
+ CK_DEFAULT_TIMEOUT=20
+ GST_PLUGIN_LOADING_WHITELIST=gstreamer
+ GST_REGISTRY=/home/root/.cache/gstreamer-1.0/gst_gstvecdeque.registry
+ GST_STATE_IGNORE_ELEMENTS=
+ exec /usr/libexec/installed-tests/gstreamer/gst_gstvecdeque
Running suite(s): GstVecDeque
94%: Checks: 18, Failures: 1, Errors: 0
/usr/src/debug/gstreamer1.0/1.28.4/tests/check/gst/gstinfo.c:687:F:info:info_context_log_periodic:0: 'context_log_count' (2) is not equal to '1' (1)
Check suite gst_info ran in 4.492s (tests failed: 1)
FAIL: gstreamer/gst_gstinfo.test (Child process exited with code 1)
---

Full logs at: https://valkyrie.yocto.io/pub/non-release/20260726-98/testresults/qemuriscv64-ptest/gstreamer1.0.log
Comment 6 Gyorgy Sarvari 2026-07-28 15:34:36 UTC
This can be reproduced easily with an abused, overcommitted CPU, which I suspect happens frequently on the autobuilder (and qemu without kvm is slow already).

Just at the failing assertion, there is a comment in the code[1]:

```
  /* Should see the message only once, unless it took more than 10ms to print 3
   * debug message ... */
  fail_unless_equals_int (context_log_count, 1);
```

Just a few lines higher there is a a bit of a hint, when valgrind is running, this 10ms repetition interval is relaxed to 250ms. Probably doing something like that would help this bug too.

[1]: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/1.28/subprojects/gstreamer/tests/check/gst/gstinfo.c?ref_type=heads#L685
Comment 7 Mathieu Dubois-Briand 2026-08-13 06:23:41 UTC
qemuriscv64-ptest ubuntu2504-vk-1 mathieu/master-next completed at 2026-08-11 15:04:50+00:00
https://valkyrie.yocto.io/pub/non-release/20260811-94/testresults/qemuriscv64-ptest/
https://autobuilder.yoctoproject.org/valkyrie/#/builders/56/builds/2141/steps/15/logs/stdio