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
About Monkey patch ruby for net/http added verbosity in #13745 #13936
Comments
I vote for |
I vote for Hope you can fix this soon. Thanks! |
This will catch the next Chef 18 promotion to stable. Still wrapping up Windows building issue but it will also be in any "current" channel release >= 18.3.0 |
Any news about removing those "puts" statements from the net/http monkey patch? |
This should be fixed in the next 18.4.x release that should be coming soon. |
You should really focus more on QA as this issue is not the first one, which requires monkey patching a monkey patch |
Agreed, but that's an 🌲 problem in software engineering, compounded by the fact that there 20+ OS+architecture builds for each Chef version and that, while extremely annoying, extraneous output to STDOUT is not in itself a functional breakage (and even in manual testing I can identify plenty of times where such obvious errors have slapped me in the face but I had tunnel vision on a different problem). Perhaps we need a scaffolding to validate output... or maybe even fail automated tests if Open to ideas from the community to detect similar classes of errors. |
@jkimalane I find your comment a bit harsh in its wording. @tpowell-progress naive idea: have a dumb run with a simple file resource against zero server and expect its stdout to exactly match something curated by a human (excluding the first line with the client version which couldn't match obvisouly). This should catch any extraneous output but will likely need update when wording change somewhere in the codebase but should catch unwanted things. I guess this could be extended to solo without zero with and withou dry-run enabled. For the record a workaround is that you can dump the fixed file in the linked PR in a "temp-fix" cookbook Let me know if this is something getting traction, I'll author the cookbook if needed. |
@Tensibai I think breakage on wording changes is acceptable, as long as the test failure and description itself indicates that wording changes need to be checked as possible "false positives" |
I can confirm this is fixed in 18.4.12 from #13970 |
Description
Since 18.3.0 merging and releasing #13745, these outputs started showing up as part of the monkey patch added in the given PR. Perhaps the
puts
should be moved toChef::Log.info
orChef::Log.debug
?Chef Version
18.3.0
Platform Version
#13745
Replication Case
Just running chef-client in any affected env/platform
Client Output
Stacktrace
N/A
The text was updated successfully, but these errors were encountered: