** Description changed:

  [ Impact ]
  
  Apport fails to build with sbuild unshare backend:
  
  ```
  =================================== 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/tmp0l5zfk3h/rep2.crash'
  E           '/tmp/tmp0l5zfk3h/inaccessible.crash'
  E           '/tmp/tmp0l5zfk3h/rep1.crash'
  
  tests/integration/test_fileutils.py:236: AssertionError
  =============================== warnings summary 
===============================
  ```
  
  [ Test Plan ]
  
  Check that apport has been built successfully and do a local test build
  with the unshare backend: sbuild --chroot-mode=unshare
  
  [ Where problems could occur ]
  
  The change only touches the test code. The test cases are only part of
  the apport source package and are not copied in any binary packages.
  Changes to the test will only affect the package build and test
  execution.
+ 
+ [ Other Info ]
+ 
+ This SRU addresses a big number of bugs, because it addresses the
+ several bugs that causes the autopkgtest to fail or fail under certain
+ conditions. I also bundled the fixes around reporting/retracing the bugs
+ reports that we found after modernizing the retracing infrastructure.

** Changed in: apport (Ubuntu)
       Status: In Progress => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2153134

Title:
  Apport fails to build with sbuild unshare backend: test fails when run
  as non-root system user

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/2153134/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to