Skip to content
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

Improve docs in various ways #1332

Merged
merged 8 commits into from
Sep 21, 2021
Merged

Conversation

pquentin
Copy link
Member

Please review commit by commit, I can easily revert any of them.

@pquentin pquentin added :Docs Changes to the documentation cleanup Linter changes, reformatting, removal of unused code etc. labels Sep 15, 2021
@pquentin pquentin added this to the 2.3.0 milestone Sep 15, 2021
@pquentin pquentin self-assigned this Sep 15, 2021
@@ -34,15 +34,6 @@ Rally uses automatic code formatters. They're enforced by ``make lint`` and you

However, consider using editor integrations to do it automatically: you'll need to configure `black <https://black.readthedocs.io/en/stable/integrations/editors.html>`_ and `isort <https://github.com/PyCQA/isort/wiki/isort-Plugins>`_.

Known Issues
Copy link
Member

Choose a reason for hiding this comment

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

Is there a specific reason we removed the known issue(s)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I mentioned it in the commit, the issue is fixed in pyenv

Copy link
Member

Choose a reason for hiding this comment

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

Do'h 🤦 . Thanks for confirming :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

Reading that again, I see that my comment is terse and sounds like it was obvious. It was not, and GitHub's UI makes it difficult to see the commit descriptions. Sorry about that!

Copy link
Member

Choose a reason for hiding this comment

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

Reading that again, I see that my comment is terse and sounds like it was obvious. It was not, and GitHub's UI makes it difficult to see the commit descriptions. Sorry about that!

Haha, not a problem. I did not assume any malice :- 01.02, /FORMAT ;-).

docs/metrics.rst Outdated
@@ -4,7 +4,7 @@ Metrics
Metrics Records
---------------

At the end of a race, Rally stores all metrics records in its metrics store, which is a dedicated Elasticsearch cluster. Rally stores the metrics in the indices ``rally-metrics-*``. It will create a new index for each month.
At the end of a race, Rally stores all metrics records in its metrics store, which is a dedicated Elasticsearch cluster, ie. not the cluster where Rally ran its benchmarks. Rally stores the metrics in the indices ``rally-metrics-*``. It will create a new index for each month.
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps worth adding a link here to the configuration section on reporting/metrics (https://esrally.readthedocs.io/en/stable/configuration.html#reporting) ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea, will do

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to use Sphinx's internal links, but failed to link to the subsection, so I linked directly to the online docs.

Please take another look!

Copy link
Member

@b-deam b-deam left a comment

Choose a reason for hiding this comment

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

Only a couple of nits/suggestions, otherwise LGTM.

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

Thanks! Looks mostly fine, I left a few minor comments.

docs/metrics.rst Outdated
@@ -4,7 +4,7 @@ Metrics
Metrics Records
---------------

At the end of a race, Rally stores all metrics records in its metrics store, which is a dedicated Elasticsearch cluster. Rally stores the metrics in the indices ``rally-metrics-*``. It will create a new index for each month.
At the end of a race, Rally stores all metrics records in its metrics store, which is a dedicated Elasticsearch cluster, ie. not the cluster where Rally ran its benchmarks. Rally stores the metrics in the indices ``rally-metrics-*``. It will create a new index for each month.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: we usually use i.e. in our documentation (see also https://www.merriam-webster.com/dictionary/i.e.).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I'll keep that in mind, but I've switched to a different wording

@@ -31,6 +31,8 @@ You probably want to gain additional insights from a race. Therefore, we have ad
shard-stats Shard Stats Regularly samples nodes stats at shard level
data-stream-stats Data Streams Stats Regularly samples data streams stats

.. warning::
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 a separate warning block, maybe before the output of the command line example. The sentence below ("Keep in mind that each telemetry device may incur a runtime overhead which can skew results.") is actually part of the command line output of esrally list telemetry and should not be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

The alternative I see is duplicating the warning, please tell me if that's better

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I'd prefer a separate warning (above the example) directly in the docs. This fact is important enough that it warrants a warning in the docs and in the command line output IMHO.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry, I meant "I've updated the docs like you said, please take a look". I wasn't trying to ask you to repeat your argument a second time, hoping that would change your mind :D

Copy link
Member

@danielmitterdorfer danielmitterdorfer left a comment

Choose a reason for hiding this comment

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

LGTM

@pquentin pquentin merged commit ec160e0 into elastic:master Sep 21, 2021
@pquentin pquentin deleted the docs-proofread branch September 21, 2021 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Linter changes, reformatting, removal of unused code etc. :Docs Changes to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants