[Buildbot-devel] P4 change source, p4 checkout and p4 streams
mss at mawhrin.net
Wed Feb 4 19:03:09 UTC 2015
On Wed, Feb 04, 2015 at 07:24:36PM +0100, Francesco Di Mizio wrote:
> The juicy parts of the P4Source poller are:
> - p4base='//project/'
> - split_file=lambda branchfile: branchfile.split('/',1)
> This causes the builder to be kicked off the right way. The Branch property
> is populated the right way, assuming values such as main and 1.2. Even the
> changes portion on the web UI is being populated in accordance to what is
> going on in P4.
> Now the part I don’t get: when I now perform a p4 checkout (using
> p4base='//project/' in the p4-step definition) the Branch property’s value
> isn’t considered. The sync command turns out to be ‘sync //project/… ’
> instead of ‘’sync //project/Rel1.1/…’
What your P4 step looks like? Specifically, p4branch parameter?
> Part 2 – P4 Streams
> Well P4 introduced a while ago this new concept. They involve the creation
> of a specific type of p4 clients, all of which is missing from the current
> P4 checkout implementation. Is there anything planned about this? I might
> consider working myself into this if you think it’s worth it.
I quickly checked the history of P4 and it looks like the last _substantial_
changes were years ago. So my not so educated guess would be: no, nothing is
planned about P4.
If you manage to implement the core part for the new functionality, we should
be able to help to get it to the Buildbot tree.
More information about the devel