[Bug 1989365] Re: test_omit_all_processes_except_one is racy and fails sometimes
Launchpad Bug Tracker
1989365 at bugs.launchpad.net
Thu Sep 15 15:52:21 UTC 2022
This bug was fixed in the package apport - 2.23.0-0ubuntu2
---------------
apport (2.23.0-0ubuntu2) kinetic; urgency=medium
* tests: Wait for test process to be started (LP: #1989365)
* tests: Fix psutil.NoSuchProcess in wait_for_gdb_child_process
(LP: #1989371)
-- Benjamin Drung <bdrung at ubuntu.com> Thu, 15 Sep 2022 14:04:42 +0200
** Changed in: apport (Ubuntu)
Status: Confirmed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1989365
Title:
test_omit_all_processes_except_one is racy and fails sometimes
Status in Apport:
Fix Committed
Status in apport package in Ubuntu:
Fix Released
Bug description:
The test case test_omit_all_processes_except_one is racy and fails
sometimes:
```
test_omit_all_processes_except_one (tests.system.test_unkillable_shutdown.TestUnkillableShutdown)
unkillable_shutdown will write exactly one report. ... Running as unit: run-r0b0d3fe87473410c9eb61a5ae4635938.service
FAIL
======================================================================
FAIL: test_omit_all_processes_except_one (tests.system.test_unkillable_shutdown.TestUnkillableShutdown)
unkillable_shutdown will write exactly one report.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/autopkgtest.JJoBfX/autopkgtest_tmp/tests/system/test_unkillable_shutdown.py", line 96, in test_omit_all_processes_except_one
pid = self._launch_process_with_different_session_id(existing_pids)
File "/tmp/autopkgtest.JJoBfX/autopkgtest_tmp/tests/system/test_unkillable_shutdown.py", line 90, in _launch_process_with_different_session_id
self.assertEqual(len(test_executable_pids), 1, test_executable_pids)
AssertionError: 0 != 1 : set()
----------------------------------------------------------------------
```
autopkgtest log: https://autopkgtest.ubuntu.com/results/autopkgtest-
kinetic/kinetic/amd64/a/apport/20220912_055849_5f03e@/log.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1989365/+subscriptions
More information about the foundations-bugs
mailing list