Merge lp:~leannogasawara/arsenal/kernel into lp:arsenal/trunk

Proposed by Leann Ogasawara
Status: Merged
Merge reported by: Bryce Harrington
Merged at revision: not available
Proposed branch: lp:~leannogasawara/arsenal/kernel
Merge into: lp:arsenal/trunk
Diff against target: 487 lines (+125/-91)
6 files modified
contrib/arsenal_lib.py (+1/-1)
contrib/linux/process-confirmed-bugs.py (+8/-4)
contrib/linux/process-incomplete-bugs.py (+58/-54)
contrib/linux/process-new-bugs.py (+30/-18)
contrib/linux/process-triaged-bugs.py (+19/-11)
contrib/linux/retarget-new-bugs.py (+9/-3)
To merge this branch: bzr merge lp:~leannogasawara/arsenal/kernel
Reviewer Review Type Date Requested Status
Bryce Harrington Approve
Review via email: mp+14676@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi Bryce,

I've been hoarding patches for the kernel arsenal scripts which seems bad. It's better if I get these merged so others on the kernel team can review and use.

These patches only touch code under contrib/linux with the exception of one patch (rev 306):

revno: 306
committer: Leann Ogasawara <email address hidden>
branch nick: arsenal
timestamp: Mon 2009-11-09 18:24:08 -0800
message:
  contrib/arsenal_lib.py: Use display_name to set owner_firstname

lp:~leannogasawara/arsenal/kernel updated
308. By Leann Ogasawara

contrib/linux/retarget-new-bugs.py: check for kj-linux-meta tag
earlier. also transition bugs for linux-meta-fsl-imx51 and
linux-meta-mvl-dove.

Revision history for this message
Bryce Harrington (bryce) wrote :

Hi Leann,

Sorry, I didn't see the merge proposal until just now!

