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

fix Git download chart for GHE 2.11.0 #44

Merged
merged 1 commit into from
Nov 20, 2017
Merged

Conversation

larsxschneider
Copy link
Collaborator

The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled
once a week. This was reported as bug and is likely fixed in an upcoming
version. In the meantime we grep for all log entries that have been
written yesterday.

@@ -15,13 +15,20 @@ function ghe_greater_equal () {

if ghe_greater_equal "2.11.0" ; then
LOG_FILE="/var/log/github-audit.log"
# The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled
# once a week. This was reported as bug and is likely fixed in an upcoming
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo: “as a bug”

# once a week. This was reported as bug and is likely fixed in an upcoming
# version. In the meantime we grep for all log entries that have been
# written yesterday.
GREP_YESTERDAY="grep -F '$(date --date='yesterday' +'%b %d')'"
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe, we could add something like # TODO: remove workaround once GitHub Enterprise is patched so that we clean this up as soo as this workaround isn’t necessary anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, I don't think we can remove it because GHE 2.11.0 - 2.11.x will always have this bug.

Copy link
Contributor

@pluehne pluehne left a comment

Choose a reason for hiding this comment

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

Looks good to me aside from a typo and a little suggestion (see above).

@pluehne pluehne added the bug label Nov 20, 2017
The "github-audit.log" log file introduced in GHE 2.11.0 is only rolled
once a week. This was reported as a bug and is likely fixed in an
upcoming version. In the meantime we grep for all log entries that have
been written yesterday.
Copy link
Contributor

@pluehne pluehne left a comment

Choose a reason for hiding this comment

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

Okay, then let’s leave the TODO out until we drop support for GitHub 2.11 (which is a long time ago).

@larsxschneider larsxschneider merged commit 60b721d into master Nov 20, 2017
@larsxschneider larsxschneider deleted the lars/download branch November 20, 2017 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants