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

Add VID Pattern Validation to CI Builds #3

Merged
merged 5 commits into from
Aug 18, 2013
Merged

Add VID Pattern Validation to CI Builds #3

merged 5 commits into from
Aug 18, 2013

Conversation

claudijd
Copy link
Collaborator

Adds a check to validate VID patterns in the source tree

If a vid pattern fails to parse, it will "break" the build.

1.) Makes VID Pattern checks fatal error if we have a bad pattern in
source
2.) Adds an additional step the CI build process to acitvely verify all pattern
files in all branches (including any new pull requests)

The long in short of it is that we'll know if anyone tries to submit an
improperly formatted VID pattern to avoid corrupting master pattern file.
@claudijd
Copy link
Collaborator Author

Now that I'm looking at this, this might be better implemented as a check file. Thoughts?

@royhills
Copy link
Owner

Yes, I think a check file is the best way to do this. "make check" is a standard makefile target, and that should run all the tests it can. I agree that a regex failure should be a fatal error, which will help catch these things if more people start to contribute patterns.

Jonathan Claudius added 4 commits August 17, 2013 18:36
1.) Adds a handful of items to .gitignore that are generated with 'make
check' so they don't get checked into source.
2.) Reverts recent change of WARN -> ERR back to WARN on pattern
failures in ike-scan.c.  This is to avoid having other checks that use
vid-patterns from failing, which makes it less straight forward when we
have pattern failures.
3.) Adds a make check to alert when patterns file contains an pattern
that cannot be parsed.
@claudijd
Copy link
Collaborator Author

I ended up reverting the behavior change I made WARN --> ERR because it was causing other checks that were unrelated to vendor ID patterns to fail. I felt it made more sense to revert back to a WARN and then just have the check verify for us. This way, if someone were to break the build with a bad vendor id pattern, it will be very clear why they build broke.

royhills added a commit that referenced this pull request Aug 18, 2013
Add VID Pattern Validation to CI Builds
@royhills royhills merged commit 18fe744 into royhills:master Aug 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants