[Bug 2097429] Re: apport FTBFS with sbuild unshare backend
Launchpad Bug Tracker
2097429 at bugs.launchpad.net
Fri Oct 3 14:47:01 UTC 2025
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: apport (Ubuntu)
Status: New => Confirmed
--
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/2097429
Title:
apport FTBFS with sbuild unshare backend
Status in apport package in Ubuntu:
Confirmed
Bug description:
Seen on (at least) the versions in Noble, Oracular and Plucky.
=================================== FAILURES ===================================
_______________ TestApportCheckreports.test_has_no_system_report _______________
self =
<tests.integration.test_apport_checkreports.TestApportCheckreports
testMethod=test_has_no_system_report>
def test_has_no_system_report(self) -> None:
self._write_report("_bin_sleep.1000.crash")
> self._call(args=["--system"], expected_returncode=1)
tests/integration/test_apport_checkreports.py:68:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/integration/test_apport_checkreports.py:53: in _call
self.assertEqual(process.returncode, expected_returncode)
E AssertionError: 0 != 1
__________________________ T.test_get_system_reports ___________________________
self = <tests.integration.test_fileutils.T
testMethod=test_get_system_reports>
def test_get_system_reports(self) -> None:
"""get_all_system_reports() and get_new_system_reports()"""
self.assertEqual(apport.fileutils.get_all_reports(), [])
self.assertEqual(apport.fileutils.get_all_system_reports(), [])
if os.getuid() == 0:
tr = self._create_reports(True)
self.assertEqual(set(apport.fileutils.get_all_system_reports()), set(tr))
self.assertEqual(set(apport.fileutils.get_new_system_reports()), set(tr))
# now mark them as seen and check again
for r in tr:
apport.fileutils.mark_report_seen(r)
self.assertEqual(set(apport.fileutils.get_all_system_reports()), set(tr))
self.assertEqual(set(apport.fileutils.get_new_system_reports()), set([]))
else:
tr = [r for r in self._create_reports(True) if "inaccessible" not in r]
> self.assertEqual(set(apport.fileutils.get_all_system_reports()), set([]))
E AssertionError: Items in the first set but not the second:
E '/tmp/tmp00942j04/rep1.crash'
E '/tmp/tmp00942j04/inaccessible.crash'
E '/tmp/tmp00942j04/rep2.crash'
tests/integration/test_fileutils.py:236: AssertionError
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/2097429/+subscriptions
More information about the foundations-bugs
mailing list