[MacPorts] #53978: buildbot: provide a way to rebuild all ports between two commits

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[MacPorts] #53978: buildbot: provide a way to rebuild all ports between two commits

MacPorts
#53978: buildbot: provide a way to rebuild all ports between two commits
----------------------------+---------------------
 Reporter:  mojca           |      Owner:  admin@…
     Type:  enhancement     |     Status:  new
 Priority:  Normal          |  Milestone:
Component:  server/hosting  |    Version:
 Keywords:  buildbot        |       Port:
----------------------------+---------------------
 It often happens that we have a random problem like inability to fetch
 sources for git, broken python or compiler, broken certificates, power
 outage etc. on one particular platform.

 It would be very useful to be able to specify two shasums and then rebuild
 all the ports that have been modified between these two commits. We can
 already specify one particular commit, but providing a wider range would
 be really really helpful.

 I would argue that we should always compile the latest version anyway, but
 the list of modified ports should come from the difference between two
 commits.

--
Ticket URL: <https://trac.macports.org/ticket/53978>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53978: buildbot: provide a way to rebuild all ports between two commits

MacPorts
#53978: buildbot: provide a way to rebuild all ports between two commits
-----------------------------+----------------------
  Reporter:  mojca           |      Owner:  admin@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:  buildbot
      Port:                  |
-----------------------------+----------------------

Comment (by ryandesign):

 It's easy enough to generate the list of ports on the command line, e.g.:

 {{{
 git diff --name-only 71b798f8a2d628b7345c1583e0f3664ddee3ffc4
 2702b2dad73c4e5641994157d20df92d2b8a1ac7 | grep /Portfile$ | cut -d / -f 2
 | sort -uf | xargs echo | pbcopy
 }}}

 Then paste that into the portlist field on the buildbot web interface.

--
Ticket URL: <https://trac.macports.org/ticket/53978#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53978: buildbot: provide a way to rebuild all ports between two commits

MacPorts
In reply to this post by MacPorts
#53978: buildbot: provide a way to rebuild all ports between two commits
-----------------------------+----------------------
  Reporter:  mojca           |      Owner:  admin@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:  buildbot
      Port:                  |
-----------------------------+----------------------

Comment (by mojca):

 Thank you very much for the hint.

 But despite this trick I would still be in favour of supporting this out-
 of-the-box (providing just shasums rather than the full list of ports). We
 could use that same trick on the buildbot if needed.

--
Ticket URL: <https://trac.macports.org/ticket/53978#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [MacPorts] #53978: buildbot: provide a way to rebuild all ports between two commits

MacPorts
In reply to this post by MacPorts
#53978: buildbot: provide a way to rebuild all ports between two commits
-----------------------------+----------------------
  Reporter:  mojca           |      Owner:  admin@…
      Type:  enhancement     |     Status:  new
  Priority:  Normal          |  Milestone:
 Component:  server/hosting  |    Version:
Resolution:                  |   Keywords:  buildbot
      Port:                  |
-----------------------------+----------------------

Comment (by raimue):

 I do not think we can do this on the buildbot, as a
 [https://docs.buildbot.net/0.8.14/manual/cfg-schedulers.html
 #forcescheduler-scheduler ForceScheduler] does not take a `change_filter`
 as argument, which is currently used to extract the port names from the
 files.

--
Ticket URL: <https://trac.macports.org/ticket/53978#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
Loading...