tree: 936e270230ce2964db35b22bb85804af084a28b7 [path history] [tgz]
  1. auditor/
  2. bin/
  3. scripts/
  4. summary/
  5. .gitignore
  6. DEPS

Network Traffic Annotations

Network traffic annotations provide transparency and auditability for the data that Chrome sends to the network. For an introduction, please see docs/ This folder provides tools to ensure that every operation in the code base that requires annotation, is annotated, and annotations are sound and complete.

Traffic Annotation Auditor

This is the main executable for all the tests. It runs Traffic Annotation Extractor python script to check the repository, extract annotations, and perform required tests and maintenance. See more details in tools/traffic_annotation/auditor/

Traffic Annotation Extractor

Traffic Annotation Auditor uses this python script (located in tools/traffic_annotation/scripts/ to parse the code and extract required data for testing and maintenance.

Building the Checkers

We do not want every developer to have to build the auditor, and so we store pre-built binaries in a Google Cloud Storage bucket and retrieve them via gclient hooks. The binaries are in tools/traffic_annotation/bin/[platform] folder. To roll new versions of the binaries, please see tools/traffic_annotation/bin/

Automatic Annotation Tests

Network traffic annotations are tested in commit queue using tools/traffic_annotation/scripts/ This test is currently run on Linux and Windows trybots, but may expand in future to other platforms. To perform this test fast enough for a trybot and to avoid spamming the commit queue if an unexpected general failure happens (see next item), trybot tests are run in error resilient mode and only on the changed files. A more complete test runs on an FYI bot using tools/traffic_annotation/scripts/ and alerts if tests are not running as expected.

Emergency Brake

In the event that clang changes something that requires the tool to be rebuilt (or for some other reason the tests don‘t work correctly), please disable the trybot test by setting the TEST_IS_ENABLED flag to False in tools/traffic_annotation/scripts/, and file a bug and cc the people listed in OWNERS; they’ll be on the hook to rebuild and re-enable the test.

Annotations Summary

tools/traffic_annotation/summary/annotations.xml keeps an up to date summary of all annotations in the repository. This file is automatically updated by Traffic Annotation Auditor.