apport hook that collects snap's information is outdated

Bug #1993191 reported by Olivier Tilloy
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
chromium-browser (Ubuntu)
Fix Released
Medium
Nathan Teodosio
Focal
Fix Released
Medium
Nathan Teodosio
Jammy
Fix Released
Medium
Nathan Teodosio
Kinetic
Fix Released
Medium
Nathan Teodosio

Bug Description

Impact
------

The Apport hook of the Chromium browser is outdated. It collects information about core18, but the snap uses core20.

Moreover, it does not collect information about other interface providers.

Test plan
---------

1. Install the current chromium-browser.

2. Generate a report with

  apport-bug --save /tmp/c1 chromium-browser

3. Install chromium-browser from proposed.

4. Generate another report with

  apport-bug --save /tmp/c2 chromium-browser

Note: If the package was built and generated locally, you will need APPORT_DISABLE_DISTRO_CHECK=1 in the environment.

5. Compare the files. The meaningful differences should be in the Snap.Info.xxxx sections, namely:

  - Snap.Info.core18 -> Snap.Info.core20
  - {None} -> Snap.Info.cups
  - {None} -> Snap.Info.gnome-3-38-2004

Differences should not be observed in Snap.Info.{chromium,core,gtk-common-themes}.

Regression potential
--------------------

Being Apport a bug reporting program, an incorrect parsing of the SNAP_META file could lead to insertion of unwanted information in the report or to suppress the insertion of information about the relevant interfaces.

Original report
---------------

See https://bazaar.launchpad.net/~chromium-team/chromium-browser/groovy-stable/view/head:/debian/apport/chromium-browser.py#L59.

It collects information about core18, but the chromium snap was rebased on core20 almost a year ago.

Related branches

Olivier Tilloy (osomon)
Changed in chromium-browser (Ubuntu):
assignee: nobody → Olivier Tilloy (osomon)
importance: Undecided → Medium
status: New → In Progress
Changed in chromium-browser (Ubuntu):
milestone: none → kinetic-updates
Changed in chromium-browser (Ubuntu Kinetic):
milestone: kinetic-updates → none
Changed in chromium-browser (Ubuntu Jammy):
importance: Undecided → Medium
Changed in chromium-browser (Ubuntu Focal):
importance: Undecided → Medium
Changed in chromium-browser (Ubuntu Jammy):
status: New → In Progress
Changed in chromium-browser (Ubuntu Focal):
status: New → In Progress
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Diffs
  • focal.diff Edit (1.8 KiB, text/x-patch; charset=UTF-8; name="focal.diff")
  • jammy.diff Edit (1.8 KiB, text/x-patch; charset=UTF-8; name="jammy.diff")
  • kinetic.diff Edit (1.8 KiB, text/x-patch; charset=UTF-8; name="kinetic.diff")

Those would be the corresponding diffs I suppose, are them to be
sponsored? I suppose a SRU will be needed for Jammy and Focal.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "focal.diff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Hi, is this still an issue? If so, could you please fill out the description as an SRU? (Or explain why it should not be.)

Thanks.

Changed in chromium-browser (Ubuntu):
assignee: Olivier Tilloy (osomon) → Nathan Teodosio (nteodosio)
Changed in chromium-browser (Ubuntu Kinetic):
assignee: Olivier Tilloy (osomon) → Nathan Teodosio (nteodosio)
Changed in chromium-browser (Ubuntu Focal):
assignee: nobody → Nathan Teodosio (nteodosio)
Changed in chromium-browser (Ubuntu Jammy):
assignee: nobody → Nathan Teodosio (nteodosio)
Revision history for this message
Nathan Teodosio (nteodosio) wrote :
description: updated
Revision history for this message
Nathan Teodosio (nteodosio) wrote :

I already prepared the SRU but didn't involve the SRU team yet as the fix is not release in Lunar yet.

Revision history for this message
Simon Quigley (tsimonq2) wrote :

Uploaded to Lunar, currently in the SRU queue for Kinetic, Jammy, and Focal. Unsubscribing sponsors.

Thanks for your contributions!

