[154443] contrib/buildbot-test/master.cfg
larryv at macports.org
larryv at macports.org
Sat Oct 29 22:16:36 CEST 2016
Revision: 154443
https://trac.macports.org/changeset/154443
Author: larryv at macports.org
Date: 2016-10-29 22:16:36 +0200 (Sat, 29 Oct 2016)
Log Message:
-----------
buildbot: Process commits in chunks
The GitHub change hook produces one Change object for every commit that
is pushed. We don't want to trigger a separate build for each of these
because it's likely that several of them modify the same port.
Setting treeStableTimer=5 causes the scheduler to wait five seconds
before triggering a build [*]. One build is then started for each
affected port, at the most recent commit. I will admit that I don't
understand how this partitioning happens, but it's nice.
Also, explicitly tell `mpbb checkout` to check out the latest commit
seen by the scheduler.
[*]: http://docs.buildbot.net/0.8.12/manual/cfg-schedulers.html#singlebranchscheduler
Modified Paths:
--------------
contrib/buildbot-test/master.cfg
Modified: contrib/buildbot-test/master.cfg
===================================================================
--- contrib/buildbot-test/master.cfg 2016-10-29 18:19:27 UTC (rev 154442)
+++ contrib/buildbot-test/master.cfg 2016-10-29 20:16:36 UTC (rev 154443)
@@ -188,7 +188,7 @@
c['schedulers'] = [
schedulers.SingleBranchScheduler(
name='base',
- treeStableTimer=None,
+ treeStableTimer=5,
change_filter=util.ChangeFilter(
repository=config['baseurl'][:-4],
branch='master'),
@@ -195,7 +195,8 @@
builderNames=base_buildernames),
schedulers.SingleBranchScheduler(
name='ports',
- treeStableTimer=None,
+ # Don't start a separate build for every pushed commit.
+ treeStableTimer=5,
change_filter=util.ChangeFilter(
repository=config['portsurl'][:-4],
branch='master',
@@ -387,7 +388,9 @@
haltOnFailure=True))
portwatcher_factory.addStep(steps.ShellCommand(
- command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'checkout', '--ports-url', config['portsurl']],
+ command=['./mpbb/mpbb', '--prefix', util.WithProperties(prefix), 'checkout',
+ '--ports-url', config['portsurl'],
+ '--ports-commit', util.Property('revision')],
timeout=3600,
name='checkout',
description=['syncing', 'ports'],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161029/87350481/attachment-0002.html>
More information about the macports-changes
mailing list