Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 22, 2017. It is now read-only.

Conversation

@dpford
Copy link
Contributor

@dpford dpford commented May 15, 2015

Sheer consumes a _settings/processors.json file, indexing each doc type. Currently, if one of the doc types fails, an error message is printed to stderr and the process continues. This is particularly problematic when using something like Jenkins, because even though some of the doc types may have failed, the build will still be labeled as a success. If it weren't for a proactive developer skimming through the output, the unindexed doc type might go unnoticed.

In this PR, we now keep track of the failing processors (if any), and exit with an exit code describing the problem. A user running sheer index should see the failure message at the end, and Jenkins will know to fail the build if everything didn't index properly. If everything indexes properly, the behavior is exactly like it was before.

A few formatting fixes were thrown in as well.

Review: @rosskarchner

@kurtrwall
Copy link

Code looks good and the tests pass 👍

@rosskarchner
Copy link
Contributor

rock on.

rosskarchner added a commit that referenced this pull request May 18, 2015
Include a non-zero exit code if indexing fails
@rosskarchner rosskarchner merged commit 925016c into cfpb:master May 18, 2015
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.

3 participants