[Buildbot-commits] [buildbot/buildbot] 860d73: First working implementation of a HgPoller

GitHub noreply at github.com
Thu Jul 5 23:26:01 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: 860d73dfac85bf540e6d2576215ea578137ac02a
      https://github.com/buildbot/buildbot/commit/860d73dfac85bf540e6d2576215ea578137ac02a
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-02 (Sat, 02 Jun 2012)

  Changed paths:
    A master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  First working implementation of a HgPoller

Copied and adapted from GitPoller. Like GitPoller, it relies on the vcs
binary command itself, and fetches the changesets to find out what's new.
Unlike GitPoller, it has no persistent configuration (origin) and does not
build a working tree. Instead it stores the numeric incremental revision number
in a small file for comparison.

No unit tests for now, will adapt the mockup ones of GitPoller as well


  Commit: b3aaa147ce961273800c0bcae87f29080b977bca
      https://github.com/buildbot/buildbot/commit/b3aaa147ce961273800c0bcae87f29080b977bca
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-03 (Sun, 03 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Fixed first run


  Commit: bcdabe781350dac00c4cc5f72da313bb2e885f4a
      https://github.com/buildbot/buildbot/commit/bcdabe781350dac00c4cc5f72da313bb2e885f4a
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-08 (Fri, 08 Jun 2012)

  Changed paths:
    A master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Copied and adapted GitPoller tests to HgPoller

These tests don't test much, especially HgOutputParsing and GitOutputParsing
are close to be tautological


  Commit: e1f3b0a388dcf7c7664f29f1cb3b2f8a59bc1c45
      https://github.com/buildbot/buildbot/commit/e1f3b0a388dcf7c7664f29f1cb3b2f8a59bc1c45
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-09 (Sat, 09 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Making workdir mandatory


  Commit: 3b59725855b28852f082528086d39ba0e71e4cbe
      https://github.com/buildbot/buildbot/commit/3b59725855b28852f082528086d39ba0e71e4cbe
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-09 (Sat, 09 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Removed useless initial pull


  Commit: 777e104f31dc51d9dc46b75549794eef0f834e8a
      https://github.com/buildbot/buildbot/commit/777e104f31dc51d9dc46b75549794eef0f834e8a
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-09 (Sat, 09 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  cosmit


  Commit: 99d6a7c9e2db101aba5cd16b9b5a4015a7d977b8
      https://github.com/buildbot/buildbot/commit/99d6a7c9e2db101aba5cd16b9b5a4015a7d977b8
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-09 (Sat, 09 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Proper usage of heads instead of tip and protection against wild forks


  Commit: fab897dce4a8a036b8144d253a6b45d1422d3ac4
      https://github.com/buildbot/buildbot/commit/fab897dce4a8a036b8144d253a6b45d1422d3ac4
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-10 (Sun, 10 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  hgpoller: using state db


  Commit: b23d6507dea338d07b2c6c30dfa3b6f82f24799c
      https://github.com/buildbot/buildbot/commit/b23d6507dea338d07b2c6c30dfa3b6f82f24799c
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-10 (Sun, 10 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Refactor to fix tests


  Commit: 2b0f10d6de805ef878d57763bc593fbc806230b2
      https://github.com/buildbot/buildbot/commit/2b0f10d6de805ef878d57763bc593fbc806230b2
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-11 (Mon, 11 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  hgpoller: emitting all changesets upon first run

This what GitPoller also does, and we want similar behaviour


  Commit: 401032ea7d400a887964fd247d10c44995506abe
      https://github.com/buildbot/buildbot/commit/401032ea7d400a887964fd247d10c44995506abe
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-11 (Mon, 11 Jun 2012)

  Changed paths:
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  hgpoller: using FakeDB in tests & poll tests now is initial


  Commit: d116a29da282fb698fb825b0f55f754e9a3321dc
      https://github.com/buildbot/buildbot/commit/d116a29da282fb698fb825b0f55f754e9a3321dc
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-11 (Mon, 11 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Replaced various _get_commit_ methods by just one

Removed complicated and almost tautological test, now tested with the rest


  Commit: 9e8a5866f4960f6c81141f4091fa543e884d9991
      https://github.com/buildbot/buildbot/commit/9e8a5866f4960f6c81141f4091fa543e884d9991
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-11 (Mon, 11 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  hgpoller: testing and fixing case with several heads

Also a bit of factorisation to avoid repetitions?


  Commit: 7f6e4ff1255388783ca170f08c01889663c9e922
      https://github.com/buildbot/buildbot/commit/7f6e4ff1255388783ca170f08c01889663c9e922
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-11 (Mon, 11 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  hgpoller: now HgPoller's object id for state includes branch

This allows sharing of workdirs (and common parts of history) between several
HgPoller instances (one per interesting branch).


  Commit: 04d72cecae2a0d7e7bc77ee343c70b2dfaf711be
      https://github.com/buildbot/buildbot/commit/04d72cecae2a0d7e7bc77ee343c70b2dfaf711be
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  hgpoller: now hg init done if needed in first poll


  Commit: eb46eacf32886cb8feccedee0aec1bf0ce5eb3af
      https://github.com/buildbot/buildbot/commit/eb46eacf32886cb8feccedee0aec1bf0ce5eb3af
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Added a new test for regular operation (no init, no special case)


  Commit: d1d2ca75f1c93e20ca6cc0403414c3f63a1cede6
      https://github.com/buildbot/buildbot/commit/d1d2ca75f1c93e20ca6cc0403414c3f63a1cede6
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  hgpoller: stop making workdir absolute (object id must not change)

workdir is still interpreted relative to the master directory.


  Commit: 689ebea6bd17d6e9a2249b0a667174ac30ef2a96
      https://github.com/buildbot/buildbot/commit/689ebea6bd17d6e9a2249b0a667174ac30ef2a96
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  hgpoller: changeCount was meaningful to GitPoller only


  Commit: a4e1c3733a9b97948613534e72efe9013b72d983
      https://github.com/buildbot/buildbot/commit/a4e1c3733a9b97948613534e72efe9013b72d983
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-12 (Tue, 12 Jun 2012)

  Changed paths:
    M master/docs/manual/cfg-changesources.rst

  Log Message:
  -----------
  hgpoller: documentation


  Commit: 988fd7a8a8a73343098778704b9b2d9e85828412
      https://github.com/buildbot/buildbot/commit/988fd7a8a8a73343098778704b9b2d9e85828412
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-24 (Sun, 24 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Respecting the mixedCamelCase convention and underscores for private methods


  Commit: 3ff525258deaee7522499d2c6b1c92b27872525d
      https://github.com/buildbot/buildbot/commit/3ff525258deaee7522499d2c6b1c92b27872525d
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-26 (Tue, 26 Jun 2012)

  Changed paths:
    M .gitignore
    M MAINTAINERS.txt
    M master/buildbot/changes/base.py
    M master/buildbot/changes/bonsaipoller.py
    M master/buildbot/changes/gitpoller.py
    M master/buildbot/changes/hgbuildbot.py
    M master/buildbot/changes/p4poller.py
    M master/buildbot/changes/svnpoller.py
    M master/buildbot/interfaces.py
    M master/buildbot/process/build.py
    M master/buildbot/process/buildrequest.py
    M master/buildbot/process/properties.py
    M master/buildbot/schedulers/base.py
    M master/buildbot/schedulers/forcesched.py
    M master/buildbot/schedulers/timed.py
    M master/buildbot/schedulers/triggerable.py
    M master/buildbot/sourcestamp.py
    M master/buildbot/status/builder.py
    M master/buildbot/status/web/base.py
    M master/buildbot/status/web/baseweb.py
    M master/buildbot/status/web/files/default.css
    A master/buildbot/status/web/hooks/poller.py
    M master/buildbot/status/web/templates/console.html
    M master/buildbot/status/words.py
    M master/buildbot/steps/package/rpm/__init__.py
    A master/buildbot/steps/package/rpm/mock.py
    M master/buildbot/steps/package/rpm/rpmbuild.py
    M master/buildbot/steps/package/rpm/rpmlint.py
    M master/buildbot/steps/source/__init__.py
    M master/buildbot/steps/source/oldsource.py
    M master/buildbot/steps/trigger.py
    M master/buildbot/test/regressions/test_oldpaths.py
    M master/buildbot/test/unit/test_process_properties.py
    M master/buildbot/test/unit/test_schedulers_timed_Nightly.py
    A master/buildbot/test/unit/test_schedulers_timed_NightlyBase.py
    A master/buildbot/test/unit/test_schedulers_timed_NightlyTriggerable.py
    M master/buildbot/test/unit/test_schedulers_triggerable.py
    A master/buildbot/test/unit/test_status_web_change_hooks_poller.py
    M master/buildbot/test/unit/test_status_words.py
    A master/buildbot/test/unit/test_steps_package_rpm_mock.py
    M master/buildbot/test/unit/test_steps_package_rpm_rpmbuild.py
    A master/buildbot/test/unit/test_steps_package_rpm_rpmlint.py
    M master/buildbot/test/unit/test_steps_source_svn.py
    M master/buildbot/test/unit/test_steps_trigger.py
    M master/buildbot/test/util/properties.py
    A master/contrib/bk_buildbot.py
    M master/docs/developer/definitions.rst
    M master/docs/developer/style.rst
    A master/docs/manual/_images/master.png
    A master/docs/manual/_images/overview.png
    A master/docs/manual/_images/slaves.png
    A master/docs/manual/_images/status.png
    M master/docs/manual/cfg-buildsteps.rst
    M master/docs/manual/cfg-changesources.rst
    M master/docs/manual/cfg-global.rst
    M master/docs/manual/cfg-schedulers.rst
    M master/docs/manual/cfg-statustargets.rst
    M master/docs/manual/installation.rst
    M master/docs/release-notes.rst
    A slave/buildslave/commands/bk.py
    M slave/buildslave/commands/registry.py
    M slave/buildslave/commands/repo.py
    A slave/buildslave/test/unit/test_commands_bk.py

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master' into hgpoller-poc


  Commit: b2ac60e1418b9fa8e848a47eeb4d0eedb298c993
      https://github.com/buildbot/buildbot/commit/b2ac60e1418b9fa8e848a47eeb4d0eedb298c993
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-26 (Tue, 26 Jun 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Introduce name attribute to support web trigger

This brings HgPoller up to date with a94047bc8d69cd192d376ed653c05422c90cddbd


  Commit: b1274f731861a8927a81334dfa6b66943fbf898e
      https://github.com/buildbot/buildbot/commit/b1274f731861a8927a81334dfa6b66943fbf898e
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-06-26 (Tue, 26 Jun 2012)

  Changed paths:
    M master/docs/release-notes.rst

  Log Message:
  -----------
  Mentionned HgPoller in release notes


  Commit: aeb183b21dabee92abf26d7e871b31f38c09be92
      https://github.com/buildbot/buildbot/commit/aeb183b21dabee92abf26d7e871b31f38c09be92
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-07-02 (Mon, 02 Jul 2012)

  Changed paths:
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  Moved os.environment change to setUp/tearDown in hgpoller tests


  Commit: 11fbc8ba0d7feeffa7d53cce4e5d3e3c80737d7b
      https://github.com/buildbot/buildbot/commit/11fbc8ba0d7feeffa7d53cce4e5d3e3c80737d7b
  Author: Georges Racinet <gracinet at anybox.fr>
  Date:   2012-07-02 (Mon, 02 Jul 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py

  Log Message:
  -----------
  Updated a partly wrong docstring in hgpoller


  Commit: 8a953d9416143209fe395404793a57ef18bab373
      https://github.com/buildbot/buildbot/commit/8a953d9416143209fe395404793a57ef18bab373
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-07-05 (Thu, 05 Jul 2012)

  Changed paths:
    A master/buildbot/changes/hgpoller.py
    A master/buildbot/test/unit/test_changes_hgpoller.py
    M master/docs/manual/cfg-changesources.rst
    M master/docs/release-notes.rst

  Log Message:
  -----------
  Merge branch 'hgpoller-poc' of git://github.com/gracinet/buildbot into pull449

* 'hgpoller-poc' of git://github.com/gracinet/buildbot: (24 commits)
  Updated a partly wrong docstring in hgpoller
  Moved os.environment change to setUp/tearDown in hgpoller tests
  Mentionned HgPoller in release notes
  Introduce name attribute to support web trigger
  Respecting the mixedCamelCase convention and underscores for private methods
  hgpoller: documentation
  hgpoller: changeCount was meaningful to GitPoller only
  hgpoller: stop making workdir absolute (object id must not change)
  Added a new test for regular operation (no init, no special case)
  hgpoller: now hg init done if needed in first poll
  hgpoller: now HgPoller's object id for state includes branch
  hgpoller: testing and fixing case with several heads
  Replaced various _get_commit_ methods by just one
  hgpoller: using FakeDB in tests & poll tests now is initial
  hgpoller: emitting all changesets upon first run
  Refactor to fix tests
  hgpoller: using state db
  Proper usage of heads instead of tip and protection against wild forks
  cosmit
  Removed useless initial pull
  ...


  Commit: a882f42457931329f752a4d5111aa7931ba5252b
      https://github.com/buildbot/buildbot/commit/a882f42457931329f752a4d5111aa7931ba5252b
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-07-05 (Thu, 05 Jul 2012)

  Changed paths:
    M master/buildbot/changes/hgpoller.py
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  fix pyflakes


  Commit: 12963b168a638f2077afdcd4b1475c7c3bfaae65
      https://github.com/buildbot/buildbot/commit/12963b168a638f2077afdcd4b1475c7c3bfaae65
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-07-05 (Thu, 05 Jul 2012)

  Changed paths:
    M master/buildbot/test/unit/test_changes_hgpoller.py

  Log Message:
  -----------
  upgrade to use the new getProcessOutput expectations framework


  Commit: 38eb62dfeb7592b19424d838f844fe83332fc7bb
      https://github.com/buildbot/buildbot/commit/38eb62dfeb7592b19424d838f844fe83332fc7bb
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2012-07-05 (Thu, 05 Jul 2012)

  Changed paths:
    A master/buildbot/changes/hgpoller.py
    A master/buildbot/test/unit/test_changes_hgpoller.py
    M master/docs/manual/cfg-changesources.rst
    M master/docs/release-notes.rst

  Log Message:
  -----------
  Merge branch 'pull449'

* pull449: (26 commits)
  upgrade to use the new getProcessOutput expectations framework
  fix pyflakes
  Updated a partly wrong docstring in hgpoller
  Moved os.environment change to setUp/tearDown in hgpoller tests
  Mentionned HgPoller in release notes
  Introduce name attribute to support web trigger
  Respecting the mixedCamelCase convention and underscores for private methods
  hgpoller: documentation
  hgpoller: changeCount was meaningful to GitPoller only
  hgpoller: stop making workdir absolute (object id must not change)
  Added a new test for regular operation (no init, no special case)
  hgpoller: now hg init done if needed in first poll
  hgpoller: now HgPoller's object id for state includes branch
  hgpoller: testing and fixing case with several heads
  Replaced various _get_commit_ methods by just one
  hgpoller: using FakeDB in tests & poll tests now is initial
  hgpoller: emitting all changesets upon first run
  Refactor to fix tests
  hgpoller: using state db
  Proper usage of heads instead of tip and protection against wild forks
  ...


Compare: https://github.com/buildbot/buildbot/compare/e3440e0edac4...38eb62dfeb75


More information about the Commits mailing list