Thanks, it all looks good, and I've merged it into base.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'contrib/arsenal_lib.py'
--- contrib/arsenal_lib.py 2009-10-02 02:35:44 +0000
+++ contrib/arsenal_lib.py 2009-11-11 23:01:09 +0000
@@ -140,7 +140,7 @@
140 self.attachments = bug.attachments140 self.attachments = bug.attachments
141 self.description = bug.description.encode('utf-8')141 self.description = bug.description.encode('utf-8')
142 self.owner = bug.owner142 self.owner = bug.owner
143 self.owner_firstname = self.owner.name.split(' ')[0]143 self.owner_firstname = self.owner.display_name.split(' ')[0]
144 self.launchpad = launchpad144 self.launchpad = launchpad
145 return145 return
146146
147147
=== modified file 'contrib/linux/process-confirmed-bugs.py'
--- contrib/linux/process-confirmed-bugs.py 2009-09-30 22:15:59 +0000
+++ contrib/linux/process-confirmed-bugs.py 2009-11-11 23:01:09 +0000
@@ -37,12 +37,16 @@
37 break37 break
3838
39 bug = ArsenalBug(bugtask.bug, lp.launchpad)39 bug = ArsenalBug(bugtask.bug, lp.launchpad)
40 if opt_dryrun:
41 print "== Dry Run =="
42
40 print "https://bugs.edge.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title43 print "https://bugs.edge.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title
4144
42 if (bug.has_tag("review-request") or45 if (bug.has_tag("review-request") or
43 bug.has_tag("kj-omit") or46 bug.has_tag("kj-omit") or
44 bug.has_tag("ct-rev") or47 bug.has_tag("ct-rev") or
45 bug.has_tag("workflow") or48 bug.has_tag("workflow") or
49 bug.has_tag("xen") or
46 bug.has_tag("regression-proposed") or50 bug.has_tag("regression-proposed") or
47 bug.has_tag("regression-release") or51 bug.has_tag("regression-release") or
48 bug.has_tag("regression-update") or52 bug.has_tag("regression-update") or
@@ -50,9 +54,6 @@
50 print "Skipping, tagged: ", bug.bug.tags54 print "Skipping, tagged: ", bug.bug.tags
51 continue55 continue
5256
53 if opt_dryrun:
54 print "== Dry Run =="
55
56 # Check for old Confirmed bugs57 # Check for old Confirmed bugs
57 days = bug.age_last_message()58 days = bug.age_last_message()
58 if days > days_expired:59 if days > days_expired:
@@ -76,7 +77,10 @@
76 print " --> skipping, bug has an canonical-kernel-team assignee"77 print " --> skipping, bug has an canonical-kernel-team assignee"
77 assigned = True78 assigned = True
78 else:79 else:
79 for person in canonical_kernel_team.getMembersByStatus(status="Approved"):80 ckt = list(canonical_kernel_team.getMembersByStatus(status="Approved"))
81 ckt.extend(list(canonical_kernel_team.getMembersByStatus(status="Administrator")))
82
83 for person in ckt:
80 if bugtask.assignee.name == person.name:84 if bugtask.assignee.name == person.name:
81 print " --> skipping, assigned to", bugtask.assignee.name85 print " --> skipping, assigned to", bugtask.assignee.name
82 assigned = True86 assigned = True
8387
=== modified file 'contrib/linux/process-incomplete-bugs.py'
--- contrib/linux/process-incomplete-bugs.py 2009-09-30 22:15:59 +0000
+++ contrib/linux/process-incomplete-bugs.py 2009-11-11 23:01:09 +0000
@@ -20,18 +20,13 @@
20d = lp.load_project("ubuntu")20d = lp.load_project("ubuntu")
21canonical_kernel_team = lp.launchpad.people['canonical-kernel-team']21canonical_kernel_team = lp.launchpad.people['canonical-kernel-team']
22bug_limit = 10 # set to 0 or False for no buglimit22bug_limit = 10 # set to 0 or False for no buglimit
23kernel_janitor = lp.launchpad.people['kernel-janitor']
23total_count = 024total_count = 0
24message_close_incomplete = """This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.25message_close_incomplete = """This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.
2526
26[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]27[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]
27"""28"""
2829
29message_not_owner_logs = """Thanks for running apport-collect to attach the requested debug files. We are still waiting for the original bug reporter to attach their debug files so that we can confirm you are indeed seeing the same issue. If the original bug reporter does not attach their debug files within 7 days we will have you open a separate bug report. We'll keep you posted. Thanks for your patience.
30"""
31
32message_open_new_bug = """The original bug reporter has not attached their log files. Please open a new bug report and we'll track your issue there. Refer to https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies for insturctions on how to properly file a bug against the Ubuntu kernel. Thanks.
33"""
34
35try:30try:
36 for source_pkg in source_pkgs:31 for source_pkg in source_pkgs:
37 count = 032 count = 0
@@ -39,17 +34,22 @@
3934
40 src_pkg = d.getSourcePackage(name=source_pkg)35 src_pkg = d.getSourcePackage(name=source_pkg)
41 for bugtask in src_pkg.searchTasks(status="Incomplete (with response)", tags=["needs-kernel-logs", "needs-reporter-kernel-logs"]):36 for bugtask in src_pkg.searchTasks(status="Incomplete (with response)", tags=["needs-kernel-logs", "needs-reporter-kernel-logs"]):
37 print count, bug_limit
42 if bug_limit and count >= bug_limit:38 if bug_limit and count >= bug_limit:
43 print "Hit max number of bugs to process, exiting."39 print "Hit max number of bugs to process, exiting."
44 break40 break
4541
46 bug = ArsenalBug(bugtask.bug, lp.launchpad)42 bug = ArsenalBug(bugtask.bug, lp.launchpad)
43 if opt_dryrun:
44 print "== Dry Run=="
45
47 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title46 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title
4847
49 if (bug.has_tag("review-request") or48 if (bug.has_tag("review-request") or
50 bug.has_tag("kj-omit") or49 bug.has_tag("kj-omit") or
51 bug.has_tag("ct-rev") or50 bug.has_tag("ct-rev") or
52 bug.has_tag("workflow") or51 bug.has_tag("workflow") or
52 bug.has_tag("xen") or
53 bug.has_tag("regression-proposed") or53 bug.has_tag("regression-proposed") or
54 bug.has_tag("regression-release") or54 bug.has_tag("regression-release") or
55 bug.has_tag("regression-update") or55 bug.has_tag("regression-update") or
@@ -65,7 +65,10 @@
65 print " --> skipping, bug has an canonical-kernel-team assignee"65 print " --> skipping, bug has an canonical-kernel-team assignee"
66 assigned = True66 assigned = True
67 else:67 else:
68 for person in canonical_kernel_team.getMembersByStatus(status="Approved"):68 ckt = list(canonical_kernel_team.getMembersByStatus(status="Approved"))
69 ckt.extend(list(canonical_kernel_team.getMembersByStatus(status="Administrator")))
70
71 for person in ckt:
69 if bugtask.assignee.name == person.name:72 if bugtask.assignee.name == person.name:
70 print " --> skipping, assigned to", bugtask.assignee.name73 print " --> skipping, assigned to", bugtask.assignee.name
71 assigned = True74 assigned = True
@@ -73,8 +76,6 @@
73 if assigned:76 if assigned:
74 continue77 continue
7578
76 if opt_dryrun:
77 print "== Dry Run=="
78 # If has tag needs-*, see if those are attached now79 # If has tag needs-*, see if those are attached now
79 # If so, remove tag. If no more needs-* tags, set to Confirmed80 # If so, remove tag. If no more needs-* tags, set to Confirmed
80 needs_kernel_logs = True81 needs_kernel_logs = True
@@ -83,52 +84,54 @@
8384
84 # Check if apport-collect was ran85 # Check if apport-collect was ran
85 days = 086 days = 0
86 for msg in reversed(messages):87 try:
87 subject = str(msg.subject)88 last_msg = ""
88 if subject.find("apport-collect data") > -1:89 for msg in reversed(messages):
89 # Handle the case were apport-collect was run by someone90 if last_msg == "":
90 # other than the original bug reporter91 last_msg = msg.content
91 if (msg.owner_link != bug.bug.owner_link) and not bug.has_tag("needs-reporter-kernel-logs"):92 subject = str(msg.subject)
92 greeting = "Hi " + msg.owner.name.split(' ')[0] + ",\n\n"93 if subject.find("apport-collect data") > -1:
93 comment = greeting + message_not_owner_logs94 # Handle the case were apport-collect was run by someone
94 if opt_dryrun:95 # other than the original bug reporter
95 print " --> tag remove needs-kernel-logs"96 if (msg.owner_link != bug.bug.owner_link) and not bug.has_tag("needs-reporter-kernel-logs"):
96 print " --> tag needs-reporter-kernel-logs"97 print " --> Non-reporter attached logs"
97 print " --> Msg:", comment98 print last_msg.encode('utf-8')
99 elif bug.has_tag("needs-reporter-kernel-logs"):
100 continue
101 # Set bug status to Confirmed and remove needs-kernel-logs tag
98 else:102 else:
99 bug.remove_tag("needs-kernel-logs")103 if bug.has_tag("needs-kernel-logs"):
100 bug.append_tag("needs-reporter-kernel-logs")104 print " --> remove tag needs-kernel-logs"
101 bug.append_comment(comment)105 if bug.has_tag("needs-reporter-kernel-logs"):
102 elif bug.has_tag("needs-reporter-kernel-logs"):106 print " --> remove tag needs-reporter-kernel-logs"
103 days = bug.age_last_message()107 if not bug.has_tag("kj-triage"):
104 continue108 print " --> add tag kj-triage"
105 # Set bug status to Confirmed and remove needs-kernel-logs tag109 print " --> Confirmed"
106 else:110 if bugtask.importance == "Undecided":
107 if bug.has_tag("needs-kernel-logs"):111 print " --> set Medium Importance"
108 print " --> remove tag needs-kernel-logs"112 if not opt_dryrun:
109 if bug.has_tag("needs-reporter-kernel-logs"):113 try:
110 print " --> remove tag needs-reporter-kernel-logs"114 bug.remove_tag("needs-kernel-logs")
111 print " --> Confirmed"115 bug.remove_tag("needs-reporter-kernel-logs")
112 if not opt_dryrun:116 bugtask.transitionToStatus(status = "Confirmed")
113 try:117 if bugtask.importance == "Undecided":
114 bug.remove_tag("needs-kernel-logs")118 bugtask.transitionToImportance(importance = "Medium")
115 bug.remove_tag("needs-reporter-kernel-logs")119 except:
116 bugtask.transitionToStatus(status = "Confirmed")120 print " ERROR: Failed to update bug ", bug.id
117 except:121 print "New status was: Confirmed, Medium"
118 print " ERROR: Failed to update bug ", bug.id122 raise
119 print "New status was: Confirmed"123 needs_kernel_logs = False
120 raise124 count += 1
121 needs_kernel_logs = False125 total_count += 1
122 count += 1126 break
123 total_count += 1127 elif msg.owner.name == kernel_janitor.name:
124 break128 print " --> no logs since kj commented, skipping"
129 print last_msg.encode('utf-8')
130 break
131 except HTTPError, e:
132 print e.content
133 continue
125134
126 if days > 7:
127 print " --> non-reporter apport-collect over 7 days ago"
128 if opt_dryrun:
129 print " --> Msg:", message_open_new_bug
130 else:
131 bug.append_comment(message_open_new_bug)
132 count += 1135 count += 1
133 total_count += 1136 total_count += 1
134 # Requires triager to review137 # Requires triager to review
@@ -153,11 +156,12 @@
153 print "Hit max number of bugs to process, exiting."156 print "Hit max number of bugs to process, exiting."
154 break157 break
155 bug = ArsenalBug(bugtask.bug, lp.launchpad)158 bug = ArsenalBug(bugtask.bug, lp.launchpad)
156 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title
157159
158 if opt_dryrun:160 if opt_dryrun:
159 print "== Dry Run=="161 print "== Dry Run=="
160162
163 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title
164
161 if len(bug.bug.bug_tasks) > 2:165 if len(bug.bug.bug_tasks) > 2:
162 print " --> Skipping; bug_tasks ==", len(bug.bug.bug_tasks)166 print " --> Skipping; bug_tasks ==", len(bug.bug.bug_tasks)
163# if opt_dryrun:167# if opt_dryrun:
164168
=== modified file 'contrib/linux/process-new-bugs.py'
--- contrib/linux/process-new-bugs.py 2009-09-30 22:15:59 +0000
+++ contrib/linux/process-new-bugs.py 2009-11-11 23:01:09 +0000
@@ -87,7 +87,7 @@
87 },87 },
88]88]
8989
90message_all = """Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . Please then run following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.90message_all = """Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.
9191
92apport-collect -p %s %d92apport-collect -p %s %d
9393
@@ -101,7 +101,7 @@
101Thanks in advance.101Thanks in advance.
102"""102"""
103103
104message_old_bug = """This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .104message_old_bug = """This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic .
105105
106If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.106If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.
107107
@@ -112,7 +112,7 @@
112Thanks in advance.112Thanks in advance.
113"""113"""
114114
115message_sound_bug = """Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . Please then run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.115message_sound_bug = """Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic . If the issue remains, please run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.
116116
117apport-collect -p alsa-base %d117apport-collect -p alsa-base %d
118118
@@ -121,7 +121,7 @@
121Thanks in advance.121Thanks in advance.
122"""122"""
123123
124message_suspend_hibernate_bug ="""Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/ . However, note you can only test Suspend when using a LiveCD. If you could run the following command from a Terminal (Applications->Accessories->Terminal) it will automatically gather and attach updated debug information to this report.124message_suspend_hibernate_bug ="""Please be sure to confirm this issue exists with the latest development release of Ubuntu. ISO CD images are available from http://cdimage.ubuntu.com/releases/karmic . However, note you can only test Suspend, not Hibernate, when using a LiveCD. If the issue remains, run the following command from a Terminal (Applications->Accessories->Terminal) it will automatically gather and attach updated debug information to this report.
125125
126apport-collect -p %s %d126apport-collect -p %s %d
127127
@@ -220,24 +220,35 @@
220 count=0220 count=0
221 print "Processing ", source_pkg221 print "Processing ", source_pkg
222 s = d.getSourcePackage(name = source_pkg)222 s = d.getSourcePackage(name = source_pkg)
223
223 # Eventually update the searchTasks for tag negated search to avoid224 # Eventually update the searchTasks for tag negated search to avoid
224 # checking for "kj-omit", "workflow", "review-request", and "kj-triage" below225 # checking for "kj-omit", "workflow", "review-request", and "kj-triage" below
225 for bugtask in s.searchTasks(status="New"):226 new_tasks = s.searchTasks(status="New")
227 for bugtask in new_tasks:
226 if bug_limit and count >= bug_limit:228 if bug_limit and count >= bug_limit:
227 print "Hit max number of bugs to process, exiting."229 print "Hit max number of bugs to process, exiting."
228 break230 break
229231
230 bug = ArsenalBug(bugtask.bug, lp.launchpad)232 bug = ArsenalBug(bugtask.bug, lp.launchpad)
233 if opt_dryrun:
234 print "== Dry Run =="
235
231 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", str(bug.title)236 print "https://bugs.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", str(bug.title)
232 reply = ArsenalReply(bug)237 reply = ArsenalReply(bug)
233 logs_complete = False238 logs_complete = False
234239
235 # TODO: These bugs cause launchpad to issue a 500 error for some reason240 # TODO: These bugs cause launchpad to issue a 500 error for some reason
236 if bug.id == 337926 or bug.id == 377090:241 if bug.id == 337926 or bug.id == 377090:
237 continue242 print "skipping ", bug.id
238243 continue
239 # TODO: If a bug is nomnated, skip it244
245 if "failed to install/upgrade" in bug.title:
246 print " --> skipping"
247 continue
248
249 # TODO: If a bug is nominated, skip it
240 if 0 == 1:250 if 0 == 1:
251 print "nominated ", bug.id
241 continue252 continue
242253
243 # Skip bugs we don't want to handle automatically254 # Skip bugs we don't want to handle automatically
@@ -246,6 +257,7 @@
246 bug.has_tag("ct-rev") or257 bug.has_tag("ct-rev") or
247 bug.has_tag("review-request") or258 bug.has_tag("review-request") or
248 bug.has_tag("kj-triage") or259 bug.has_tag("kj-triage") or
260 bug.has_tag("xen") or
249 bug.has_tag("regression-proposed") or261 bug.has_tag("regression-proposed") or
250 bug.has_tag("regression-release") or262 bug.has_tag("regression-release") or
251 bug.has_tag("regression-update") or263 bug.has_tag("regression-update") or
@@ -261,7 +273,10 @@
261 print " --> skipping, bug has an canonical-kernel-team assignee"273 print " --> skipping, bug has an canonical-kernel-team assignee"
262 assigned = True274 assigned = True
263 else:275 else:
264 for person in canonical_kernel_team.getMembersByStatus(status="Approved"):276 ckt = list(canonical_kernel_team.getMembersByStatus(status="Approved"))
277 ckt.extend(list(canonical_kernel_team.getMembersByStatus(status="Administrator")))
278
279 for person in ckt:
265 if bugtask.assignee.name == person.name:280 if bugtask.assignee.name == person.name:
266 print " --> skipping, assigned to", bugtask.assignee.name281 print " --> skipping, assigned to", bugtask.assignee.name
267 assigned = True282 assigned = True
@@ -307,9 +322,6 @@
307 total_count += 1322 total_count += 1
308 continue323 continue
309324
310 if opt_dryrun:
311 print "== Dry Run =="
312
313 if bug.has_tag("apport-package") or bug.has_tag("apport-kerneloops"):325 if bug.has_tag("apport-package") or bug.has_tag("apport-kerneloops"):
314 logs_complete = True326 logs_complete = True
315327
@@ -377,7 +389,7 @@
377 if bug.age_last_message() > days_old and not bug.has_tag("apport-package"):389 if bug.age_last_message() > days_old and not bug.has_tag("apport-package"):
378 print " --> Old bug over ", bug.age_last_message(), " days"390 print " --> Old bug over ", bug.age_last_message(), " days"
379 # After Karmic, s/linux-image-`uname -r`/source_pkg/391 # After Karmic, s/linux-image-`uname -r`/source_pkg/
380 reply.set_message(message_old_bug % ("linux-image-`uname -r`", bug.id))392 reply.set_message(message_old_bug % (source_pkg, bug.id))
381 if opt_dryrun:393 if opt_dryrun:
382 print " --> tag needs-kernel-logs"394 print " --> tag needs-kernel-logs"
383 print " --> tag needs-upstream-testing"395 print " --> tag needs-upstream-testing"
@@ -396,12 +408,12 @@
396 elif len(bug.attachments) == 0:408 elif len(bug.attachments) == 0:
397 print " --> [No attachments]"409 print " --> [No attachments]"
398 # After Karmic, s/linux-image-`uname -r`/source_pkg/410 # After Karmic, s/linux-image-`uname -r`/source_pkg/
399 if regex_subj['sound'].search(bug.title):411 if regex_subj['sound'].search(bug.title) or bug.has_tag("kernel-sound"):
400 reply.set_message(message_sound_bug % (bug.id))412 reply.set_message(message_sound_bug % (bug.id))
401 elif regex_subj['suspend'].search(bug.title) or regex_subj['hibernate'].search(bug.title):413 elif regex_subj['suspend'].search(bug.title) or regex_subj['hibernate'].search(bug.title):
402 reply.set_message(message_suspend_hibernate_bug % ("linux-image-`uname -r`", bug.id))414 reply.set_message(message_suspend_hibernate_bug % (source_pkg, bug.id))
403 else:415 else:
404 reply.set_message(message_all % ("linux-image-`uname -r`", bug.id))416 reply.set_message(message_all % (source_pkg, bug.id))
405417
406 if opt_dryrun:418 if opt_dryrun:
407 print " --> tag needs-kernel-logs"419 print " --> tag needs-kernel-logs"
@@ -445,9 +457,9 @@
445 logs_complete = True457 logs_complete = True
446 else:458 else:
447 if regex_subj['suspend'].search(bug.title) or regex_subj['hibernate'].search(bug.title):459 if regex_subj['suspend'].search(bug.title) or regex_subj['hibernate'].search(bug.title):
448 reply.set_message(message_suspend_hibernate_bug % ("linux-image-`uname -r`", bug.id))460 reply.set_message(message_suspend_hibernate_bug % (source_pkg, bug.id))
449 else:461 else:
450 reply.set_message(message_all % ("linux-image-`uname -r`", bug.id))462 reply.set_message(message_all % (source_pkg, bug.id))
451 else:463 else:
452 if (has_file['Amixer'] and has_file['AplayDevice'] and has_file['Codec0']) or has_file['unknown']:464 if (has_file['Amixer'] and has_file['AplayDevice'] and has_file['Codec0']) or has_file['unknown']:
453 logs_complete = True465 logs_complete = True
454466
=== modified file 'contrib/linux/process-triaged-bugs.py'
--- contrib/linux/process-triaged-bugs.py 2009-09-30 22:15:59 +0000
+++ contrib/linux/process-triaged-bugs.py 2009-11-11 23:01:09 +0000
@@ -16,7 +16,7 @@
16source_pkgs = sys.argv[1:]16source_pkgs = sys.argv[1:]
17lp = LaunchpadService()17lp = LaunchpadService()
18d = lp.load_project("ubuntu")18d = lp.load_project("ubuntu")
1919bug_limit = 5
20total_count = 020total_count = 0
21message_old_triaged = """This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.21message_old_triaged = """This bug report was marked as Triaged a while ago but has not had any updated comments for quite some time. Please let us know if this issue remains in the current Ubuntu release, http://www.ubuntu.com/getubuntu/download . If the issue remains, click on the current status under the Status column and change the status back to "New". Thanks.
2222
@@ -27,9 +27,19 @@
27 count = 027 count = 0
28 print "Processing ", source_pkg28 print "Processing ", source_pkg
2929
30 src_pkg = d.getSourcePackage(name=source_pkg)30 try:
31 src_pkg = d.getSourcePackage(name=source_pkg)
32 except HTTPError, e:
33 print e.content
34 print "continuing on . . ."
31 for bugtask in src_pkg.searchTasks(status="Triaged"):35 for bugtask in src_pkg.searchTasks(status="Triaged"):
32 bug = ArsenalBug(bugtask.bug, lp.launchpad)36 bug = ArsenalBug(bugtask.bug, lp.launchpad)
37 if bug_limit and count >= bug_limit:
38 print "Hit max number of bugs to process, exiting."
39 break
40
41 if opt_dryrun:
42 print "== Dry Run =="
3343
34 print "https://bugs.edge.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title44 print "https://bugs.edge.launchpad.net/ubuntu/+bug/%d" % bug.id, " ", bugtask.status, " ", bug.title
3545
@@ -37,6 +47,7 @@
37 bug.has_tag("kj-omit") or47 bug.has_tag("kj-omit") or
38 bug.has_tag("ct-rev") or48 bug.has_tag("ct-rev") or
39 bug.has_tag("workflow") or49 bug.has_tag("workflow") or
50 bug.has_tag("xen") or
40 bug.has_tag("regression-proposed") or51 bug.has_tag("regression-proposed") or
41 bug.has_tag("regression-release") or52 bug.has_tag("regression-release") or
42 bug.has_tag("regression-update") or53 bug.has_tag("regression-update") or
@@ -53,16 +64,13 @@
53 # Expire bugs which have gone more than 120 days without an64 # Expire bugs which have gone more than 120 days without an
54 # updated comment65 # updated comment
55 if days > days_expired:66 if days > days_expired:
56 if opt_dryrun:67 if not bug.has_tag("kj-triage"):
57 print "== Dry Run =="68 print " --> tagged kj-triage"
58 if not bug.has_tag("kj-triage"):69 print " --> Incomplete"
59 print " --> tagged kj-triage"70 print " --> Msg was: ", message_old_triaged
60 print " --> Incomplete"71 if not opt_dryrun:
61 print " --> Msg was: ", message_old_triaged
62 else:
63 bug.append_comment(message_old_triaged)72 bug.append_comment(message_old_triaged)
64 if not bug.has_tag("kj-triage"):73 bug.append_tag("kj-triage")
65 bug.append_tag("kj-triage")
66 bugtask.transitionToStatus(status = "Incomplete")74 bugtask.transitionToStatus(status = "Incomplete")
6775
68 count += 176 count += 1
6977
=== modified file 'contrib/linux/retarget-new-bugs.py'
--- contrib/linux/retarget-new-bugs.py 2009-09-30 22:15:59 +0000
+++ contrib/linux/retarget-new-bugs.py 2009-11-11 23:01:09 +0000
@@ -18,14 +18,18 @@
18 def transition(self, from_task, to_task, comment):18 def transition(self, from_task, to_task, comment):
19 old_task = distro.getSourcePackage(name=from_task)19 old_task = distro.getSourcePackage(name=from_task)
20 new_task = distro.getSourcePackage(name=to_task)20 new_task = distro.getSourcePackage(name=to_task)
21 collection = old_task.searchTasks(status="New")21 collection = old_task.searchTasks()
22 count = 122 count = 1
23 for bug_task in collection:23 for bug_task in collection:
24 bug = ArsenalBug(bug_task.bug, arsenal.launchpad)24 bug = ArsenalBug(bug_task.bug, lp.launchpad)
25 print count, " - ", bug.id, " ", bug_task.status, " ", bug.title25 print count, " - ", bug.id, " ", bug_task.status, " ", bug.title
26 count = count + 126 count = count + 1
27 skip = False27 skip = False
2828
29 if bug.has_tag("kj-linux-meta"):
30 print "Tagged kj-linux-meta, skipping."
31 continue
32
29 # check if bug already has to_task open33 # check if bug already has to_task open
30 if len(bug_task.bug.bug_tasks) > 1:34 if len(bug_task.bug.bug_tasks) > 1:
31 for task in bug_task.bug.bug_tasks:35 for task in bug_task.bug.bug_tasks:
@@ -49,10 +53,12 @@
4953
50This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue.54This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue.
5155
52If this bug really is a bug in the linux-meta package you can move it back to linux-meta and set the Status to Confirmed, or contact us on the #ubuntu-kernel channel on the FreeNode IRC server. Thanks.56If this bug really is a bug in the linux-meta package you can move it back to linux-meta and tag it kj-linux-meta, or contact us on the #ubuntu-kernel channel on the FreeNode IRC server. Thanks.
53'''57'''
5458
55 bug_task = BugTask()59 bug_task = BugTask()
56 bug_task.transition("linux-meta", "linux", comment)60 bug_task.transition("linux-meta", "linux", comment)
61 bug_task.transition("linux-meta-fsl-imx51", "linux-fsl-imx51", comment)
62 bug_task.transition("linux-meta-mvl-dove", "linux-mvl-dove", comment)
5763
58# vi:set ts=4 sw=4 expandtab:64# vi:set ts=4 sw=4 expandtab:

Subscribers

People subscribed via source and target branches

to status/vote changes: