apport autopkgtest regression due to kernel packaging changes

Bug #1766740 reported by Steve Langasek on 2018-04-24
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Brian Murray

Bug Description

In bionic, linux-image-$kvers-$flavor is now built from the linux-signed source package on amd64, not from the linux source package. This now causes a test to fail in the apport test suite:

FAIL: test_run_crash_kernel (__main__.T)
run_crash() for a kernel error
Traceback (most recent call last):
  File "./", line 1305, in test_run_crash_kernel
    self.assertEqual(self.ui.opened_url, '' % se
AssertionError: '' != 'http://linux.bugs.e'
? -------

Ran 70 tests in 79.815s

FAILED (failures=1)


This test needs to be fixed to know about the packaging change.

Note that this packaging change is expected to soon be SRUed back to all Ubuntu releases, so apport's testsuite change should also be SRUed.

Steve Langasek (vorlon) on 2018-04-24
Changed in apport (Ubuntu):
importance: Undecided → High
status: New → Triaged
description: updated
tags: added: id-5adfb5d8feb97ed68bb8be28
tags: added: id-5ae35ea55ac10e9203cade8d
Changed in apport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Brian Murray (brian-murray) wrote :

If the source package has changed then there will also need to be an additional apport package hook, symlink, for otherwise bug reports about kernels are going to be pretty incomplete.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.20.10-0ubuntu1

apport (2.20.10-0ubuntu1) cosmic; urgency=medium

  * New upstream release:
    - backends/ when using a permanent sandbox better
      check for the package being already available thereby reducing quantity
      of downloads.
    - apport/ Use timeout parameter in subprocess to limit how long
      we'll wait for gdb to return information as gdb can hang with some core
    - data/apport: Fix PEP8 issues
    - apport/ Include ProblemType in reports which are updated as
      package hooks may expect the report to have a ProblemType. (LP: #1766794)
    - test/ modify run_crash_kernel test to account for the fact
      that linux-image-$kvers-$flavor is now built from the linux-signed
      source package on amd64 and ppc64el. (LP: #1766740)
  * data/general-hooks/ Fix UnicodeDecodeError when processing
    DpkgTerminalLog. (LP: #1766337)
  * data/general-hooks/ Don't display a messy error if python or
    python3 is not installed. (LP: #1769262)
  * debian/apport.links: -> package
    hook (LP: #1766740)
  * data/package-hooks/ Redirect bugs filed about the
    linux-signed source package to linux. (LP: #1766740)

 -- Brian Murray <email address hidden> Thu, 10 May 2018 09:31:34 -0700

Changed in apport (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers