blob: 97370281a4cb661bf7b667f2292ae8bd85656216 [file] [log] [blame] [view]
Primiano Tucci53ba8cf2019-12-05 00:47:52 +00001# Contributing to Perfetto
2This project uses [Android AOSP Gerrit][perfetto-gerrit] for code reviews,
Primiano Tuccib8083732018-04-09 15:38:37 +01003uses the [Google C++ style][google-cpp-style] and targets `-std=c++11`.
4
Primiano Tucci53ba8cf2019-12-05 00:47:52 +00005Development happens in this repo:
6https://android.googlesource.com/platform/external/perfetto/
7
8## Contributor License Agreement
9
10Contributions to this project must be accompanied by a Contributor License
11Agreement. You (or your employer) retain the copyright to your contribution;
12this simply gives us permission to use and redistribute your contributions as
13part of the project. Head over to <https://cla.developers.google.com/> to see
14your current agreements on file or to sign a new one.
15
16You generally only need to submit a CLA once, so if you've already submitted one
17(even if it was for a different project), you probably don't need to do it
18again.
19
20## Code Reviews
21
22All submissions, including submissions by project members, require review.
23We use [Android AOSP Gerrit][perfetto-gerrit] for this purpose.
24
Primiano Tuccib8083732018-04-09 15:38:37 +010025`git cl upload` from [Chromium depot tools][depot-tools] is the preferred
26workflow to upload patches, as it supports presubmits and code formatting via
27`git cl format`.
28
Primiano Tucci53ba8cf2019-12-05 00:47:52 +000029## Continuous integration
Primiano Tuccib8083732018-04-09 15:38:37 +010030
31Continuous build and test coverage is available at
Primiano Tucci48fb5032019-08-29 09:24:21 +020032[ci.perfetto.dev](https://ci.perfetto.dev).
Primiano Tuccib8083732018-04-09 15:38:37 +010033
Primiano Tucci48fb5032019-08-29 09:24:21 +020034**Trybots**:
Primiano Tucci53ba8cf2019-12-05 00:47:52 +000035CLs uploaded to Gerrit are automatically submitted to the CI and
Primiano Tucci48fb5032019-08-29 09:24:21 +020036and available on the CI page.
37If the label `Presubmit-Ready: +1` is set, the CI will also publish a comment
38like [this][ci-example] on the CL.
Primiano Tuccib8083732018-04-09 15:38:37 +010039
Primiano Tucci53ba8cf2019-12-05 00:47:52 +000040## Community
Primiano Tucci0523f422019-10-11 15:36:52 +010041
42You can reach us on our [Discord channel](https://discord.gg/35ShE3A).
43If you prefer using IRC we have an experimental Discord <> IRC bridge
44synced with `#perfetto-dev` on [Freenode](https://webchat.freenode.net/).
45
Primiano Tucci53ba8cf2019-12-05 00:47:52 +000046This project follows
47[Google's Open Source Community Guidelines](https://opensource.google/conduct/).
48
Primiano Tuccib8083732018-04-09 15:38:37 +010049[perfetto-gerrit]: https://android-review.googlesource.com/q/project:platform%252Fexternal%252Fperfetto+status:open
50[google-cpp-style]: https://google.github.io/styleguide/cppguide.html
51[depot-tools]: https://dev.chromium.org/developers/how-tos/depottools
Primiano Tucci48fb5032019-08-29 09:24:21 +020052[ci-example]: https://android-review.googlesource.com/c/platform/external/perfetto/+/1108253/3#message-09fd27fb92ca8357abade3ec725919ac3445f3af