should put OOPS ID / URL in .uploaded file

Bug #1582470 reported by Selene ToyKeeper
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Whoopsie
Fix Released
Undecided
Brian Murray
whoopsie (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

To make it easier to investigate crash dumps, it would be helpful if whoopsie could put the OOPS ID and errors.ubuntu.com URL in the .uploaded file it creates after upload to indicate successful transfer.

This makes it much easier, for example, for a script to pull everything in /var/crash/ and get information relevant for submitting a bug report. At the moment, I instead try to parse the ID out of whoopsie.log and generate the URL, but that tends to be a bit brittle.

This is mostly to help with data collection during automated testing, but also to make manual investigations easier.

Related branches

Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

Looking through the code, it looks like this might require handle_response() to store the OOPS ID somewhere, so that parse_and_upload_report can access it (maybe), so that it could be accessed inside of process_existing_files(), so that it can be passed to mark_handled(), to make the data available when it creates the uploaded_file.

C isn't very amenable to returning multiple values, which makes it more awkward to pass this data back through a couple levels of nesting. Some sort of "last_oops_id" global would be fairly easy, but messy. Not really happy with either one, but I think I'll try the latter for now.

Revision history for this message
Selene ToyKeeper (toykeeper) wrote :

Looking around a bit more, the OOPS ID would potentially need to be accessed from a couple more places. I put together a very quick draft using a global, but haven't checked yet if it works.

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

I personally use 'journalctl -u whoopsie' to see what I've uploaded e.g.:

May 17 10:19:48 impulse whoopsie[28493]: [10:19:48] Parsing /var/crash/_usr_bin_nautilus.1000.crash.
May 17 10:19:48 impulse whoopsie[28493]: [10:19:48] Uploading /var/crash/_usr_bin_nautilus.1000.crash.
May 17 10:20:00 impulse whoopsie[28493]: [10:20:00] Sent; server replied with: No error
May 17 10:20:00 impulse whoopsie[28493]: [10:20:00] Response code: 200
May 17 10:20:00 impulse whoopsie[28493]: [10:20:00] Reported OOPS ID 9540a15e-1c53-11e6-a632-fa163eec78fa

But if you want to stick the OOPS ID in the .uploaded file that's fine with me.

Changed in whoopsie:
status: New → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package whoopsie - 0.2.63

---------------
whoopsie (0.2.63) disco; urgency=medium

  * Write the reported OOPS ID to the .uploaded file. (LP: #1582470)

 -- Brian Murray <email address hidden> Wed, 21 Nov 2018 12:42:23 -0800

Changed in whoopsie (Ubuntu):
status: New → Fix Released
Changed in whoopsie:
status: In Progress → 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.