<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    In 0.9.3 at least (and the current code doesn't appear to be
    different for this), we modified to code in buildrequest.py to
    ignore revision when testing for collapsibility. Otherwise, every
    commit was causing a non-collapsible build to be scheduled. We
    already set treeStableTimer, but that didn't help in this case. I do
    not recall that we had such a modification on 0.8, but I wouldn't
    count on my memory there.<br>
    <br>
    To quote process/buildrequest.py, down around line 275:<br>
    <table class="highlight tab-size js-file-line-container"
      data-tab-size="8">
      <tbody>
        <tr>
          <td id="LC275" class="blob-code blob-code-inner js-file-line">
            <span class="pl-k">for</span> c, selfSS <span class="pl-k">in</span>
            iteritems(selfSources):</td>
        </tr>
        <tr>
        </tr>
      </tbody>
    </table>
    <table class="highlight tab-size js-file-line-container"
      data-tab-size="8">
      <tbody>
        <tr>
          <td id="LC276" class="blob-code blob-code-inner js-file-line">
            otherSS <span class="pl-k">=</span> otherSources[c]</td>
        </tr>
        <tr>
        </tr>
      </tbody>
    </table>
    <table class="highlight tab-size js-file-line-container"
      data-tab-size="8">
      <tbody>
        <tr>
          <td id="LC277" class="blob-code blob-code-inner js-file-line">
            <span class="pl-k">if</span> selfSS[<span class="pl-s"><span
                class="pl-pds">'</span>revision<span class="pl-pds">'</span></span>]
            <span class="pl-k">!=</span> otherSS[<span class="pl-s"><span
                class="pl-pds">'</span>revision<span class="pl-pds">'</span></span>]:</td>
        </tr>
        <tr>
        </tr>
      </tbody>
    </table>
    <table class="highlight tab-size js-file-line-container"
      data-tab-size="8">
      <tbody>
        <tr>
          <td id="LC278" class="blob-code blob-code-inner js-file-line">
            defer.returnValue(<span class="pl-c1">False</span>)</td>
        </tr>
        <tr>
        </tr>
      </tbody>
    </table>
    <span class="pl-k">return<br>
      <br>
      Also Chris, in 0.9, cancelling the queue from the UI stops any
      currently executing build.<br>
    </span><br>
    Neil Gilmore<br>
    <a class="moz-txt-link-abbreviated" href="mailto:ngilmore@grammatech.com">ngilmore@grammatech.com</a><br>
    <br>
    <div class="moz-cite-prefix">On 5/15/2017 10:11 PM, Charles Lepple
      wrote:<br>
    </div>
    <blockquote
      cite="mid:DB8269A0-F2B6-4221-A2BA-524F55F57126@gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      On May 15, 2017, at 12:29 PM, Chris Spencer wrote:<br class="">
      <div>
        <blockquote type="cite" class=""><br
            class="Apple-interchange-newline">
          <div class=""><span style="font-family: Helvetica; font-size:
              14px; font-style: normal; font-variant-caps: normal;
              font-weight: normal; letter-spacing: normal; text-align:
              start; text-indent: 0px; text-transform: none;
              white-space: normal; word-spacing: 0px;
              -webkit-text-stroke-width: 0px; float: none; display:
              inline !important;" class="">It should also cancel a
              running build for a branch if there's a newer commit
              pending.</span></div>
        </blockquote>
      </div>
      <br class="">
      <div class="">I don't think that automatically cancelling a build
        once it starts has ever been part of the base scheduler classes
        (at least, in 0.8). You might be able to do this by hitting the
        web status interface from another scheduler, though it might
        make sense to have a heuristic for allowing a build to run to
        completion if it is nearly done anyway.</div>
      <div class=""><br class="">
      </div>
      <div class="">The collapse options are for queued builds (modulo
        the 0.9.x bug that Pierre mentioned), and the treeStableTimer
        can be used to wait for several commits to arrive, in order to
        give them a chance to be collapsed.</div>
      <div class=""><br class="">
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@buildbot.net">users@buildbot.net</a>
<a class="moz-txt-link-freetext" href="https://lists.buildbot.net/mailman/listinfo/users">https://lists.buildbot.net/mailman/listinfo/users</a></pre>
    </blockquote>
    <br>
  </body>
</html>