• Bella Bah's avatar
    Rewrite Network Traffic Annotation Auditor from C++ to Python · aec7b139
    Bella Bah authored
    tools/traffic_annotation/auditor/ is currently written in C++ which
    poses some problems in the way of convenience. Rewriting it in
    Python overcomes some of these issues.
    
    Missing:
     - Exporter to annotations.xml.
     - Exporter to tsv.
     - Writing to a summary file.
     - Matching/completing partial annotations.
     - Handling exceptions list.
     - Performing all other remaining checks on annotations.
     - Raise an error on mutable tags.
     - Safelist filtering of extracted annotations.
     - Enforcing consistency between summary/grouping.xml and
       new annotations.
     - Checking for reserved ids and deprecated hash codes.
     - ID checking on annotations.
     - Handling removed annotations and deprecated annotations.
     - The remaining TODOs found in this CL.
    
    Parity:
     - Extracting annotations according to the compiled proto.
     - Checking annotations' completeness.
     - Catching fatal/syntax errors.
     - "deserialization" of extracted annotations.
    
    Bug: 1119417
    Change-Id: Idd09b89577342e59011441b30a54437234ddb1bc
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2364935
    Commit-Queue: Mohamadou Bella Bah <bellabah@chromium.org>
    Reviewed-by: default avatarRamin Halavati <rhalavati@chromium.org>
    Reviewed-by: default avatarNicolas Ouellet-Payeur <nicolaso@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#802831}
    aec7b139
auditor_tests.py 3.68 KB