Bug 14464

Summary: AB-INT PTEST ARM: glib-2.0 glib/timeout.test failure
Product: [QA/Testing] Package Testing (ptest) Reporter: Alexandre Belloni <alexandre.belloni>
Component: ptestAssignee: Ross Burton <ross.burton>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, joaomarcos.costa, randy.macleod, ross.burton, tgamblin
Version: 3.4   
Target Milestone: 5.0 M4   
Hardware: x86   
OS: arm   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2021-06-30 23:04:44 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/1935/steps/12/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1

'glib-2.0': ['glib/timeout.test']
Comment 1 Ross Burton 2021-07-07 09:37:59 UTC
GLib:ERROR:../glib-2.68.3/glib/tests/timeout.c:161:test_func: assertion failed (current_time / 1000 - last_time / 1000 <= 1500): (1665 <= 1500)

  /* We accept 2 on the first iteration because _add_seconds() can
   * have an initial latency of 1 second, see its documentation.
   *
   * Allow up to 500ms leeway for rounding and scheduling.
   */
  if (count == 0)
    g_assert_cmpint (current_time / 1000 - last_time / 1000, <=, 2500);
  else
    g_assert_cmpint (current_time / 1000 - last_time / 1000, <=, 1500);


The test exercises timeout logic with a leeway of 500ms, but the machine is heavily loaded so the test takes longer.  Increasing the leeway will simply make this rarer.
Comment 2 Alexandre Belloni 2021-08-20 13:08:15 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2108/steps/12/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 3 Alexandre Belloni 2021-09-16 13:53:35 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/2223/steps/12/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 4 Randy MacLeod 2022-03-31 14:47:07 UTC
If this happens again, we can increase the time as Ross suggested.
Comment 5 Alexandre Belloni 2023-03-14 23:28:03 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/4602/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1

Running test: glib/timeout.test
# random seed: R02Sfc32c8c0134df18b37878defa708e7ff
1..4
# Start of timeout tests
# Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052
Executing: glib/timeout.test
ok 1 /timeout/seconds
# Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600
ok 2 /timeout/weeks-overflow
ok 3 /timeout/far-future-ready-time
Executing: glib/timeout.test
**
GLib:ERROR:/usr/src/debug/glib-2.0/1_2.74.6-r0/glib/tests/timeout.c:159:test_func: assertion failed (current_time / 1000 - last_time / 1000 <= 1500): (1586 <= 1500)
Bail out! GLib:ERROR:/usr/src/debug/glib-2.0/1_2.74.6-r0/glib/tests/timeout.c:159:test_func: assertion failed (current_time / 1000 - last_time / 1000 <= 1500): (1586 <= 1500)
FAIL: glib/timeout.test (Child process killed by signal 6)
Comment 6 Alexandre Belloni 2023-06-08 20:59:00 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/4891/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 7 Alexandre Belloni 2023-07-18 18:20:18 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5118/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 8 Alexandre Belloni 2023-07-19 17:01:53 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5033/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 9 Trevor Gamblin 2023-09-14 15:35:17 UTC
Moved to M4.
Comment 10 Alexandre Belloni 2023-09-21 17:04:11 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5403/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 11 Alexandre Belloni 2023-12-11 22:37:54 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5701/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 12 Alexandre Belloni 2023-12-18 17:15:39 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5859/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 13 João Marcos Costa 2024-01-17 09:35:42 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5953/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 14 João Marcos Costa 2024-01-17 13:24:30 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/82/builds/5670/steps/13/logs/stdio

qemuarm64-ptest ubuntu1804-arm-1
Comment 15 Ross Burton 2024-03-28 16:44:36 UTC
Patch on the list.
Comment 16 Ross Burton 2024-04-30 15:39:57 UTC
Fixed - hopefully - in 684ac8005aef8ab26e61e6e7535e19c9974972d3.