commit | 6527aad12e962d24836ce55bdbcd0463012dce24 | [log] [tgz] |
---|---|---|
author | Jared Weinstein <jaredweinstein@google.com> | Wed Feb 17 21:14:33 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Wed Feb 17 21:14:33 2021 +0000 |
tree | e8573530f8731f42b0ddabec816fe311b6b0f590 | |
parent | a07510a58510827f0d2ed181d9f8145c82d5fda2 [diff] |
Add flags to error_calculator_main This CL adds four flags to the error_calculator_main binary and python script. --simple: outputs a single value. Used to graph plots for go/tq-cobalt-error-colab. --max_value: overrides report's max_value field. --min_value: overrides report's min_value field. --max_count: overrides report's max_count field. This CL also changes how an epsilon of 0 is handled by the calculator. Previously, ε=0 was dropped as an invalid input. Now, ε=0 is assumed to be no added privacy and always returns RMSE=0. Tests have been updated to account for this change. Change-Id: I0f0658118809ed3c9e32e6d73222b0a2a6350522 Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt/+/486262 Reviewed-by: Alexandre Zani <azani@google.com> Commit-Queue: Jared Weinstein <jaredweinstein@google.com>
Cobalt is a pipeline for collecting metrics data from user-owned devices in the field and producing aggregated reports.
Cobalt includes a suite of features for preserving user privacy and anonymity while giving product owners the data they need to improve their products.
The code in the Git repo at https://fuchsia.googlesource.com/cobalt is known as Cobalt Core. It contains:
In order to have a working Cobalt system you need to also have
//third_party/cobalt
.This document describes how to develop, build and test Cobalt Core independently of Fuchsia.
For example via
git clone https://fuchsia.googlesource.com/cobalt
cd cobalt
./cobaltb.py setup
This will take a few minutes the first time. It does the following:
third_party
dir via Git submodules.sysroot
dir. This uses CIPD.The Python script cobaltb.py
in the root directory is used to orchestrate building and testing Cobalt. It was already used above in ./cobaltb.py setup
.
./cobaltb.py -h
for general helpcobaltb.py <command> -h
for help on a command./cobaltb.py build
The Cobalt build uses GN and ninja.
./cobaltb.py test
./cobaltb.py fmt
./cobaltb.py lint
See: clang-tidy for an explanation of clang-tidy configuration options.
Cobalt uses the Gerrit code review tool. Although Cobalt Core is independent of Fuchsia, we do share infrastructure with Fucshia and so much of the instructions from Fuchsia's Contributing Guide apply to Cobalt Core. The main difference is that Cobalt Core does not use Jiri--it uses Git submodules instead.
Follow the instructions here.
To create a change in Gerrit do the following:
cd ~/cobalt
git checkout -b <branch_name>
git add <files>
git commit
git push origin HEAD:refs/for/master
See the Gerrit documentation for more information.
After creating a change, to upload a patch to your change, do the following:
git add <files>
--amend
option: git commit --amend
git push origin HEAD:refs/for/master