This repository was archived by the owner on May 6, 2020. It is now read-only.
Repository navigation
Conversation
added 4 commits
July 5, 2017 13:43
The first character in each line is special: if it is non-alphabetic, line limits don't apply. However, previously that check was performed before the "Fixes #XXX" check meaning if a "Fixes #XXX" line was indented, it would not be considered. This would result in a failure if the user specified "--need-fixes". With this change, an indented "Fixes #XXX" is now permitted. Fixes clearcontainers#113. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Move the regexp pattern compilation to NewCommitConfig(). This makes the code simpler and safer: previously, the tests were creating their own patterns which were not the same as the tool (the tests were allowing a case insensitive "Fixes #XXX" match, whereas the tool was only allowing a leading-caps match). This fix also restricts performing the regexp matching to those cases where the user requires a SOB or Fixes comment. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Allow all forms of whitespace between the "Fixes" and "#XXX" tokens (previously, only space was allowed). Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Add a couple of tests to ensure that line length limits don't apply to Fixes lines. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
Contributor
grahamwhaley
reviewed
Jul 6, 2017
| } | ||
| } | ||
|
|
||
| // Check first character of line. If it's _not_ |
Contributor
There was a problem hiding this comment.
just a nit - you could have mentioned 'fixed by swapping the order of the tests' in the commit message. It is sort of implied, but not stated.
Contributor
mcastelino
pushed a commit
to mcastelino/tests
that referenced
this pull request
Jan 23, 2019
Look for evidence of panics and fatal signals in the component logs and fail the CI run if found. Fixes clearcontainers#115. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces #114.