Ticket #415 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

Merging of buildrequests should be configurable

Reported by: Pike Owned by: Pike
Priority: major Milestone: 0.7.10
Version: 0.7.9 Keywords: review
Cc: bhearsum, Pike, dustin, nobrowser

Description

I have a similar issue like Ian had in  http://github.com/djmitche/buildbot/commit/86f5cab0fc5a4c4ef79886901bbe2913c63d6d55, I'm sending off build requests with different properties to create different variants of a build. In my case, which branch and which locale to build.

In particular as the actual merge ignores the properties on the requests, I would like to make an additional check and only merge if the properties of the two build requests are equal.

Right now, I just brute-force don't merge at all ever, which makes me run a flock of builds when a get 5 changes for one locale. Which happens, thanks to hg, rather easily in one push.

Change History

comment:1 Changed 4 years ago by dustin

Do you want to hack up a way to provide a "mergable" function that can be provided from the config file, and which will decide if two buildrequests are mergeable? That seems the most generla solution.

comment:2 Changed 4 years ago by Pike

  • Cc Pike added

I'd like to keep that the way it is for now. My longer-term thinking is to factor the two places where we merge build requests, scheduler and build, into one, and then to move that out to make it configurable, as part of the load-balancer at some point.

comment:3 Changed 4 years ago by Pike

  • Cc dustin added
  • Summary changed from Merge buildrequests only if properties match to Merging of buildrequests should be configurable

Dustin, I took a look at the tests, and it seems to me that we shouldn't have taken  http://github.com/djmitche/buildbot/commit/86f5cab0fc5a4c4ef79886901bbe2913c63d6d55, nor that we should take a similar patch to do this for properties.

Looking at test_buildreq, we actually rely on build reasons to be merged, though the test doesn't catch if tests wouldn't merge ;-). Similar arguments go for properties.

So I will in fact go in and factor that code out, and morph this ticket to do that. I'll try to get something up in the coming days.

comment:4 Changed 4 years ago by Pike

 http://github.com/Pike/buildbot/tree/bug415 would welcome some review.

I'll post to the list to gather some feedback, too.

comment:5 Changed 4 years ago by nobrowser

  • Cc nobrowser added

comment:6 Changed 4 years ago by dustin

  • Keywords review added

as I mentioned on the mailing list, I like everything about this *except* the heavyweight LoadManager.

comment:7 Changed 4 years ago by Pike

Updated the branch with a simple callable for cmergeRequests?.

comment:8 Changed 4 years ago by dustin

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from undecided to 0.7.10
commit 2825dbf3380732c0300a0934b9842783b80971aa
Author: Dustin J. Mitchell <dustin@zmanda.com>
Date:   Sun Feb 1 12:13:46 2009 -0500

    (fixes #415) doc tweaks to Pike's patch

commit 38e7a00e1e4f1a6520a88abb89a444c51352e2e8
Merge: 6240a8f... a811624...
Author: Dustin J. Mitchell <dustin@zmanda.com>
Date:   Sun Feb 1 11:46:24 2009 -0500

    Merge branch 'bug415' of git://github.com/Pike/buildbot into bug415

Thanks!

Note: See TracTickets for help on using tickets.