telemetry JSON escaping and other enhancements
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest13 patches 2 repliesIn review
- v213 patches 10 repliesSuperseded
- v1 RFC6 patches 15 repliesSuperseded
Changes in v3 from the cover letter
* reorder patchset to put previous patch 6 (dict name limiting) at the start of the series
* fix missed rename of TEST_OUTPUT to CHECK_OUTPUT in patch 10
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/13 | telemetry: limit characters allowed in dictionary nameslib/ lib/ | +40 | 0 replies | |
| 2/13 | test/telemetry_json: print success or failure per subtestapp/ | +24 | 0 replies | |
| 3/13 | telemetry: fix escaping of invalid json characterslib/ lib/ | +55 | 0 replies | |
| 4/13 | test/telemetry_json: add test for string character escapingapp/ | +17 | 0 replies | |
| 5/13 | telemetry: add escaping of strings in arrayslib/ | +19 | 0 replies | |
| 6/13 | test/telemetry-json: add test for escaping strings in arraysapp/ | +24 | 0 replies | |
| 7/13 | telemetry: add escaping of strings in dictslib/ | +8 | 0 replies | |
| 8/13 | test/telemetry_json: add test for string escaping in objectsapp/ | +24 | 0 replies | |
| 9/13 | telemetry: limit command charactersdoc/ lib/ | +7 | 0 replies | |
| 10/13 | test/telemetry_data: refactor for maintainabilityapp/ | +60 | 0 replies | |
| 11/13 | test/telemetry_data: add test cases for character escapingapp/ | +29 | 0 replies | |
| 12/13 | telemetry: eliminate duplicate code for json outputapp/ lib/ | +19 | 0 replies | |
| 13/13 | telemetry: make help command more helpfullib/ | +7 | 0 replies |
Reviews trailers per patch
All 13 patches have a Reviewed-by or Acked-by.
| Patch | Ciara Power | Morten Brørup | Chengwen Feng |
|---|---|---|---|
| Series | Series-acked-by | ||
| 1/13 | A-b | A-b | |
| 2/13 | A-b | A-b | |
| 3/13 | A-b | A-b | |
| 4/13 | A-b | A-b | |
| 5/13 | A-b | A-b | |
| 6/13 | A-b | A-b | |
| 7/13 | A-b | A-b | |
| 8/13 | A-b | A-b | |
| 9/13 | A-b | A-b | |
| 10/13 | A-b | A-b | |
| 11/13 | A-b | A-b | |
| 12/13 | A-b | A-b | |
| 13/13 | A-b | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH v3 00/13] telemetry JSON escaping and other enhancements
This patchset contains fixes for the problem of handling characters returned by telemetry callbacks which require escaping when encoded in JSON format. It also includes unit tests to validate the correct encoding in such scenarios and a number of smaller enhancements to telemetry and telemetry testing
V3:
* reorder patchset to put previous patch 6 (dict name limiting) at the start of the series
* fix missed rename of TEST_OUTPUT to CHECK_OUTPUT in patch 10
RFC->V2:
* limited characters allowed in dictionary element names and command names to side-step the encoding problems there
* added support for proper escaping of dictionary string values
* added more testing and test cases
* added other misc telemetry cleanups and refactoring
Bruce Richardson (13):
telemetry: limit characters allowed in dictionary names test/telemetry_json: print success or failure per subtest
telemetry: fix escaping of invalid json characters test/telemetry_json: add test for string character escaping
telemetry: add escaping of strings in arrays test/telemetry-json: add test for escaping strings in arrays
telemetry: add escaping of strings in dicts test/telemetry_json: add test for string escaping in objects
telemetry: limit command characters test/telemetry_data: refactor for maintainability test/telemetry_data: add test cases for character escaping
telemetry: eliminate duplicate code for json output
telemetry: make help command more helpful
app/test/test_telemetry_data.c | 138 +++++++++++++++++++-------- app/test/test_telemetry_json.c | 98 +++++++++++++++++-- doc/guides/rel_notes/deprecation.rst | 8 -- lib/telemetry/rte_telemetry.h | 8 ++ lib/telemetry/telemetry.c | 51 +++++----- lib/telemetry/telemetry_data.c | 32 +++++++ lib/telemetry/telemetry_json.h | 72 ++++++++++++-- 7 files changed, 318 insertions(+), 89 deletions(-)
Signature · 1 line
2.34.1