[users at bb.net] Limiting the number of builds per day

Mojca Miklavec mojca at macports.org
Tue Apr 25 21:13:04 UTC 2017


Dear Pierre,

On 17 April 2017 at 20:10, Pierre Tardy wrote:
> Hi Mojca,
> the Nightly scheduler has a onlyIfChanged argument which is exactly meant
> for that.
>
> You need to setup properly a change source, and change filter, and then
> trigger every now and then. the builder will only start if there are change
> ongoing for it.
>
> http://docs.buildbot.net/latest/manual/cfg-schedulers.html#nightly-scheduler

I tested it and it seems to work well, but some minor disadvantages:

- If I manually trigger the build (let's say because there was a
change and I want it built ASAP), the nightly scheduler will still
trigger even if I have the latest source built.

- There is often some minor change in the README file for which I know
that there won't be any difference in the final binary file. I didn't
find any way to "skip the build for that day" (other than
reconfiguring the build master).

Mojca

> Le lun. 17 avr. 2017 à 19:48, Mojca Miklavec a écrit :
>>
>> Hi,
>>
>> I have prepared a buildbot setup (on version eight for now) for
>> binaries on some super slow machines which might take up to 4 hours to
>> complete (some of the slaves belong to other people and I also feel
>> bad consuming too much of their precious resources, in particular
>> because the results are not really needed by many people).
>>
>> The builds serve two purposes:
>> - detecting problems in the code early (kind of continuous integration)
>> - providing daily snapshots with binaries
>>
>> I would like to limit the number of builds to a maximum of one or two
>> builds per day, but I don't want to unconditionally schedule daily
>> builds; there are lots of days when there are no changes at all. And
>> in a way it sounds nice to start a build soon after a commit arrives,
>> just not 10 times per day.
>>
>> I found "treeStableTimer" which is nice. I would set it to 15 minutes.
>> But I didn't find anything appropriate to limit the number of builds
>> per day. Manually triggering builds should of course happen
>> immediately rather than wait for 12 hours, but what's the best option
>> to limit the daily use of resources?
>>
>> Thank you very much,
>>     Mojca


More information about the users mailing list