all reports with LaunchpadPrivate in them are tagged need-$arch-retrace

Bug #2068933 reported by Brian Murray
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
New
Medium
Unassigned
apport (Ubuntu)
In Progress
Medium
Simon Chopin

Bug Description

I was recently reviewing the crash reports which the Launchpad retracers handle and was surprised to see a bunch of ubuntu-advantage-tools reports that retracing was tried for even though they had a ProblemType of Bug. Looking at the ubuntu-advantage-tools apport package hook we can see that all the LaunchpadPrivate is set to 1, then looking at `apport/crashdb_impl/launchpad.py` there is:

1083 if "DistroRelease" in report:
1084 if a and (
1085 "VmCore" in report
1086 or "CoreDump" in report
1087 or "LaunchpadPrivate" in report
1088 ):
1089 hdr["Private"] = "yes"
1090 hdr["Subscribers"] = report.get(
1091 "LaunchpadSubscribe",
1092 self.options.get("initial_subscriber", "apport"),
1093 )
1094 hdr["Tags"] += f" need-{a}-retrace"

Adding need-$arch-retrace is incorrect if the ProblemType is Bug.

Here are some example bugs:

https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2067076
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/2066231

tags: added: rls-nn-incoming
tags: added: foundations-todo
removed: rls-nn-incoming
Simon Chopin (schopin)
Changed in apport (Ubuntu):
assignee: nobody → Simon Chopin (schopin)
importance: Undecided → Critical
importance: Critical → Medium
status: New → Triaged
Revision history for this message
Brian Murray (brian-murray) wrote :

Is this planned on being worked on any time soon? The Launchpad apport retracer is regularly trying to retrace ubuntu-advantage-tool bug reports that do not need retracing.

Revision history for this message
Simon Chopin (schopin) wrote :

It's on my board for this pulse.

Revision history for this message
Simon Chopin (schopin) wrote :

I've looked a bit into it. It seems this has been going on for more than a decade, it might just be that so far most explicitly private reports we were getting were for crashes.

Just so that I'm clear, adding `apport` as a subscriber is needed for the retrace/duplicate bit, but not for the generic private case, right?

Revision history for this message
Brian Murray (brian-murray) wrote (last edit ):

I believe the ubuntu-advantage-tools is one of the first apport package hooks to be setting the LaunchpadPrivate variable so that would explain why this has never come up before.

Yes, ~apport needs to be subscribed to bug reports which need retracing and not generic private bug reports.

Revision history for this message
Simon Chopin (schopin) wrote :
Changed in apport (Ubuntu):
status: Triaged → In Progress
Benjamin Drung (bdrung)
Changed in apport:
milestone: none → 2.30.0
importance: Undecided → Medium
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.