-
Notifications
You must be signed in to change notification settings - Fork 313
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
Store build.log in log directory #818
Store build.log in log directory #818
Conversation
With this commit we move Rally's build log from a race-specific directory to its log directory. This file captures Gradle's output when users are benchmarking a source build of Elasticsearch. By moving this file to the log directory it is better visible to users (already in the same location as other log files).
Marked as breaking as the build log file moves and thus it may have an impact on users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks this works great. I left a change request for the logrotate conf because in-line comments actually prohibit it from working. Otherwise LGTM, I don't think there's a new for another review cycle.
@@ -135,6 +135,18 @@ The log file will not be rotated automatically as this is problematic due to Ral | |||
notifempty # don't attempt to rotate empty ones | |||
} | |||
|
|||
If you are benchmarking source builds of Elasticsearch, Rally will write the log output of the build to ``~/.rally/logs/build.log``. Similarly to the configuration for ``rally.log``, you can use the following ``logrotate`` configuration as a starting point:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When reading this first time, it may not be entirely clear what the logrotate config is for, I suggest we rephrase:
you can use the following
logrotate
configuration as a starting point::
to
you can use the following
logrotate
configuration to restrict the volume of the log file::
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought that can be inferred based on context (i.e. reading the paragraph above about rally.log
).
docs/configuration.rst
Outdated
If you are benchmarking source builds of Elasticsearch, Rally will write the log output of the build to ``~/.rally/logs/build.log``. Similarly to the configuration for ``rally.log``, you can use the following ``logrotate`` configuration as a starting point:: | ||
|
||
/home/user/.rally/logs/build.log { | ||
daily # rotate daily |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In-line comments don't work. They should be in a separate line.
(From man logrotate
Note that comments may appear anywhere in the config file as long as the first non-whitespace character on the line is a #.
)
We need to update also the example for rally.log
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in dd68f38.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks! |
With this commit we continously override a potentially existing Elasticsearch build log. Keeping a history of build logs is not necessary as it is only relevant to investigate on failures. Thus a history only adds complexity (e.g. log rotation setup) for little value. Relates elastic#818
With this commit we move Rally's build log from a race-specific
directory to its log directory. This file captures Gradle's output when
users are benchmarking a source build of Elasticsearch. By moving this
file to the log directory it is better visible to users (already in the
same location as other log files).