commit | 1a63b0b6c7d224f4effe2cbb6412e17178ca3ea9 | [log] [tgz] |
---|---|---|
author | Laura Peskin <pesk@google.com> | Mon Mar 29 18:46:30 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Mon Mar 29 18:46:30 2021 +0000 |
tree | 1cbd1a2e198800a28fd9707f6d9b1dec3f177999 | |
parent | f468b508dde5483212bfe9ce5ca759aafe2841a0 [diff] |
[roll] Roll 4 submodules cobalt-registry 4066731..b32b0d2 (10 commits) third_party/boringssl c5e65a950..e32d1314b (1 commit) third_party/boringssl/src 13da18050..eb5640bc4 (69 commits) third_party/curl 02f5d89bc..f5a54925c (2 commits) Change-Id: I40d286d8eb2e2124624dee78741662e99cff3f7f Reviewed-on: https://fuchsia-review.googlesource.com/c/cobalt/+/507958 Fuchsia-Auto-Submit: Laura Peskin <pesk@google.com> Reviewed-by: Jared Weinstein <jaredweinstein@google.com> Commit-Queue: Laura Peskin <pesk@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