[Bug 2098415] Re: [SRU] Update ubuntu-desktop-bootstrap package hook

Launchpad Bug Tracker 2098415 at bugs.launchpad.net
Wed Mar 12 07:49:59 UTC 2025


This bug was fixed in the package apport - 2.28.1-0ubuntu3.5

---------------
apport (2.28.1-0ubuntu3.5) noble; urgency=medium

  [ Simon Chopin ]
  * d/p/tests-skip-anonymization-test-on-environments-that-a.patch:
    Fix FTBFS when building on the LP infra (LP: #2097264)

  [ Chris Peterson ]
  * d/package-hooks/ubuntu-desktop-bootstrap.py: attach files with root
    and add subiquity traceback, curtin logs, subiquity or system journal,
    hardware information, and check if snap updated (LP: #2098415).
  * d/package-hooks/subiquity.py: fix typo in path to curtin apt
    configuration (LP: #2098423).

  [ Benjamin Drung ]
  * apport-gtk: check for available display on startup (LP: #2006981)
  * python3-apport: Bump python3-problem-report dependency to >= 2.28
    for CompressedFile class (LP: #2100313)
  * test:
    - do not check for exact encoded gzip data (LP: #2076269)
    - depend on apport-gtk for new UI integration test
    - split test_find_package_desktopfile into separate test cases
      and fix test_find_package_desktopfile_multiple
    - autopkgtest: install xterm for test_find_package_desktopfile_multiple

 -- Benjamin Drung <bdrung at ubuntu.com>  Thu, 27 Feb 2025 14:01:57 +0100

** Changed in: apport (Ubuntu Noble)
       Status: Fix Committed => 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/2098415

Title:
  [SRU] Update ubuntu-desktop-bootstrap package hook

Status in apport package in Ubuntu:
  Fix Released
Status in apport source package in Noble:
  Fix Released
Status in apport source package in Oracular:
  Fix Released

Bug description:
  [ Impact ]

  Apport contains the "package hook" for the ubuntu-desktop-bootstrap
  snap, which is used for information collection during error reporting.
  The content of the hook currently in Noble doesn't collect modern
  information that is generally useful for triaging bug reports. The
  content of this SRU updates the ubuntu-desktop-bootstrap package hook
  to contain information as of the latest update in Plucky [1].

  [ Test Plan ]

   The test plan is focused on testing the behavior of apport within the
  live installation environment, where we primarily expect users to
  submit bug reports from. The test plan involves performing an install
  to completion (without rebooting), testing the existing hook and
  comparing the keys in the generated report to those expected, and
  finally updated the hook and re-comparing to the expected keys.

  ## Reproduction Steps
  1) Download the latest Desktop ISO [3].
  2) Complete a full installation of the system but do not let it reboot.  If the installer offers a refresh, accept it.
  3) Open a terminal and run `ubuntu-bug ubuntu-desktop-bootstrap`
  4) Confirm some keys from the expected keys section are missing

  ## Confirm the upload fixes the issue
  1) Update apport from -proposed and re-run `ubuntu-bug ubuntu-desktop-bootstrap` and compare the collected key names in the pop-up and that they contain data.

  ## Expected keys

  "SnapUpdated"
  "SubiquityLog"
  "CurtinLog":
  "CurtinError.tar" (Only present if a real crash occurred and it was during the curtin install step)
  "ProbeData"
  "UdbLog"
  "SubiquityTraceback" (Only present if a real crash occurred)
  "CurtinAptConfig"
  "CurtinCurthooksConfig"
  "CurtinExtractConfig"
  "CurtinInitialConfig"
  "CurtinPartitioningConfig"
  "InstallerJournal" or "SystemJournal"

  [ Where problems could occur ]

  This update only makes changes to the file: /usr/share/apport/package-hooks/ubuntu-desktop-bootstrap.py
  thus I only expect regressions in the form of manual bug reporting failures. This code in this file is only ever executed as part of ubuntu-desktop-bootstrap's "package hook" and so should only regress behavior as part of data collection for ubuntu-desktop-bootstrap bug reporting. However, if this happened, then it would prevent users from submitting bugs against ubuntu-desktop-bootstrap via `ubuntu-bug`.

  [ Other Info ]

   * Appologies for not making a bug for the original upload. The
  original upload is for apport-2.31.0-0ubuntu4[1] in Plucky and
  MP-478129[2].

   * The fields starting with "lsusb" may report an error with exit code
  1 when run on a QEMU VM. This is acceptable.

   * The goal of this upload is that the package hook will be updated on
  the ISOs for the noble .3 release.

  [1] https://launchpad.net/ubuntu/+source/apport/2.31.0-0ubuntu4
  [2] https://code.launchpad.net/~cpete/ubuntu/+source/apport/+git/apport/+merge/478129
  [3] https://releases.ubuntu.com/

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




More information about the foundations-bugs mailing list