Skip to content

rename slave to worker #291

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Nov 9, 2017
Merged

rename slave to worker #291

merged 9 commits into from
Nov 9, 2017

Conversation

levlaz
Copy link
Contributor

@levlaz levlaz commented Nov 1, 2017

This PR renames all references from "slave" to "worker".

It fixes all broken URLs related to buildbot.

In addition, I added:

linkcheck_anchors_ignore = [
    # match any anchor that starts with a '/' since this is an invalid HTML anchor
    '\/.*',
]

to the conf.py file. The link checker was complaining that things like /console were invalid anchors. This is true since these are dynamically generated and not valid HTML anchors.

fix #290

buildworker.rst Outdated
@@ -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
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made an assumption that this link should be updated to reference GitHub since that is where the code is now stored.

Copy link
Member

@zware zware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, but a few comments:

buildbots.rst Outdated
@@ -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>`_.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This whole link doesn't really work anymore. We could try http://buildbot.python.org/all/#/builders?tags=custom.unstable&tags=custom.stable instead.

buildworker.rst Outdated

Running a buildslave
====================
Running a buildworker
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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.

buildworker.rst Outdated
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be workers rather than builders.

buildworker.rst Outdated
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This no longer needs to specify 2.7; we can use any version we want now :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This series of instructions was a tad bit confusing so I specified that the last step is only necessary if using pip.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little lost on your comment here. My comment was just that we can remove "2.7" from this line :)

buildworker.rst Outdated
``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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/buildworker/buildbot-worker/

This applies everywhere the buildslave command was used.

buildworker.rst Outdated
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/worker/workers/

buildworker.rst Outdated
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/do do/to do/ (please, I know it's not your typo :))

@levlaz
Copy link
Contributor Author

levlaz commented Nov 2, 2017

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".

buildworker.rst Outdated
* Open a terminal window.
* Execute ``pip install buildbot-slave``.
* If using pip; execute ``pip install buildbot-worker``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this is much clearer.

linkcheck_anchors_ignore = [
# match any anchor that starts with a '/' since this is an invalid HTML anchor
'\/.*',
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at the end of the file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, even my linter yelled at me and I ignored it. Thank you :)

@levlaz
Copy link
Contributor Author

levlaz commented Nov 9, 2017

Hey @zware I made all of the changes that you requested. Is there anything else I can do for this PR?

Copy link
Member

@zware zware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of minor fixes to go :)

buildworker.rst Outdated
* 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``.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little lost on your comment here. My comment was just that we can remove "2.7" from this line :)

@levlaz
Copy link
Contributor Author

levlaz commented Nov 9, 2017

Thank you @zware! I think we are all set. Just pushed a change which makes the MacOS section (hopefully) crystal clear.

@zware zware merged commit 766ccd6 into python:master Nov 9, 2017
AA-Turner pushed a commit to AA-Turner/devguide that referenced this pull request Jun 17, 2022
…onGH-291)

Fixes pythonGH-290.

Also makes linkcheck play nicely with the new buildbot.python.org.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update buildslave.rst page for Buildbot 0.9.x
4 participants