Public bug reported:

[ 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 Noble 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)
"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/noble/

** Affects: apport (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: apport (Ubuntu Noble)
     Importance: Undecided
     Assignee: Chris Peterson (cpete)
         Status: In Progress

** Changed in: apport (Ubuntu)
    Milestone: ubuntu-24.04.3 => None

** Also affects: apport (Ubuntu Noble)
   Importance: Undecided
       Status: New

** Changed in: apport (Ubuntu)
     Assignee: Chris Peterson (cpete) => (unassigned)

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

** Changed in: apport (Ubuntu Noble)
       Status: New => In Progress

** Changed in: apport (Ubuntu Noble)
     Assignee: (unassigned) => Chris Peterson (cpete)

** Changed in: apport (Ubuntu Noble)
    Milestone: None => ubuntu-24.04.3

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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:
  In Progress

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 Noble 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)
  "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/noble/

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


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to