[Buildbot-commits] [buildbot/buildbot] 497725: buildbotService: rework, for better event support

GitHub noreply at github.com
Sun Dec 29 21:16:29 UTC 2013


  Branch: refs/heads/nine
  Home:   https://github.com/buildbot/buildbot
  Commit: 497725e24800288a075f3739fa77249c50e99545
      https://github.com/buildbot/buildbot/commit/497725e24800288a075f3739fa77249c50e99545
  Author: Pierre Tardy <pierre.tardy at intel.com>
  Date:   2013-12-29 (Sun, 29 Dec 2013)

  Changed paths:
    M .gitignore
    M master/buildbot/test/unit/test_data_forceschedulers.py
    M master/docs/developer/www.rst
    M www/Gruntfile.coffee
    M www/setup.py
    M www/src/scripts/app.coffee
    M www/src/scripts/controllers/aboutController.coffee
    M www/src/scripts/controllers/buildController.coffee
    M www/src/scripts/controllers/builderController.coffee
    M www/src/scripts/controllers/buildersController.coffee
    A www/src/scripts/controllers/buildslavesController.coffee
    M www/src/scripts/controllers/changesController.coffee
    M www/src/scripts/controllers/logController.coffee
    A www/src/scripts/controllers/mastersController.coffee
    M www/src/scripts/controllers/schedulersController.coffee
    A www/src/scripts/controllers/stepController.coffee
    M www/src/scripts/directives/forcefields.coffee
    M www/src/scripts/directives/logviewer.coffee
    A www/src/scripts/directives/rawdata.coffee
    M www/src/scripts/filters/moment.coffee
    M www/src/scripts/routes.coffee
    M www/src/scripts/services/alertService.coffee
    M www/src/scripts/services/buildbotService.coffee
    R www/src/scripts/services/messageService.coffee
    A www/src/scripts/services/mqservice.coffee
    M www/src/views/build.jade
    A www/src/views/buildslaves.jade
    A www/src/views/directives/rawdata.jade
    A www/src/views/masters.jade
    M www/src/views/schedulers.jade
    A www/src/views/step.jade
    M www/test/scripts/mocks/httpMock.coffee
    M www/test/scripts/services/buildbotServiceSpec.coffee
    A www/test/scripts/services/mqServiceSpec.coffee

  Log Message:
  -----------
  buildbotService: rework, for better event support

New api simplifies a lot the common use cases of the controllers:
bind() now registers to 'update' events on all element of the list
e.g:
sse/add/aa4514dc-adae-4b2e-8c1f-d5037574821f/builder/2/build/*/new
sse/add/aa4514dc-adae-4b2e-8c1f-d5037574821f/builder/2/build/*/change

bind() now takes a onchild callback, which will be called at init time, and also
at event time when new child are happening. This help to populate subchilds.

See doc for more info on the new api.

+ bump up a few versions
+ re-enable coffeelint, and fix the remaining errors
+ some new pages


  Commit: 72dc28658eeb883e3ea0f4eecbe4984fa314ecfd
      https://github.com/buildbot/buildbot/commit/72dc28658eeb883e3ea0f4eecbe4984fa314ecfd
  Author: Pierre Tardy <pierre.tardy at intel.com>
  Date:   2013-12-29 (Sun, 29 Dec 2013)

  Changed paths:
    M master/buildbot/data/forceschedulers.py
    M master/docs/developer/www.rst
    M www/src/scripts/controllers/builderController.coffee
    M www/src/scripts/controllers/buildersController.coffee
    M www/src/scripts/controllers/forcedialogController.coffee
    M www/src/scripts/services/buildbotService.coffee
    M www/test/scripts/services/buildbotServiceSpec.coffee

  Log Message:
  -----------
  buildbotService: reuse of bound data

see doc change.

The goal of this commit is to enable much faster
user experience by doing more internal caching

Signed-off-by: Pierre Tardy <pierre.tardy at intel.com>


  Commit: 777c49a1730062234719fb61d7d6346d04d1ac98
      https://github.com/buildbot/buildbot/commit/777c49a1730062234719fb61d7d6346d04d1ac98
  Author: Pierre Tardy <pierre.tardy at intel.com>
  Date:   2013-12-29 (Sun, 29 Dec 2013)

  Changed paths:
    M master/buildbot/test/unit/test_www_sse.py
    M master/buildbot/www/sse.py
    M www/Gruntfile.coffee
    M www/setup.py
    M www/src/scripts/services/buildbotService.coffee
    M www/src/scripts/services/mqservice.coffee
    M www/test/scripts/services/buildbotServiceSpec.coffee

  Log Message:
  -----------
  fix some issues:

- latest version of karma needed some adaptation
- sse directly use mq api, in order to avoid filtering
- fix memoize only take the first argument in account
- fix mqservice to allow event name to be tuple or paths

Signed-off-by: Pierre Tardy <pierre.tardy at intel.com>


  Commit: cd32b89a8da0e76929ee8c2294a0211c499cd563
      https://github.com/buildbot/buildbot/commit/cd32b89a8da0e76929ee8c2294a0211c499cd563
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2013-12-29 (Sun, 29 Dec 2013)

  Changed paths:
    M .gitignore
    M master/buildbot/data/forceschedulers.py
    M master/buildbot/test/unit/test_data_forceschedulers.py
    M master/buildbot/test/unit/test_www_sse.py
    M master/buildbot/www/sse.py
    M master/docs/developer/www.rst
    M www/Gruntfile.coffee
    M www/setup.py
    M www/src/scripts/app.coffee
    M www/src/scripts/controllers/aboutController.coffee
    M www/src/scripts/controllers/buildController.coffee
    M www/src/scripts/controllers/builderController.coffee
    M www/src/scripts/controllers/buildersController.coffee
    A www/src/scripts/controllers/buildslavesController.coffee
    M www/src/scripts/controllers/changesController.coffee
    M www/src/scripts/controllers/forcedialogController.coffee
    M www/src/scripts/controllers/logController.coffee
    A www/src/scripts/controllers/mastersController.coffee
    M www/src/scripts/controllers/schedulersController.coffee
    A www/src/scripts/controllers/stepController.coffee
    M www/src/scripts/directives/forcefields.coffee
    M www/src/scripts/directives/logviewer.coffee
    A www/src/scripts/directives/rawdata.coffee
    M www/src/scripts/filters/moment.coffee
    M www/src/scripts/routes.coffee
    M www/src/scripts/services/alertService.coffee
    M www/src/scripts/services/buildbotService.coffee
    R www/src/scripts/services/messageService.coffee
    A www/src/scripts/services/mqservice.coffee
    M www/src/views/build.jade
    A www/src/views/buildslaves.jade
    A www/src/views/directives/rawdata.jade
    A www/src/views/masters.jade
    M www/src/views/schedulers.jade
    A www/src/views/step.jade
    M www/test/scripts/mocks/httpMock.coffee
    M www/test/scripts/services/buildbotServiceSpec.coffee
    A www/test/scripts/services/mqServiceSpec.coffee

  Log Message:
  -----------
  Merge branch 'sserework' of git://github.com/tardyp/buildbot into nine

+autopep8


Compare: https://github.com/buildbot/buildbot/compare/2c8391db79cb...cd32b89a8da0


More information about the Commits mailing list