[Buildbot] #3019: Have the slaves report their amount of CPU core
Buildbot trac
trac at buildbot.net
Thu Nov 20 06:01:38 UTC 2014
#3019: Have the slaves report their amount of CPU core
--------------------------------+--------------------
Reporter: Ben | Owner:
Type: enhancement | Status: new
Priority: patches-accepted | Milestone: 0.9.+
Version: master | Resolution:
Keywords: slave, step, simple |
--------------------------------+--------------------
Comment (by ksandarusi):
I'd like to take on this but if someone could make sure I am headed in the
right direction it would be much appreciated.
After combing through the steps code for buildbot, it looks as if the
trickiest part is creating a multi-platform solution. My first thought is
to simply execute a one-line python command on the shell. A quick test and
this following command works:[[BR]]
{{{
python -c "import multiprocessing; print multiprocessing.cpu_count()"
}}}[[BR]]
All that would be required is a pass of this command and a receive of its
output. Once received, a property would simply be set.
--
Ticket URL: <http://trac.buildbot.net/ticket/3019#comment:2>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the bugs
mailing list