Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
rename slave to worker #291
Conversation
| @@ -326,7 +326,7 @@ Security Considerations | |||
| ----------------------- | |||
|
|
|||
| We only allow builds to be triggered against commits to the CPython repository, | |||
| or committer-initiated branches hosted on hg.python.org. This means that the | |||
| or committer-initiated branches hosted on `https://github.com/python/cpython`_. This means that the | |||
levlaz
Nov 1, 2017
Author
Contributor
I made an assumption that this link should be updated to reference GitHub since that is where the code is now stored.
per brief discussion in #python-dev with berker.
|
Looking good, but a few comments: |
| @@ -209,7 +209,7 @@ Custom builders | |||
| When working on a platform-specific issue, you may want to test your changes on | |||
| the buildbot fleet rather than just on Travis and AppVeyor. To do so, you can | |||
| make use of the `custom builders | |||
| <http://buildbot.python.org/all/waterfall?category=custom.stable&category=custom.unstable>`_. | |||
| <http://buildbot.python.org/all/#/waterfall?category=custom.stable&category=custom.unstable>`_. | |||
zware
Nov 1, 2017
Member
This whole link doesn't really work anymore. We could try http://buildbot.python.org/all/#/builders?tags=custom.unstable&tags=custom.stable instead.
|
|
||
| Running a buildslave | ||
| ==================== | ||
| Running a buildworker |
zware
Nov 1, 2017
Member
"buildworker" doesn't really fit the terminology now used by Buildbot and doesn't flow as easily as "buildslave", either. Just "worker" fits Buildbot's new terminology, with "buildbot worker" for disambiguation where necessary. This applies pretty much everywhere in this PR, and it's a judgement call as to whether each instance needs disambiguation.
| @@ -24,18 +24,18 @@ mailing list. This mailing list is also the place to contact if you want to | |||
| contribute a buildbot but have questions. | |||
|
|
|||
| As for what kind of buildbot to run...take a look at our `current fleet | |||
| <http://buildbot.python.org/all/buildslaves>`_. Pretty much anything that isn't | |||
| <http://buildbot.python.org/all/#/builders>`_. Pretty much anything that isn't | |||
| on that list would be interesting: different Linux/UNIX distributions, | ||
| different versions of the various OSes, other OSes if you or someone are | ||
| prepared to make the test suite actually pass on that new OS. Even if you only | ||
| want to run an OS that's already on our list there may be utility in setting it | ||
| up: we also need to build and test python under various alternate build | ||
| configurations. Post to the mailing list and talk about what you'd like to | ||
| up. We also need to build and test python under various alternate build |
zware
Nov 1, 2017
Member
I agree that the colon isn't quite right, but I'd rather just replace it with a semicolon than a full stop. And the space doesn't need to be removed before Post.
</nitpick>
| @@ -82,40 +82,40 @@ For Mac: | |||
| * Log in as the buildbot user. | |||
| * Install either the Python 2.7 bundle from python.org [#]_, or pip. | |||
| * Open a terminal window. | |||
| * Execute ``pip install buildbot-slave``. | |||
| * Execute ``pip install buildbot-worker``. | |||
|
|
|||
| For Windows: | |||
|
|
|||
| * Create a buildbot user as a "standard" user. | |||
| * Install the latest version of Python 2.7 from python.org. | |||
levlaz
Nov 2, 2017
Author
Contributor
This series of instructions was a tad bit confusing so I specified that the last step is only necessary if using pip.
zware
Nov 9, 2017
Member
I'm a little lost on your comment here. My comment was just that we can remove "2.7" from this line :)
| ``python.exe`` is not added to ``PATH`` by default, making the | ||
| ``python`` command accessible is left as an exercise for the user). | ||
|
|
||
| In a terminal window for the buildbot user, issue the following commands (you | ||
| can put the ``buildarea`` wherever you want to):: | ||
|
|
||
| mkdir buildarea | ||
| buildslave create-slave buildarea buildbot.python.org:9020 slavename slavepasswd | ||
| buildworker create-worker buildarea buildbot.python.org:9020 workername workerpasswd |
zware
Nov 1, 2017
Member
s/buildworker/buildbot-worker/
This applies everywhere the buildslave command was used.
| down for an unexpectedly long time, please ping the `python-buildbots | ||
| <https://mail.python.org/mailman/listinfo/python-buildbots>`_ list to | ||
| request that the master be restarted. | ||
|
|
||
| Latent slaves should also be updated periodically to include operating system | ||
| Latent worker should also be updated periodically to include operating system |
| down for an unexpectedly long time, please ping the `python-buildbots | ||
| <https://mail.python.org/mailman/listinfo/python-buildbots>`_ list to | ||
| request that the master be restarted. | ||
|
|
||
| Latent slaves should also be updated periodically to include operating system | ||
| Latent worker should also be updated periodically to include operating system | ||
| or other software updates, but when do do such maintenance is largely up to you |
|
Thank you for the thorough review @zware. I made all the requested changes and used my best judgement when switching between "buildbot worker" and "worker". |
| * Open a terminal window. | ||
| * Execute ``pip install buildbot-slave``. | ||
| * If using pip; execute ``pip install buildbot-worker``. |
ezio-melotti
Nov 2, 2017
Member
I would structure this as:
- Create a buildbot user ...
- Log in as the buildbot user
- Install buildbot, either from python.org or by running pip install buildbot-worker
| linkcheck_anchors_ignore = [ | ||
| # match any anchor that starts with a '/' since this is an invalid HTML anchor | ||
| '\/.*', | ||
| ] |
levlaz
Nov 2, 2017
Author
Contributor
Ugh, even my linter yelled at me and I ignored it. Thank you :)
|
Hey @zware I made all of the changes that you requested. Is there anything else I can do for this PR? |
|
Just a couple of minor fixes to go :) |
| * Install either the Python 2.7 bundle from python.org [#]_, or pip. | ||
| * Open a terminal window. | ||
| * Execute ``pip install buildbot-slave``. | ||
| * Install the buildbot worker, either from python.org [#]_ or by running ``pip install buildbot-worker``. |
zware
Nov 9, 2017
Member
This isn't quite right; buildbot-worker is not available from python.org. I'd say just take out everything between worker, and by.
| @@ -82,40 +82,40 @@ For Mac: | |||
| * Log in as the buildbot user. | |||
| * Install either the Python 2.7 bundle from python.org [#]_, or pip. | |||
| * Open a terminal window. | |||
| * Execute ``pip install buildbot-slave``. | |||
| * Execute ``pip install buildbot-worker``. | |||
|
|
|||
| For Windows: | |||
|
|
|||
| * Create a buildbot user as a "standard" user. | |||
| * Install the latest version of Python 2.7 from python.org. | |||
zware
Nov 9, 2017
Member
I'm a little lost on your comment here. My comment was just that we can remove "2.7" from this line :)
|
Thank you @zware! I think we are all set. Just pushed a change which makes the MacOS section (hopefully) crystal clear. |
This PR renames all references from "slave" to "worker".
It fixes all broken URLs related to buildbot.
In addition, I added:
to the
conf.pyfile. The link checker was complaining that things like/consolewere invalid anchors. This is true since these are dynamically generated and not valid HTML anchors.fix #290