[Buildbot-devel] How to set revision number for nightly builds
Bob Hood
bhood2 at comcast.net
Wed May 25 21:36:56 UTC 2011
On 5/25/2011 2:11 PM, Tony Lazarew wrote:
> Hi,
>
> I'll step in on behalf of Pavel with some details.
>
> Bob, thank you for suggestion -- we use this approach currently.
> Except for we don't perform any manipulations on source base (like
> revert). But it still leads to a problem which I'll try to describe.
>
> We have several platforms we build on and we want them all to use the
> same revision for the nightly build. Generally it works just nice
> because nightly build fires up at 12am and most of developers are
> asleep. But we ran into the following situation:
> 1) a new revision r1 is committed just 5 mins before the midnight
> 2) one builder b1 is not able to finish its post-commit build before
> midnight while others (b2, b3) finish time
> 3) nightly starts with a revision r1
> 4) new revision r2 arrives somewhere in time after the nightly took
> off but before b1 finished building r1
> 5) b1 finishes r1 and starts nightly build but already with r2
Yeah, definitely sounds like a timing issue. I don't know the internals of
the SVN poller, so I don't know if its including a timestamp with reports of
new versions. If it isn't, then it would be impossible to know which revision
is closest to the pre-cutoff time. If it does, then it sounds like the
Builder is not doing some time checks to see what was the last available
revision prior to the cutoff, and is just checking that the time-check cutoff
has passed, and then checks for the latest revision without considering any
timestamps.
I'm just guessing, though. I defer to those with greater knowledge.
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo---------------------------------
We can't all be architects. Some of us excel at building from the blueprints.
More information about the devel
mailing list