[oe-commits] org.oe.dev sepukku: don't log html to file, log more usefull stuff. Debug now looks like:
koen commit
openembedded-commits at lists.openembedded.org
Mon Nov 19 08:56:09 UTC 2007
sepukku: don't log html to file, log more usefull stuff. Debug now looks like:
Logged into the box
Adding log file /data/build/koen/OE/build/tmp/angstrom/work/arm-oabi-angstrom-linux/failme-1.0-r0/temp/log.do_configure.23635
Trying http://bugs.openembedded.org/buglist.cgi?product=Openembedded&component=build&short_desc_type=substring&short_desc=failme-1.0-r0-do_configure
Result of bug search is
Bug is open: False and bug number: 2747
Reopened the bug #2747
Got exception in poster.open( attach_query, param )
Failed to attach the build log for bug #2747
Author: koen at openembedded.org
Branch: org.openembedded.dev
Revision: cfdd6307d29a6d5320a2c3473f13af97f3274f67
ViewMTN: http://monotone.openembedded.org/revision/info/cfdd6307d29a6d5320a2c3473f13af97f3274f67
Files:
1
classes/seppuku.bbclass
Diffs:
#
# mt diff -r2a0cadd6e23ea51cf4edf29fd39c37951a1c3888 -rcfdd6307d29a6d5320a2c3473f13af97f3274f67
#
#
#
# patch "classes/seppuku.bbclass"
# from [600990318f058b4d0322d76c901d7805b090a8c3]
# to [93b34701009f7097b6eb00cde7d926bf26754c58]
#
============================================================
--- classes/seppuku.bbclass 600990318f058b4d0322d76c901d7805b090a8c3
+++ classes/seppuku.bbclass 93b34701009f7097b6eb00cde7d926bf26754c58
@@ -140,11 +140,11 @@ def seppuku_find_bug_report(debug_file,
if len(scanner.result()) == 0:
print >> debug_file, "Scanner failed to scan the html site"
print >> debug_file, "%(query)sproduct=%(product)s&component=%(component)s&short_desc_type=substring&short_desc=%(bugname)s" % vars()
- print >> debug_file, txt
+ #print >> debug_file, txt
return (False,None)
else: # silently pick the first result
print >> debug_file, "Result of bug search is "
- print >> debug_file, txt
+ #print >> debug_file, txt
(number,status) = scanner.result()[0]
return (not status in ["CLOS", "RESO", "VERI"],number)
@@ -237,7 +237,8 @@ def seppuku_create_attachment(debug, pos
if not bug_number:
import bb
bb.note("Can't create an attachment, no bugnumber passed to method")
- return False
+ print >> debug, "Can't create an attachment, no bugnumber passed to method"
+ return False
import urllib2
param = { "bugid" : bug_number, "action" : "insert", "data" : file, "description" : "Build log", "ispatch" : "0", "contenttypemethod" : "list", "contenttypeselection" : "text/plain", "comment" : text }
@@ -250,12 +251,15 @@ def seppuku_create_attachment(debug, pos
return False
except Exception, e:
print e
- return False
+ print >> debug, "Got exception in poster.open( attach_query, param )"
+ return False
- print >> debug, result.read()
+ txt = result.read()
if result.code != 200:
+ print >> debug, "Got bad return code (%s)" % result.code
return False
else:
+ print >> debug, "Got good return code (200)"
return True
@@ -361,11 +365,11 @@ python seppuku_eventhandler() {
if bug_number and file:
if not seppuku_create_attachment(debug_file, poster, attach, product, component, bug_number, text, file):
- print >> debug_file, "Failed to attach the build log for bug #%" % bug_number
+ print >> debug_file, "Failed to attach the build log for bug #%s" % bug_number
else:
print >> debug_file, "Created an attachment for '%s' '%s' '%s'" % (product, component, bug_number)
else:
- print >> debug_file, "Not trying to create an attachment for bug #%" % bug_number
+ print >> debug_file, "Not trying to create an attachment for bug #%s" % bug_number
return NotHandled
}
More information about the Openembedded-commits
mailing list