[Collab-qa-commits] r783 - bapase/rm_pkgs

lucas at alioth.debian.org lucas at alioth.debian.org
Sun Apr 13 18:45:34 UTC 2008


Author: lucas
Date: 2008-04-13 18:45:33 +0000 (Sun, 13 Apr 2008)
New Revision: 783

Modified:
   bapase/rm_pkgs/README
   bapase/rm_pkgs/mass-close
Log:
added more info on rm_pkgs

Modified: bapase/rm_pkgs/README
===================================================================
--- bapase/rm_pkgs/README	2008-04-13 18:24:24 UTC (rev 782)
+++ bapase/rm_pkgs/README	2008-04-13 18:45:33 UTC (rev 783)
@@ -1,21 +1,88 @@
 Handling bugs from removed packages
 ===================================
 
-1) Get the list of "interesting" packages:
-use the list generated by bapase/bugs_rm_pkgs.rb
-lists bugs that:
+Bugs filed against packages removed from testing and unstable must be closed,
+so they can be properly archived. To deal with version-tracking, the version
+must be <last version in Debian>+rm.
+
+I wrote a few dirty scripts to help automate this task.
+
+First, there's svn.d.o/collab-qa/bapase/bugs_rm_pkgs.rb. This script generates
+http://qa.debian.org/~lucas/bapase/bugs_rm_pkgs.txt (updated every 6 hours).
+This script lists bugs that:
  - are not marked as done
  - don't affect testing, unstable or experimental
  - don't  belong to a package in testing, unstable or experimental
 
-For each package, check:
+This is only a list of good candidates. Many of those bugs shouldn't be closed!
+
+Then, someone needs to take a package from the list, and check:
 - if the bugs could be reassigned to another package (maybe discuss with the
 new package's maintainers). for example, bugs in linux-image-2.6.22-3-686
 might have to be reassigned to another kernel package
-- find the removal in removals*txt, find the removal bug, read the removal bug
-- close all bugs with a Version: tag, using:
-  <last version in Debian>+rm as version string
-(using the mass-close script helps)
+- or find the removal in removals*txt, find the removal bug, read the removal bug
 
+If the bugs should be closed, the mass-close script (in .....bapase/rm_pkgs/)
+can help. This script fetches all the open bugs for a given package, then opens
+an editor so you can edit the mail that will be sent to close the bugs. Then,
+the mail is sent to each bug (one mail per bug).
+
+in bapase/rm_pkgs, there's also get-removals.txt, to fetch all the lists of
+removals from ftp-master.
+
+Example:
+tkirc was removed from testing and unstable in 2005. Its removal bug is #328601. Grepping removals*txt reveals:
+removals-2005.txt-[Date: Wed, 12 Oct 2005 15:05:14 -0700] [ftpmaster: Joerg Jaspert]
+removals-2005.txt-Removed the following packages from unstable:
+removals-2005.txt-
+removals-2005.txt:     tkirc |    1.202-8 | source, all
+removals-2005.txt-Closed bugs: 328601
+removals-2005.txt-
+removals-2005.txt-------------------- Reason -------------------
+removals-2005.txt-RoQA; unused, out of date, alternatives available
+removals-2005.txt-----------------------------------------------
+
+So I run ./mass-close:
+collab-qa/bapase/rm_pkgs$ ./mass-close 
+Usage: mass-close sourcepackage last-version-in-debian removal-bugno
++rm will be added automatically.
+please set the RMFROM and RMSIG env variables
+
+collab-qa/bapase/rm_pkgs$ cat config-lucas 
+export RMFROM="Lucas Nussbaum <lucas at lucas-nussbaum.net>"
+export RMSIG="-- 
+Lucas"
+
+collab-qa/bapase/rm_pkgs$ source config-lucas
+
+collab-qa/bapase/rm_pkgs$ ./mass-close tkirc 1.202-8 328601
+------bugs for tkirc-----
+21906 tkirc normal forwarded tkirc: connect list is badly placed
+183012 tkirc wishlist pending Could use the irc alternative
+71846 tkirc normal pending It doesn't correctly get dcc request
+66022 tkirc normal forwarded tkirc: Topic is limited to 80 chars. That sucks
+24041 tkirc wishlist forwarded tkirc: Problems with long nicks
+70457 tkirc wishlist pending New Tkirc 2.42 avaiable as source on http://www.netsplit.de/tkirc2/
+55459 tkirc normal forwarded tkirc can't let me join using /msg chanserv invite #channame
+54767 tkirc normal forwarded doesn't terminate zombie childs
+57209 tkirc normal forwarded tkirc: It doesnt work right if it connects too fast right after tkirc is opened
+-- press enter to continue --
+
+<$EDITOR is started>
+-- press enter to send the mails --
+
+Sending mail to close #21906
+Sending mail to close #183012
+Sending mail to close #71846
+Sending mail to close #66022
+Sending mail to close #24041
+Sending mail to close #70457
+Sending mail to close #55459
+Sending mail to close #54767
+Sending mail to close #57209
+
+There are currently ~3200 bugs that might need to be closed. Send
+suggestions/comments to <lucas at debian.org>.
+
 TODO:
 write a script to mass-reassign bugs using a template

Modified: bapase/rm_pkgs/mass-close
===================================================================
--- bapase/rm_pkgs/mass-close	2008-04-13 18:24:24 UTC (rev 782)
+++ bapase/rm_pkgs/mass-close	2008-04-13 18:45:33 UTC (rev 783)
@@ -1,8 +1,12 @@
 #!/usr/bin/ruby -w
-#
-# Usage: mass-close sourcepackage last-version-in-debian removal-bugno
-# +rm will be added automatically.
 
+if ARGV.length != 3
+  puts "Usage: mass-close sourcepackage last-version-in-debian removal-bugno"
+  puts "+rm will be added automatically."
+  puts "please set the RMFROM and RMSIG env variables"
+  exit(1)
+end
+
 require 'pp'
 require 'soap/rpc/driver'
 bts = SOAP::RPC::Driver::new('http://bugs.debian.org/cgi-bin/soap.cgi', '/Debbugs/SOAP')
@@ -42,8 +46,8 @@
 against it.
 
 For more information about this package's removal, read
-http://bugs.debian.org/#{RMBUG} . That bug might the reasons why this
-package was removed, and suggestions of possible replacements.
+http://bugs.debian.org/#{RMBUG} . That bug might give the reasons why
+this package was removed, and suggestions of possible replacements.
 
 Don't hesitate to reply to this mail if you have any question.
 
@@ -57,7 +61,10 @@
 end
 system("#{ed} #{tmp}")
 s = IO::read(tmp)
+puts "-- press enter to send the mails --"
+STDIN.readline
 bugs.each do |b|
+  puts "Sending mail to close ##{b}"
   if SENDMAIL
     f = IO::popen("/usr/sbin/sendmail -t", "w")
   else




More information about the Collab-qa-commits mailing list