Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: pylibs/buildbot/status/status_push.py

Issue 809001: Rename a few variables and greatly reduce the amount of data sent for steps* events (Closed)
Patch Set: Rebase against trunk and fix the unit test again Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pylibs/buildbot/status/builder.py ('k') | pylibs/buildbot/test/test_status_push.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- test-case-name: buildbot.test.test_status_push -*- 1 # -*- test-case-name: buildbot.test.test_status_push -*-
2 2
3 """Push events to an abstract receiver. 3 """Push events to an abstract receiver.
4 4
5 Implements the HTTP receiver.""" 5 Implements the HTTP receiver."""
6 6
7 import datetime 7 import datetime
8 import os 8 import os
9 import urllib 9 import urllib
10 import urlparse 10 import urlparse
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 self.push('builderChangedState', builderName=builderName, state=state) 226 self.push('builderChangedState', builderName=builderName, state=state)
227 227
228 def buildStarted(self, builderName, build): 228 def buildStarted(self, builderName, build):
229 self.push('buildStarted', build=build) 229 self.push('buildStarted', build=build)
230 return self 230 return self
231 231
232 def buildETAUpdate(self, build, ETA): 232 def buildETAUpdate(self, build, ETA):
233 self.push('buildETAUpdate', build=build, ETA=ETA) 233 self.push('buildETAUpdate', build=build, ETA=ETA)
234 234
235 def stepStarted(self, build, step): 235 def stepStarted(self, build, step):
236 self.push('stepStarted', build=build, step=step) 236 self.push('stepStarted',
237 properties=build.getProperties().asList(),
238 step=step)
237 239
238 def stepTextChanged(self, build, step, text): 240 def stepTextChanged(self, build, step, text):
239 self.push('stepTextChanged', build=build, step=step, text=text) 241 self.push('stepTextChanged',
242 properties=build.getProperties().asList(),
243 step=step,
244 text=text)
240 245
241 def stepText2Changed(self, build, step, text2): 246 def stepText2Changed(self, build, step, text2):
242 self.push('stepText2Changed', build=build, step=step, text2=text2) 247 self.push('stepText2Changed',
248 properties=build.getProperties().asList(),
249 step=step,
250 text2=text2)
243 251
244 def stepETAUpdate(self, build, step, ETA, expectations): 252 def stepETAUpdate(self, build, step, ETA, expectations):
245 self.push('stepETAUpdate', build=build, step=step, ETA=ETA, 253 self.push('stepETAUpdate',
254 properties=build.getProperties().asList(),
255 step=step,
256 ETA=ETA,
246 expectations=expectations) 257 expectations=expectations)
247 258
248 def logStarted(self, build, step, log): 259 def logStarted(self, build, step, log):
249 self.push('logStarted', build=build, step=step, log=log) 260 self.push('logStarted',
261 properties=build.getProperties().asList(),
262 step=step)
250 263
251 def logFinished(self, build, step, log): 264 def logFinished(self, build, step, log):
252 self.push('logFinished', build=build, step=step) 265 self.push('logFinished',
266 properties=build.getProperties().asList(),
267 step=step)
253 268
254 def stepFinished(self, build, step, results): 269 def stepFinished(self, build, step, results):
255 self.push('stepFinished', build=build, step=step, results=results) 270 self.push('stepFinished',
271 properties=build.getProperties().asList(),
272 step=step)
256 273
257 def buildFinished(self, builderName, build, results): 274 def buildFinished(self, builderName, build, results):
258 self.push('buildFinished', builderName=builderName, build=build, 275 self.push('buildFinished', build=build)
259 results=results)
260 276
261 def builderRemoved(self, builderName): 277 def builderRemoved(self, builderName):
262 self.push('buildedRemoved', builderName=builderName) 278 self.push('buildedRemoved', builderName=builderName)
263 279
264 def changeAdded(self, change): 280 def changeAdded(self, change):
265 self.push('changeAdded', change=change) 281 self.push('changeAdded', change=change)
266 282
267 def slaveConnected(self, slavename): 283 def slaveConnected(self, slavename):
268 self.push('slaveConnected', slave=self.status.getSlave(slavename)) 284 self.push('slaveConnected', slave=self.status.getSlave(slavename))
269 285
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 headers = {'Content-Type': 'application/x-www-form-urlencoded'} 371 headers = {'Content-Type': 'application/x-www-form-urlencoded'}
356 connection = client.getPage(self.serverUrl, 372 connection = client.getPage(self.serverUrl,
357 method='POST', 373 method='POST',
358 postdata=encoded_packets, 374 postdata=encoded_packets,
359 headers=headers, 375 headers=headers,
360 agent='buildbot') 376 agent='buildbot')
361 connection.addCallbacks(Success, Failure) 377 connection.addCallbacks(Success, Failure)
362 return connection 378 return connection
363 379
364 # vim: set ts=4 sts=4 sw=4 et: 380 # vim: set ts=4 sts=4 sw=4 et:
OLDNEW
« no previous file with comments | « pylibs/buildbot/status/builder.py ('k') | pylibs/buildbot/test/test_status_push.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698