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 runner report and json newline #2601

Merged
merged 4 commits into from
Feb 9, 2018
Merged

Conversation

jquick
Copy link
Contributor

@jquick jquick commented Feb 9, 2018

There were a few issues with the new reporter work:

  1. The report function on the runner was not working properly with the new report types. This is used for the audit cookbook. This has been resolved.
  2. json/json-min were sending a newline at the end of their report. This has been resolved.

Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick <jquick@chef.io>
Signed-off-by: Jared Quick <jquick@chef.io>
@jquick jquick requested a review from a team as a code owner February 9, 2018 18:09
Signed-off-by: Jared Quick <jquick@chef.io>
@jquick jquick force-pushed the jq/add_generic_report_output branch from 8b959d4 to 69f6e4e Compare February 9, 2018 18:15
Copy link
Contributor

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

Thank you @jquick

Copy link
Contributor

@clintoncwolfe clintoncwolfe left a comment

Choose a reason for hiding this comment

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

My only comment is that I wish there were clear tests reproducing the regression, and showing that the change fixes it.

@jquick
Copy link
Contributor Author

jquick commented Feb 9, 2018

Tests were added to confirm the regressions do not happen again. We capture the report output without newlines for the json. Tests were also added around the new report output to confirm its working as expected.

@jquick jquick merged commit 9420204 into master Feb 9, 2018
@jquick jquick deleted the jq/add_generic_report_output branch February 15, 2018 21:15
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.

6 participants