Add a script to query test results from Big Query

Added a script to download the cros test results from Big Query.
Once the results are saved in a CSV file, the NSM values will
be calculated.

Note: Ensure to query wave-1 results before wave-0 results.

BUG=b:269681441
TEST=Use the long version or short version arguments
$ ./nsm.py nsm2 --wave <0/1/2> --start <date1> -end <date2>
$ ./nsm.py nsm2 -w <0/1/2> -s <date1> -e <date2>

The example commands to query wave-1 results and then wave-0 results
are show below:

$ ./nsm.py nsm2 -w 1 -s 2023-09-20 -e 2023-09-26
$ ./nsm.py nsm2 -w 0 -s 2023-09-20 -e 2023-09-26

And also confirm that all unit tests pass.
$ python3 nsm_unittests.py -v > /dev/null

Change-Id: Ied15a58976af04264bbdd88822f99d045a35ab09
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/bluetooth/+/4896403
Commit-Queue: Shyh-In Hwang <josephsih@chromium.org>
Reviewed-by: Dean Liao <deanliao@chromium.org>
Tested-by: Shyh-In Hwang <josephsih@chromium.org>
4 files changed
tree: bf24bc8a53c56f7b47019c8ed9a431f61a1a8d72
  1. testing/
  2. tools/
  3. .gitignore
  4. DIR_METADATA
  5. OWNERS
  6. PRESUBMIT.cfg