Run cronscripts/check-teamparticipation.py on production and make its output more visible

Bug #597208 reported by Guilherme Salgado
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Low
Unassigned

Bug Description

That script checks for inconsistencies between the TeamParticipation and TeamMembership tables but currently we only run it as part of the staging_restore.sh cronjob. We should run it on production and make its output more visible by sending it as a separate email to launchpad-error-reports (or something like that).

If we don't do that, one has to dig through the (huge) email report from staging_restore.sh to find the teamparticipation checks, which look like this:
Tue Jun 22 04:32:03 BST 2010 Check team participation
2010-06-22 03:32:30 WARNING Some people/teams are not members of themselves: [(1043028, u'removed1043028')]

BTW, before we set it up on production, it's probably a good idea to delete the Person entry with ID 1043028.

Gary Poster (gary)
Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Guilherme Salgado (salgado) wrote :

A recent run of the script is showing a bunch of spurious team participation records: https://pastebin.canonical.com/37715/

They might have been caused by recent changes to the code which maintains TeamParticipation as this is something we haven't seen in the past.

Curtis Hovey (sinzui)
affects: launchpad-foundations → launchpad-registry
Revision history for this message
Curtis Hovey (sinzui) wrote :

I deleted mailing-list-beta-testers myself. This is a bug in the delete rules. I assumed something like this could not happen since delete is a subclass of merge where the destination team is ~registry. This issue is a separate bug from this reporting bug.

Curtis Hovey (sinzui)
Changed in launchpad-registry:
importance: Medium → Low
Curtis Hovey (sinzui)
tags: added: teams
Stuart Bishop (stub)
Changed in launchpad:
status: Triaged → 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.