Activity log for bug #1954375

Date Who What changed Old value New value Message
2021-12-10 06:14:27 jeremyszu bug added bug
2021-12-10 06:15:01 jeremyszu bug added subscriber OEM Solutions Group: Engineers
2021-12-10 06:15:04 jeremyszu tags oem-priority originate-from-1953597 stella
2021-12-10 06:22:35 jeremyszu description When a checkbox session contains many pm_test calls[1], then it will append the "Completed S3 cycle(s) \n" and "Completed s2idle cycle(s) \n" to the same path (e.g. --log=/var/tmp/checkbox-ng/sessions/session_title-2021-12-06T10.25.57.session/session-share/fwts). When the second (or later) pm_test be called, it will count previous fwts logs. ``` with open(fwts_log_path, 'rt') as f: magic_line_s3 = 'Completed S3 cycle(s) \n' magic_line_s2idle = 'Completed s2idle cycle(s) \n' lines = f.readlines() count_s3 = lines.count(magic_line_s3) count_s2idle = lines.count(magic_line_s2idle) count = count_s3 + count_s2idle if count != total_suspends_expected: problems = ( "Found {} occurrences of S3/S2idle." " Expected {}".format( count, total_suspends_expected)) ``` The potential solution is to create fwts-cmd.log per test case or check the timestamp[2] whether inside the range. Feel free to find the detail logs on https://bugs.launchpad.net/stella/+bug/1953597. [1] https://bugs.launchpad.net/stella/+bug/1953597 [2] "This test run on 06/12/21 at 22:21:08 on host Linux u 5.14.0-1007-oem #7-Ubuntu" When a checkbox session contains many pm_test calls[1], then it will append the "Completed S3 cycle(s) \n" and "Completed s2idle cycle(s) \n" to the same path (e.g. --log=/var/tmp/checkbox-ng/sessions/session_title-2021-12-06T10.25.57.session/session-share/fwts). When the second (or later) pm_test be called, it will count previous fwts logs. ```                 with open(fwts_log_path, 'rt') as f:                     magic_line_s3 = 'Completed S3 cycle(s) \n'                     magic_line_s2idle = 'Completed s2idle cycle(s) \n'                     lines = f.readlines()                     count_s3 = lines.count(magic_line_s3)                     count_s2idle = lines.count(magic_line_s2idle)                     count = count_s3 + count_s2idle                     if count != total_suspends_expected:                         problems = (                             "Found {} occurrences of S3/S2idle."                             " Expected {}".format(                                 count, total_suspends_expected)) ``` In the case that Stella met, it shows: ``` [Actual result] Stress_suspend_30_cycles_with_reboots test failed Log:Found 126 occurrences of S3/S2idle. Expected 90 ``` The potential solution is to create fwts-cmd.log per test case or check the timestamp[2] whether inside the range. Feel free to find the detail logs on https://bugs.launchpad.net/stella/+bug/1953597. [1] https://bugs.launchpad.net/stella/+bug/1953597 [2] "This test run on 06/12/21 at 22:21:08 on host Linux u 5.14.0-1007-oem #7-Ubuntu"
2021-12-10 06:27:40 jeremyszu plainbox-provider-checkbox: assignee jeremyszu (os369510)
2021-12-10 06:27:41 jeremyszu plainbox-provider-checkbox: importance Undecided High
2021-12-10 06:27:43 jeremyszu plainbox-provider-checkbox: status New Triaged
2021-12-10 06:27:49 jeremyszu plainbox-provider-checkbox: status Triaged Confirmed
2022-03-14 08:04:26 Matias Piipari tags oem-priority originate-from-1953597 stella cbox-16 oem-priority originate-from-1953597 stella
2022-11-28 16:17:35 Maksim Beliaev bug watch added https://github.com/canonical/checkbox/issues/89
2022-11-28 16:17:36 Maksim Beliaev plainbox-provider-checkbox: status Confirmed Expired