public
Description: A buildbot GUI for OS X
Homepage: http://code.google.com/p/buildwatch/
Clone URL: git://github.com/dustin/buildwatch.git
Search Repo:
Initial version of the tree.

I basically have the cocoa and twisted interfaces not pissed at
each other.
dustin (author)
Fri Feb 29 15:17:03 -0800 2008
commit  748a033bb49923feeb4f1b221ea649ad9551246f
tree    bebcd86b788e98543187744513a4c02c170ea356
...
 
 
 
 
 
...
1
2
3
4
5
0
@@ -0,0 +1,5 @@
0
+build/
0
+*.mode1*
0
+*.mode2*
0
+*.pbxuser
0
+*~.nib
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
0
@@ -0,0 +1,287 @@
0
+// !$*UTF8*$!
0
+{
0
+ archiveVersion = 1;
0
+ classes = {
0
+ };
0
+ objectVersion = 44;
0
+ objects = {
0
+
0
+/* Begin PBXBuildFile section */
0
+ 77631A270C06C501005415CB /* Python.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 77631A260C06C501005415CB /* Python.framework */; };
0
+ 77631A3F0C0748CF005415CB /* main.py in Resources */ = {isa = PBXBuildFile; fileRef = 77631A3E0C0748CF005415CB /* main.py */; };
0
+ 7790198F0C07548A00326F66 /* BuildWatchAppDelegate.py in Resources */ = {isa = PBXBuildFile; fileRef = 7790198E0C07548A00326F66 /* BuildWatchAppDelegate.py */; };
0
+ 77C8C1F90C07829500965286 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 77C8C1F70C07829500965286 /* MainMenu.xib */; };
0
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */; };
0
+ 8D11072D0486CEB800E47090 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 29B97316FDCFA39411CA2CEA /* main.m */; settings = {ATTRIBUTES = (); }; };
0
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */; };
0
+/* End PBXBuildFile section */
0
+
0
+/* Begin PBXFileReference section */
0
+ 089C165DFE840E0CC02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = "<group>"; };
0
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = /System/Library/Frameworks/Cocoa.framework; sourceTree = "<absolute>"; };
0
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreData.framework; path = /System/Library/Frameworks/CoreData.framework; sourceTree = "<absolute>"; };
0
+ 29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
0
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = /System/Library/Frameworks/AppKit.framework; sourceTree = "<absolute>"; };
0
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = "<absolute>"; };
0
+ 32CA4F630368D1EE00C91783 /* BuildWatch_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BuildWatch_Prefix.pch; sourceTree = "<group>"; };
0
+ 77631A260C06C501005415CB /* Python.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Python.framework; path = /System/Library/Frameworks/Python.framework; sourceTree = "<absolute>"; };
0
+ 77631A3E0C0748CF005415CB /* main.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = main.py; sourceTree = "<group>"; };
0
+ 7790198E0C07548A00326F66 /* BuildWatchAppDelegate.py */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.python; path = BuildWatchAppDelegate.py; sourceTree = "<group>"; };
0
+ 77C8C1F80C07829500965286 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
0
+ 8D1107310486CEB800E47090 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
0
+ 8D1107320486CEB800E47090 /* BuildWatch.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BuildWatch.app; sourceTree = BUILT_PRODUCTS_DIR; };
0
+/* End PBXFileReference section */
0
+
0
+/* Begin PBXFrameworksBuildPhase section */
0
+ 8D11072E0486CEB800E47090 /* Frameworks */ = {
0
+ isa = PBXFrameworksBuildPhase;
0
+ buildActionMask = 2147483647;
0
+ files = (
0
+ 8D11072F0486CEB800E47090 /* Cocoa.framework in Frameworks */,
0
+ 77631A270C06C501005415CB /* Python.framework in Frameworks */,
0
+ );
0
+ runOnlyForDeploymentPostprocessing = 0;
0
+ };
0
+/* End PBXFrameworksBuildPhase section */
0
+
0
+/* Begin PBXGroup section */
0
+ 080E96DDFE201D6D7F000001 /* Classes */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 7790198E0C07548A00326F66 /* BuildWatchAppDelegate.py */,
0
+ );
0
+ name = Classes;
0
+ sourceTree = "<group>";
0
+ };
0
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 77631A260C06C501005415CB /* Python.framework */,
0
+ 1058C7A1FEA54F0111CA2CBB /* Cocoa.framework */,
0
+ );
0
+ name = "Linked Frameworks";
0
+ sourceTree = "<group>";
0
+ };
0
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 29B97324FDCFA39411CA2CEA /* AppKit.framework */,
0
+ 13E42FB307B3F0F600E4EEF1 /* CoreData.framework */,
0
+ 29B97325FDCFA39411CA2CEA /* Foundation.framework */,
0
+ );
0
+ name = "Other Frameworks";
0
+ sourceTree = "<group>";
0
+ };
0
+ 19C28FACFE9D520D11CA2CBB /* Products */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 8D1107320486CEB800E47090 /* BuildWatch.app */,
0
+ );
0
+ name = Products;
0
+ sourceTree = "<group>";
0
+ };
0
+ 29B97314FDCFA39411CA2CEA /* BuildWatch */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 080E96DDFE201D6D7F000001 /* Classes */,
0
+ 29B97315FDCFA39411CA2CEA /* Other Sources */,
0
+ 29B97317FDCFA39411CA2CEA /* Resources */,
0
+ 29B97323FDCFA39411CA2CEA /* Frameworks */,
0
+ 19C28FACFE9D520D11CA2CBB /* Products */,
0
+ );
0
+ name = BuildWatch;
0
+ sourceTree = "<group>";
0
+ };
0
+ 29B97315FDCFA39411CA2CEA /* Other Sources */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 32CA4F630368D1EE00C91783 /* BuildWatch_Prefix.pch */,
0
+ 29B97316FDCFA39411CA2CEA /* main.m */,
0
+ 77631A3E0C0748CF005415CB /* main.py */,
0
+ );
0
+ name = "Other Sources";
0
+ sourceTree = "<group>";
0
+ };
0
+ 29B97317FDCFA39411CA2CEA /* Resources */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 77C8C1F70C07829500965286 /* MainMenu.xib */,
0
+ 8D1107310486CEB800E47090 /* Info.plist */,
0
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */,
0
+ );
0
+ name = Resources;
0
+ sourceTree = "<group>";
0
+ };
0
+ 29B97323FDCFA39411CA2CEA /* Frameworks */ = {
0
+ isa = PBXGroup;
0
+ children = (
0
+ 1058C7A0FEA54F0111CA2CBB /* Linked Frameworks */,
0
+ 1058C7A2FEA54F0111CA2CBB /* Other Frameworks */,
0
+ );
0
+ name = Frameworks;
0
+ sourceTree = "<group>";
0
+ };
0
+/* End PBXGroup section */
0
+
0
+/* Begin PBXNativeTarget section */
0
+ 8D1107260486CEB800E47090 /* BuildWatch */ = {
0
+ isa = PBXNativeTarget;
0
+ buildConfigurationList = C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "BuildWatch" */;
0
+ buildPhases = (
0
+ 8D1107290486CEB800E47090 /* Resources */,
0
+ 8D11072C0486CEB800E47090 /* Sources */,
0
+ 8D11072E0486CEB800E47090 /* Frameworks */,
0
+ );
0
+ buildRules = (
0
+ );
0
+ dependencies = (
0
+ );
0
+ name = BuildWatch;
0
+ productInstallPath = "$(HOME)/Applications";
0
+ productName = BuildWatch;
0
+ productReference = 8D1107320486CEB800E47090 /* BuildWatch.app */;
0
+ productType = "com.apple.product-type.application";
0
+ };
0
+/* End PBXNativeTarget section */
0
+
0
+/* Begin PBXProject section */
0
+ 29B97313FDCFA39411CA2CEA /* Project object */ = {
0
+ isa = PBXProject;
0
+ buildConfigurationList = C01FCF4E08A954540054247B /* Build configuration list for PBXProject "BuildWatch" */;
0
+ compatibilityVersion = "Xcode 3.0";
0
+ hasScannedForEncodings = 1;
0
+ mainGroup = 29B97314FDCFA39411CA2CEA /* BuildWatch */;
0
+ projectDirPath = "";
0
+ projectRoot = "";
0
+ targets = (
0
+ 8D1107260486CEB800E47090 /* BuildWatch */,
0
+ );
0
+ };
0
+/* End PBXProject section */
0
+
0
+/* Begin PBXResourcesBuildPhase section */
0
+ 8D1107290486CEB800E47090 /* Resources */ = {
0
+ isa = PBXResourcesBuildPhase;
0
+ buildActionMask = 2147483647;
0
+ files = (
0
+ 8D11072B0486CEB800E47090 /* InfoPlist.strings in Resources */,
0
+ 77631A3F0C0748CF005415CB /* main.py in Resources */,
0
+ 7790198F0C07548A00326F66 /* BuildWatchAppDelegate.py in Resources */,
0
+ 77C8C1F90C07829500965286 /* MainMenu.xib in Resources */,
0
+ );
0
+ runOnlyForDeploymentPostprocessing = 0;
0
+ };
0
+/* End PBXResourcesBuildPhase section */
0
+
0
+/* Begin PBXSourcesBuildPhase section */
0
+ 8D11072C0486CEB800E47090 /* Sources */ = {
0
+ isa = PBXSourcesBuildPhase;
0
+ buildActionMask = 2147483647;
0
+ files = (
0
+ 8D11072D0486CEB800E47090 /* main.m in Sources */,
0
+ );
0
+ runOnlyForDeploymentPostprocessing = 0;
0
+ };
0
+/* End PBXSourcesBuildPhase section */
0
+
0
+/* Begin PBXVariantGroup section */
0
+ 089C165CFE840E0CC02AAC07 /* InfoPlist.strings */ = {
0
+ isa = PBXVariantGroup;
0
+ children = (
0
+ 089C165DFE840E0CC02AAC07 /* English */,
0
+ );
0
+ name = InfoPlist.strings;
0
+ sourceTree = "<group>";
0
+ };
0
+ 77C8C1F70C07829500965286 /* MainMenu.xib */ = {
0
+ isa = PBXVariantGroup;
0
+ children = (
0
+ 77C8C1F80C07829500965286 /* English */,
0
+ );
0
+ name = MainMenu.xib;
0
+ sourceTree = "<group>";
0
+ };
0
+/* End PBXVariantGroup section */
0
+
0
+/* Begin XCBuildConfiguration section */
0
+ C01FCF4B08A954540054247B /* Debug */ = {
0
+ isa = XCBuildConfiguration;
0
+ buildSettings = {
0
+ COPY_PHASE_STRIP = NO;
0
+ GCC_DYNAMIC_NO_PIC = NO;
0
+ GCC_ENABLE_FIX_AND_CONTINUE = YES;
0
+ GCC_MODEL_TUNING = G5;
0
+ GCC_OPTIMIZATION_LEVEL = 0;
0
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
0
+ GCC_PREFIX_HEADER = BuildWatch_Prefix.pch;
0
+ INFOPLIST_FILE = Info.plist;
0
+ INSTALL_PATH = "$(HOME)/Applications";
0
+ PRODUCT_NAME = BuildWatch;
0
+ WRAPPER_EXTENSION = app;
0
+ ZERO_LINK = YES;
0
+ };
0
+ name = Debug;
0
+ };
0
+ C01FCF4C08A954540054247B /* Release */ = {
0
+ isa = XCBuildConfiguration;
0
+ buildSettings = {
0
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
0
+ GCC_MODEL_TUNING = G5;
0
+ GCC_PRECOMPILE_PREFIX_HEADER = YES;
0
+ GCC_PREFIX_HEADER = BuildWatch_Prefix.pch;
0
+ INFOPLIST_FILE = Info.plist;
0
+ INSTALL_PATH = "$(HOME)/Applications";
0
+ PRODUCT_NAME = BuildWatch;
0
+ WRAPPER_EXTENSION = app;
0
+ };
0
+ name = Release;
0
+ };
0
+ C01FCF4F08A954540054247B /* Debug */ = {
0
+ isa = XCBuildConfiguration;
0
+ buildSettings = {
0
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
0
+ GCC_WARN_UNUSED_VARIABLE = YES;
0
+ PREBINDING = NO;
0
+ SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
0
+ };
0
+ name = Debug;
0
+ };
0
+ C01FCF5008A954540054247B /* Release */ = {
0
+ isa = XCBuildConfiguration;
0
+ buildSettings = {
0
+ ARCHS = (
0
+ ppc,
0
+ i386,
0
+ );
0
+ GCC_WARN_ABOUT_RETURN_TYPE = YES;
0
+ GCC_WARN_UNUSED_VARIABLE = YES;
0
+ PREBINDING = NO;
0
+ SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.5.sdk";
0
+ };
0
+ name = Release;
0
+ };
0
+/* End XCBuildConfiguration section */
0
+
0
+/* Begin XCConfigurationList section */
0
+ C01FCF4A08A954540054247B /* Build configuration list for PBXNativeTarget "BuildWatch" */ = {
0
+ isa = XCConfigurationList;
0
+ buildConfigurations = (
0
+ C01FCF4B08A954540054247B /* Debug */,
0
+ C01FCF4C08A954540054247B /* Release */,
0
+ );
0
+ defaultConfigurationIsVisible = 0;
0
+ defaultConfigurationName = Release;
0
+ };
0
+ C01FCF4E08A954540054247B /* Build configuration list for PBXProject "BuildWatch" */ = {
0
+ isa = XCConfigurationList;
0
+ buildConfigurations = (
0
+ C01FCF4F08A954540054247B /* Debug */,
0
+ C01FCF5008A954540054247B /* Release */,
0
+ );
0
+ defaultConfigurationIsVisible = 0;
0
+ defaultConfigurationName = Release;
0
+ };
0
+/* End XCConfigurationList section */
0
+ };
0
+ rootObject = 29B97313FDCFA39411CA2CEA /* Project object */;
0
+}
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
0
@@ -0,0 +1,144 @@
0
+#
0
+# BuildWatchAppDelegate.py
0
+# BuildWatch
0
+#
0
+# Created by Dustin Sallings on 2/28/08.
0
+# Copyright __MyCompanyName__ 2008. All rights reserved.
0
+#
0
+
0
+from Foundation import *
0
+from AppKit import *
0
+
0
+import sys, re
0
+import threading
0
+
0
+from twisted.spread import pb
0
+from twisted.cred import credentials, error
0
+from twisted.internet import reactor
0
+
0
+class StatusClient(pb.Referenceable):
0
+ """To use this, call my .connected method with a RemoteReference to the
0
+ buildmaster's StatusClientPerspective object.
0
+ """
0
+
0
+ def __init__(self, events):
0
+ self.builders = {}
0
+ self.events = events
0
+
0
+ def connected(self, remote):
0
+ print "connected"
0
+ self.remote = remote
0
+ remote.callRemote("subscribe", self.events, 5, self)
0
+
0
+ def remote_builderAdded(self, buildername, builder):
0
+ print "builderAdded", buildername
0
+
0
+ def remote_builderRemoved(self, buildername):
0
+ print "builderRemoved", buildername
0
+
0
+ def remote_builderChangedState(self, buildername, state, eta):
0
+ print "builderChangedState", buildername, state, eta
0
+
0
+ def remote_buildStarted(self, buildername, build):
0
+ print "buildStarted", buildername
0
+
0
+ def remote_buildFinished(self, buildername, build, results):
0
+ print "buildFinished", results
0
+
0
+ def remote_buildETAUpdate(self, buildername, build, eta):
0
+ print "ETA", buildername, eta
0
+
0
+ def remote_stepStarted(self, buildername, build, stepname, step):
0
+ print "stepStarted", buildername, stepname
0
+
0
+ def remote_stepFinished(self, buildername, build, stepname, step, results):
0
+ print "stepFinished", buildername, stepname, results
0
+
0
+ def remote_stepETAUpdate(self, buildername, build, stepname, step,
0
+ eta, expectations):
0
+ print "stepETA", buildername, stepname, eta
0
+
0
+ def remote_logStarted(self, buildername, build, stepname, step,
0
+ logname, log):
0
+ print "logStarted", buildername, stepname
0
+
0
+ def remote_logFinished(self, buildername, build, stepname, step,
0
+ logname, log):
0
+ print "logFinished", buildername, stepname
0
+
0
+ def remote_logChunk(self, buildername, build, stepname, step, logname, log,
0
+ channel, text):
0
+ ChunkTypes = ["STDOUT", "STDERR", "HEADER"]
0
+ print "logChunk[%s]: %s" % (ChunkTypes[channel], text)
0
+
0
+class TextClient:
0
+ def __init__(self, master, events="steps"):
0
+ """
0
+ @type events: string, one of builders, builds, steps, logs, full
0
+ @param events: specify what level of detail should be reported.
0
+ - 'builders': only announce new/removed Builders
0
+ - 'builds': also announce builderChangedState, buildStarted, and
0
+ buildFinished
0
+ - 'steps': also announce buildETAUpdate, stepStarted, stepFinished
0
+ - 'logs': also announce stepETAUpdate, logStarted, logFinished
0
+ - 'full': also announce log contents
0
+ """
0
+ self.master = master
0
+ self.listener = StatusClient(events)
0
+
0
+ def run(self):
0
+ """Start the TextClient."""
0
+ self.startConnecting()
0
+ reactor.run(False)
0
+
0
+ def startConnecting(self):
0
+ try:
0
+ host, port = re.search(r'(.+):(\d+)', self.master).groups()
0
+ port = int(port)
0
+ except:
0
+ print "unparseable master location '%s'" % self.master
0
+ print " expecting something more like localhost:8007"
0
+ raise
0
+ cf = pb.PBClientFactory()
0
+ creds = credentials.UsernamePassword("statusClient", "clientpw")
0
+ d = cf.login(creds)
0
+ reactor.connectTCP(host, port, cf)
0
+ d.addCallbacks(self.connected, self.not_connected)
0
+ return d
0
+ def connected(self, ref):
0
+ ref.notifyOnDisconnect(self.disconnected)
0
+ self.listener.connected(ref)
0
+ def not_connected(self, why):
0
+ if why.check(error.UnauthorizedLogin):
0
+ print """
0
+Unable to login.. are you sure we are connecting to a
0
+buildbot.status.client.PBListener port and not to the slaveport?
0
+"""
0
+ reactor.stop()
0
+ return why
0
+ def disconnected(self, ref):
0
+ print "lost connection"
0
+ # we can get here in one of two ways: the buildmaster has
0
+ # disconnected us (probably because it shut itself down), or because
0
+ # we've been SIGINT'ed. In the latter case, our reactor is already
0
+ # shut down, but we have no easy way of detecting that. So protect
0
+ # our attempt to shut down the reactor.
0
+ try:
0
+ reactor.stop()
0
+ except RuntimeError:
0
+ pass
0
+
0
+class TwistyThread(threading.Thread):
0
+ def __init__(self, client):
0
+ threading.Thread.__init__(self)
0
+ self.client=client
0
+ self.setName("Reactor thread")
0
+ self.start()
0
+
0
+ def run(self):
0
+ self.client.run()
0
+
0
+class BuildWatchAppDelegate(NSObject):
0
+ def applicationDidFinishLaunching_(self, sender):
0
+ NSLog("Application did finish launching.")
0
+ TwistyThread(TextClient("localhost:9988"))
...
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
0
@@ -0,0 +1,7 @@
0
+//
0
+// Prefix header for all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 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302