Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Checkcommits handle indented fixes - #115

Merged
chavafg merged 4 commits into
clearcontainers:masterfrom
jodh-intel:checkcommits-handle-indented-fixes
Jul 6, 2017
Merged

chavafg merged 4 commits into
clearcontainers:masterfrom
jodh-intel:checkcommits-handle-indented-fixes

Conversation

@jodh-intel

Copy link
Copy Markdown

Replaces #114.

James O. D. Hunt 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>
@chavafg

chavafg commented Jul 5, 2017 •

Copy link
Copy Markdown
Contributor

lgtm, but seems that needs rebase.

Approved with PullApprove Approved with PullApprove

}
}

// Check first character of line. If it's _not_

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@grahamwhaley

grahamwhaley commented Jul 6, 2017 •

Copy link
Copy Markdown
Contributor

lgtm

Approved with PullApprove Approved with PullApprove

@devimc devimc left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

@chavafg
chavafg merged commit 7431616 into clearcontainers:master Jul 6, 2017
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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants