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

Don't require git #466

Merged
merged 2 commits into from
Apr 11, 2018
Merged

Conversation

danielmitterdorfer
Copy link
Member

With this commit we silence a spurious log message when git is not
present and document under which circumstances it is ok not to have
git installed.

Closes #339

With this commit we silence a spurious log message when git is not
present and document under which circumstances it is ok *not* to have
git installed.

Closes elastic#339
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Usability Makes Rally easier to use labels Apr 11, 2018
@danielmitterdorfer danielmitterdorfer added this to the 0.10.0 milestone Apr 11, 2018
Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

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

Makes sense! Left a few, mostly pedantic, comments :)

docs/install.rst Outdated
``git 1.9`` or better is required. Verify with ``git --version``.
Git is not required if **all** of the following conditions are met:

* You are using Rally only as a load generator (``--pipeline=benchmark-only``) or you are referring to Elasticsearch configurations with ``--team-path``
Copy link
Contributor

Choose a reason for hiding this comment

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

Apologies for the pedantry; full stop will be appreciated for this sentence (we do it elsewhere).

docs/install.rst Outdated
Git is not required if **all** of the following conditions are met:

* You are using Rally only as a load generator (``--pipeline=benchmark-only``) or you are referring to Elasticsearch configurations with ``--team-path``
* You create your own tracks and refer to them with ``--track-path``
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment here, full stop would be appreciated.

@@ -8,7 +8,8 @@
def probed(f):
def probe(src, *args, **kwargs):
# Probe for -C
if not process.exit_status_as_bool(lambda: process.run_subprocess_with_logging("git -C %s --version" % src, level=logging.DEBUG)):
if not process.exit_status_as_bool(lambda: process.run_subprocess_with_logging("git -C %s --version" % src, level=logging.DEBUG),
Copy link
Contributor

@dliappis dliappis Apr 11, 2018

Choose a reason for hiding this comment

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

Switch to format() for the string "git -C {} --version".format(src)?

@dliappis
Copy link
Contributor

LGTM, thanks for the update.

@danielmitterdorfer danielmitterdorfer merged commit dab8c9b into elastic:master Apr 11, 2018
@danielmitterdorfer danielmitterdorfer deleted the no-git branch April 11, 2018 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Usability Makes Rally easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants