1
edit
Changes
New page: ==First attempt at logging== This patch can be applied to buildbot-0.7.9 to enable build-logs to use the format <pre> 1233811875.619101 | 'local-slave' | local-osx | 41 | pulling from http...
==First attempt at logging==
This patch can be applied to buildbot-0.7.9 to enable build-logs to use the format
<pre>
1233811875.619101 | 'local-slave' | local-osx | 41 | pulling from http://hg.mozilla.org/mozilla-central/
1233811875.9946001 | 'local-slave' | local-osx | 41 | searching for changes
1233811878.362067 | 'local-slave' | local-osx | 41 | adding changesets
1233811878.373631 | 'local-slave' | local-osx | 41 | adding manifests
1233811878.7630169 | 'local-slave' | local-osx | 41 | adding file changes
1233811881.238174 | 'local-slave' | local-osx | 41 | added 2 changesets with 4 changes to 4 files
</pre>
The format is unixtime | build slave name | builder name | build number | output <br />
The patch is applied against http://downloads.sourceforge.net/buildbot/buildbot-0.7.9.tar.gz<br />
[[Image:Timestamp.patch.zip]]
<pre>diff -r a9c16958d5dc buildbot/buildbot/status/builder.py
--- a/buildbot/buildbot/status/builder.py Thu Feb 05 00:37:33 2009 -0500
+++ b/buildbot/buildbot/status/builder.py Thu Feb 05 00:39:45 2009 -0500
@@ -393,9 +393,9 @@
self.length += len(text)
def addStdout(self, text):
- self.addEntry(STDOUT, text)
+ self.addEntry(STDOUT, repr(time()) + ' | ' + repr(self.getStep().build.slavename) + ' | ' + self.getStep().build.getBuilder().getName() + ' | ' + repr(self.getStep().build.getNumber()) + ' | ' + text + '\n')
def addStderr(self, text):
- self.addEntry(STDERR, text)
+ self.addEntry(STDERR, repr(time()) + ' | ' + repr(self.getStep().build.slavename) + ' | ' + self.getStep().build.getBuilder().getName() + ' | ' + repr(self.getStep().build.getNumber()) + ' | ' + text + '\n')
def addHeader(self, text):
self.addEntry(HEADER, text)
</pre>
This patch can be applied to buildbot-0.7.9 to enable build-logs to use the format
<pre>
1233811875.619101 | 'local-slave' | local-osx | 41 | pulling from http://hg.mozilla.org/mozilla-central/
1233811875.9946001 | 'local-slave' | local-osx | 41 | searching for changes
1233811878.362067 | 'local-slave' | local-osx | 41 | adding changesets
1233811878.373631 | 'local-slave' | local-osx | 41 | adding manifests
1233811878.7630169 | 'local-slave' | local-osx | 41 | adding file changes
1233811881.238174 | 'local-slave' | local-osx | 41 | added 2 changesets with 4 changes to 4 files
</pre>
The format is unixtime | build slave name | builder name | build number | output <br />
The patch is applied against http://downloads.sourceforge.net/buildbot/buildbot-0.7.9.tar.gz<br />
[[Image:Timestamp.patch.zip]]
<pre>diff -r a9c16958d5dc buildbot/buildbot/status/builder.py
--- a/buildbot/buildbot/status/builder.py Thu Feb 05 00:37:33 2009 -0500
+++ b/buildbot/buildbot/status/builder.py Thu Feb 05 00:39:45 2009 -0500
@@ -393,9 +393,9 @@
self.length += len(text)
def addStdout(self, text):
- self.addEntry(STDOUT, text)
+ self.addEntry(STDOUT, repr(time()) + ' | ' + repr(self.getStep().build.slavename) + ' | ' + self.getStep().build.getBuilder().getName() + ' | ' + repr(self.getStep().build.getNumber()) + ' | ' + text + '\n')
def addStderr(self, text):
- self.addEntry(STDERR, text)
+ self.addEntry(STDERR, repr(time()) + ' | ' + repr(self.getStep().build.slavename) + ' | ' + self.getStep().build.getBuilder().getName() + ' | ' + repr(self.getStep().build.getNumber()) + ' | ' + text + '\n')
def addHeader(self, text):
self.addEntry(HEADER, text)
</pre>