github.com/GoogleCloudPlatform/testgrid@v0.0.174/cmd/state_comparer/README.md (about)

     1  # Compare States
     2  Compares TestGrid states of the same names between two directories. Useful for validating that
     3  changes to the updater or other code don't unexpectedly change the resulting state protos.
     4  
     5  ## Running
     6  You should have two directories set up: one each for the states you want to compare (e.g. "/tmp/cmp/first" and "/tmp/cmp/second")
     7  
     8  ```shell
     9  # Example basic run:
    10  bazelisk run //cmd/state_comparer -- --first="/tmp/cmp/first/" --second="/tmp/cmp/second/" --diff-ratio-ok=0.3
    11  
    12  # Example detailed/advanced run:
    13  bazelisk run //cmd/state_comparer -- --first="/tmp/tgcmp/first/" --second="/tmp/tgcmp/second/" --diff-ratio-ok=0.3 --test-group-url="http://testgrid-canary/q/testgroup/" --config="/tmp/cmp/config" --debug
    14  ```