commit | e05dd2585f0f335e4191a647261dd70694fb0cb5 | [log] [tgz] |
---|---|---|
author | Zach Bush <zmbush@google.com> | Fri Oct 02 20:13:04 2020 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Fri Oct 02 20:13:04 2020 +0000 |
tree | 4365ac8ac050b61ae2b35261416465ed24b97d57 | |
parent | 2ea98193255ce401c5835255321e05ddf75af644 [diff] |
Reland "[Cobalt 1.1] Change which system_profile is used" This is a reland of bf75aaa0708280805ffed7b64d420942875fda05 Fixes construction issue when MetadataBuilder is provided an empty system_profile_cache_dir. Original change's description: > [Cobalt 1.1] Change which system_profile is used > > Currently whenever an observation is created, it uses whatever the > system_profile is at the time. For some locally-aggregated metrics that > may not be desirable. > > This change adds a SystemProfilePolicy selection that lets the user > decide wether they want the FIRST_SEEN or LAST_SEEN system profile to be > associated with their observations. > > Bug: 36205 > Change-Id: I5aba1076b7969d67bda1aa54e8afa16fe93946dc > Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt/+/390713 > Reviewed-by: Alexandre Zani <azani@google.com> > Commit-Queue: Zach Bush <zmbush@google.com> Bug: 36205 Change-Id: Id220201fb7ab36644543a7123e0816be669efe14 Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt/+/434219 Reviewed-by: Laura Peskin <pesk@google.com> Commit-Queue: Zach Bush <zmbush@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