Add support for Fortio output format#168
Conversation
Added some data files that will be deleted later Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Tested output format:
{
"labels": "TODO label",
"starttime": "2019-10-18T01:18:09Z",
"requestedqps": 1
}
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
|
Current output: Just need to figure out the distribution part and understand the remaining fields that are zero-valued... |
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
oschaaf
left a comment
There was a problem hiding this comment.
Looks great generally, some preliminary feedback
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
oschaaf
left a comment
There was a problem hiding this comment.
This looks great to me. Some final questions/comments from my side.
|
Oh, just noticed coverage is unhappy; there may be an easy fix over at https://github.com/envoyproxy/nighthawk/blob/master/test/factories_test.cc#L127 by adding nighthawk::client::OutputFormat::FORTIO to the list of formats being tested. |
Signed-off-by: Teju Nareddy <nareddyt@google.com>
|
Huh, it looks like |
I think that's a flake. I've seen it earlier, I think it is related to the CI machine running out of memory. |
htuch
left a comment
There was a problem hiding this comment.
Looks good, a few comments; have you verified full coverage of the new code?
/wait
| } | ||
| } | ||
|
|
||
| throw NighthawkException("Nighthawk result was malformed, contains no " |
There was a problem hiding this comment.
This seems an anti-pattern, passing around expected output results as string map values.. should we have more structure here?
There was a problem hiding this comment.
@oschaaf perhaps you could look into this? I think this would require changes outside of my PR.
# Conflicts: # README.md
Signed-off-by: Teju Nareddy <nareddyt@google.com>
Signed-off-by: Teju Nareddy <nareddyt@google.com>
|
Ready for review. Fairly certain that all the code is covered based on @oschaaf's comments. I can't see the coverage artifact on CI for some reason now, it keeps giving me a 404. |
Signed-off-by: Teju Nareddy <nareddyt@google.com>
|
A fix/format for the CLI docs was recently introduced for tools/update_cli_readme_documentation.sh --mode fix |
Signed-off-by: Teju Nareddy <nareddyt@google.com>
8c4875d to
ef16f64
Compare
|
The current CI failure is a flake, and my bad. Apparently |

Description: Add support for Fortio output format
Testing: Added a unit test the compare the output to a golden file
Docs: Added sample data/reports, added docs to README.md