← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1853383] Re: autopkgtest regression in test_add_proc_info

 

The tests are passing now for Xenial and Bionic.

** Changed in: apport (Ubuntu Eoan)
       Status: New => Won't Fix

** Changed in: apport (Ubuntu Bionic)
       Status: New => Fix Released

** Changed in: apport (Ubuntu Xenial)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1853383

Title:
  autopkgtest regression in test_add_proc_info

Status in apport package in Ubuntu:
  Fix Released
Status in apport source package in Xenial:
  Fix Released
Status in apport source package in Bionic:
  Fix Released
Status in apport source package in Disco:
  Won't Fix
Status in apport source package in Eoan:
  Won't Fix

Bug description:
  The security uploads for apport (2.20.11-0ubuntu8.2 for eoan,
  2.20.10-0ubuntu27.2 for disco, and 2.20.9-0ubuntu7.8 for bionic - and
  maybe those for older releases as well) have caused the
  test_add_proc_info test to start failing[1]. The pattern changed after
  the subsequent uploads to fix a regression, but it still fails[2].

  [1]
  ======================================================================
  ERROR: test_add_proc_info (__main__.T)
  add_proc_info().
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test_report.py", line 100, in test_add_proc_info
      pr.add_proc_info(extraenv=['PWD'])
    File "/usr/lib/python3/dist-packages/apport/report.py", line 550, in add_proc_info
      self.add_proc_environ(pid, extraenv)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 619, in add_proc_environ
      env = _read_file('environ', dir_fd=proc_pid_fd).replace('\n', '\\n')
    File "/usr/lib/python3/dist-packages/apport/report.py", line 73, in _read_file
      with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
    File "/usr/lib/python3/dist-packages/apport/report.py", line 73, in <lambda>
      with open(path, 'rb', opener=lambda path, mode: os.open(path, mode, dir_fd=dir_fd)) as fd:
  TypeError: argument should be integer or None, not list

  [2]
  ======================================================================
  ERROR: test_add_proc_info (__main__.T)
  add_proc_info().
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "./test_report.py", line 210, in test_add_proc_info
      self.assertRaises(ValueError, pr.add_proc_info, p.pid)
    File "/usr/lib/python3.7/unittest/case.py", line 743, in assertRaises
      return context.handle('assertRaises', args, kwargs)
    File "/usr/lib/python3.7/unittest/case.py", line 178, in handle
      callable_obj(*args, **kwargs)
    File "/usr/lib/python3/dist-packages/apport/report.py", line 544, in add_proc_info
      proc_pid_fd = os.open('/proc/%s' % pid, os.O_RDONLY | os.O_PATH | os.O_DIRECTORY)
  FileNotFoundError: [Errno 2] No such file or directory: '/proc/1899'

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