Repository navigation
tools/rados: Remove plain text snippets from rados bench JSON output - #66936
Conversation
|
Can one of the admins verify this patch? |
14 similar comments
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
|
Can one of the admins verify this patch? |
batrick
left a comment
There was a problem hiding this comment.
Instead I'd switch this to cerr. These messages are always inappropriate for cout.
14e865e to
fef23ed
Compare
|
Thanks for the prompt review. I switched all these logs from |
I think it'd be better to always emit these messages to If you want to avoid these messages then please add a |
fef23ed to
85b9535
Compare
|
@batrick This PR is now emitting the progress log messages to stderr as requested, and I see you previously approved. What else needs to be done for us to get this in? |
|
jenkins test this |
|
/ok to test |
|
jenkins test docs |
|
jenkins test docs |
hmm. |
|
jenkins test docs |
`rados bench` emits performance stats as its output. It is very helpful for this output to be in a machine-readable format and the CLI provides the `--format=json` flag to achieve this. There are some logs that do not respect the formatter flag though, as they provide status updates as the tool is running and do not form part of the output dataset. This prevents the contents of stdout from being valid JSON which destroys the machine-readability of the output. To resolve this we gate those status messages behind a check for the formatter. If any specific formatter is provided we do not emit the status logs. This leaves the plaintext output largely untouched while helping the machine-readable output to be well-formed. Fixes: https://tracker.ceph.com/issues/74370 Signed-off-by: Jacques Heunis <[email protected]>
85b9535 to
f3b68e3
Compare
|
(trivial rebase) |
rados benchemits performance stats as its output. It is very helpful for this output to be in a machine-readable format and the CLI provides the--format=jsonflag to achieve this.There are some logs that do not respect the formatter flag though, as they provide status updates as the tool is running and do not form part of the output dataset. This prevents the contents of stdout from being valid JSON which destroys the machine-readability of the output.
To resolve this we gate those status messages behind a check for the formatter. If any specific formatter is provided we do not emit the status logs. This leaves the plaintext output largely untouched while helping the machine-readable output to be well-formed.
Below is a "diff" of the output (sort of hand constructed from an actual diff because obviously all the numbers etc also changed, also ignore the trailing "added" whitespace, apparently github won't format a diff as such if there are only lines removed):
Plain-text output
JSON output
Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.