Clone this repo:
  1. 08bb558 README: Notice of function removal by Dhanya Ganesh · 8 days ago master
  2. 56ec0b8 Remove waterfall parameter from InsertBuild calls in tests by David Burger · 2 weeks ago release-R72-11316.B
  3. a6bade4 Add local server by Paul Hobbs · 11 months ago factory-grunt-11164.B factory-nami-10715.B factory-nocturne-10984.B factory-nocturne-11066.B factory-rammus-11289.B firmware-grunt-11031.B firmware-nami-10775.B firmware-nocturne-10984.B firmware-octopus-11297.B firmware-rammus-11275.B firmware-servo-11011.B release-R67-10575.B release-R68-10718.B release-R69-10895.B release-R70-11021.B release-R71-11151.B stabilize-10569.B stabilize-10575.54.B stabilize-10575.58.B stabilize-10682.B stabilize-10718.111.B stabilize-10718.69.B stabilize-10718.71.B stabilize-10718.88.B stabilize-10866.B stabilize-10895.56.B stabilize-10895.B stabilize-10985.B stabilize-11005.B stabilize-11020.B stabilize-11021.84.B stabilize-11101.B stabilize-11151.59.B stabilize-11217.B stabilize-11306.B stabilize-atlas-11022.B stabilize-atlas-11177.B stabilize-atlas.10736.B stabilize-atlas.10819.B stabilize-jetstream-11056.B stabilize-meowth-10574.B stabilize-nocturne-10986.B stabilize-nocturne.10646.B stabilize-nocturne.10736.B stabilize-nocturne.10819.B stabilize-nocturne.10828.B
  4. b901d2d Add change_source to feature map by Paul Hobbs · 11 months ago
  5. 9c045e9 Fix for nonexistant CLs. by Paul Hobbs · 11 months ago

Bad CL Detector [Discontinued]

https://chromium.googlesource.com/chromiumos/infra/bad_cl_detector

Deprecated [Dec 2018]

As of Dec 2018, the underlying database calls in this repository are no longer supported in Chromite.

Purpose:

A system to detect if a given build failure is caused by bad CL.

Getting started

The virtualenv for this project is managed with pipenv. If you don't already have pipenv installed, you can install it with “pip install pipenv”.

Then run:

deactivate  # make sure you are not already in a virtualenv
pipenv --two install
protoc -I=lib/protos --python_out=lib/protos

You can fetch cidb credentials with “cros cidbcreds”. You will need to pass in the db credentials' path to the script.

Training & cross validation

Downloading training data, training a model and cross validating is done by one script:

pipenv run python lib/bad_cl_detector_driver.py --cred-dir=$CRED_DIR

Or, you can enter a virtualenv shell with “pipenv shell”, and then just run python lib/.

Currently this requires word2vec and word2int files to work. Making this self-contained is a work in progress.

Tests

Tests are run with pytest:

pipenv run pytest