Changed in chromium-browser (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package chromium-browser - 1:85.0.4183.83-0ubuntu3

---------------
chromium-browser (1:85.0.4183.83-0ubuntu3) lunar; urgency=medium

  [ Olivier Tilloy ]
  * debian/apport/chromium-browser.py: update the apport hook to collect
    up-to-date information from the chromium snap (LP: #1993191)

 -- Nathan Pratta Teodosio <email address hidden> Mon, 17 Oct 2022 18:53:30 +0200

Changed in chromium-browser (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Olivier, or anyone else affected,

Accepted chromium-browser into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/chromium-browser/1:85.0.4183.83-0ubuntu2.22.10.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in chromium-browser (Ubuntu Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Changed in chromium-browser (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Olivier, or anyone else affected,

Accepted chromium-browser into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/chromium-browser/1:85.0.4183.83-0ubuntu2.22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in chromium-browser (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Brian Murray (brian-murray) wrote :

Hello Olivier, or anyone else affected,

Accepted chromium-browser into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/chromium-browser/1:85.0.4183.83-0ubuntu0.20.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Ubuntu SRU Bot (ubuntu-sru-bot) wrote : Autopkgtest regression report (chromium-browser/1:85.0.4183.83-0ubuntu2.22.10.1)

All autopkgtests for the newly accepted chromium-browser (1:85.0.4183.83-0ubuntu2.22.10.1) for kinetic have finished running.
The following regressions have been reported in tests triggered by the package:

sabnzbdplus/3.6.1+dfsg-1 (arm64)

Please visit the excuses page listed below and investigate the failures, proceeding afterwards as per the StableReleaseUpdates policy regarding autopkgtest regressions [1].

https://people.canonical.com/~ubuntu-archive/proposed-migration/kinetic/update_excuses.html#chromium-browser

[1] https://wiki.ubuntu.com/StableReleaseUpdates#Autopkgtest_Regressions

Thank you!

Revision history for this message
Nathan Teodosio (nteodosio) wrote : Jammy verified
  • x2 Edit (217.4 KiB, text/plain; charset=UTF-8; name="x2")
  • x1 Edit (217.6 KiB, text/plain; charset=UTF-8; name="x1")

In Jammy virtual machine,

Installed chromium-browser, apport-bug --save /tmp/x1 chromium-browser.

Installed chromium-browser from proposed, apport-bug --save /tmp/x2
chromium-browser.

Then compared the files (attached) with vimdiff.

Indeed, the meaningful differences were in the Snap.Info.xxxx sections,
namely:

   - Snap.Info.core18 -> Snap.Info.core20
   - {None} -> Snap.Info.cups
   - {None} -> Snap.Info.gnome-3-38-2004

Differences should not be observed in
Snap.Info.{chromium,core,gtk-common-themes}.

tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Focal verified
  • x2 Edit (221.5 KiB, text/plain; charset=UTF-8; name="x2")
  • x1 Edit (210.3 KiB, text/plain; charset=UTF-8; name="x1")

In Focal virtual machine,

Installed chromium-browser, apport-bug --save x1 chromium-browser.

Installed chromium-browser from proposed, apport-bug --save x2
chromium-browser.

Then compared the files (attached) with vimdiff.

Indeed, the meaningful differences were in the Snap.Info.xxxx sections,
namely:

    - Snap.Info.core18 -> Snap.Info.core20
    - {None} -> Snap.Info.cups
    - {None} -> Snap.Info.gnome-3-38-2004

Differences were not be observed in
Snap.Info.{chromium,core,gtk-common-themes}.

tags: added: verification-done-focal
removed: verification-needed-focal
Revision history for this message
Nathan Teodosio (nteodosio) wrote : Kinetic verified
  • x1 Edit (237.5 KiB, text/plain; charset=UTF-8; name="x1")
  • x2 Edit (241.8 KiB, text/plain; charset=UTF-8; name="x2")

In Kinetic virtual machine,

Installed chromium-browser, apport-bug --save x1 chromium-browser.

Installed chromium-browser from proposed, apport-bug --save x2
chromium-browser.

Then compared the files (attached) with vimdiff.

Indeed, the meaningful differences were in the Snap.Info.xxxx sections,
namely:

     - Snap.Info.core18 -> Snap.Info.core20
     - {None} -> Snap.Info.cups
     - {None} -> Snap.Info.gnome-3-38-2004

Differences were not be observed in
Snap.Info.{chromium,core,gtk-common-themes}.

tags: added: verification-done verification-done-kinetic
removed: verification-needed verification-needed-kinetic
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package chromium-browser - 1:85.0.4183.83-0ubuntu2.22.10.1

---------------
chromium-browser (1:85.0.4183.83-0ubuntu2.22.10.1) kinetic; urgency=medium

  [ Olivier Tilloy ]
  * debian/apport/chromium-browser.py: update the apport hook to collect
    up-to-date information from the chromium snap (LP: #1993191)

 -- Nathan Pratta Teodosio <email address hidden> Mon, 17 Oct 2022 18:53:30 +0200

Changed in chromium-browser (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote : Update Released

The verification of the Stable Release Update for chromium-browser has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package chromium-browser - 1:85.0.4183.83-0ubuntu0.20.04.3

---------------
chromium-browser (1:85.0.4183.83-0ubuntu0.20.04.3) focal; urgency=medium

  [ Olivier Tilloy ]
  * debian/apport/chromium-browser.py: update the apport hook to collect
    up-to-date information from the chromium snap (LP: #1993191)

 -- Nathan Pratta Teodosio <email address hidden> Mon, 17 Oct 2022 18:53:30 +0200

Changed in chromium-browser (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package chromium-browser - 1:85.0.4183.83-0ubuntu2.22.04.1

---------------
chromium-browser (1:85.0.4183.83-0ubuntu2.22.04.1) jammy; urgency=medium

  [ Olivier Tilloy ]
  * debian/apport/chromium-browser.py: update the apport hook to collect
    up-to-date information from the chromium snap (LP: #1993191)

 -- Nathan Pratta Teodosio <email address hidden> Mon, 17 Oct 2022 18:53:30 +0200

Changed in chromium-browser (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.