commit | b901d2da8b7ff3879a23e2c9034f152457196e49 | [log] [tgz] |
---|---|---|
author | Paul Hobbs <phobbs@google.com> | Mon Dec 18 20:33:23 2017 |
committer | Paul Hobbs <phobbs@google.com> | Wed Jan 17 22:47:15 2018 |
tree | 1c2ea31a3d18b853c6e817bee91786be786995e7 | |
parent | 9c045e959b6fed88662167c01ad4fe4945377340 [diff] |
Add change_source to feature map Change-Id: Iea344ebb79d810a5006381a03aa3fdc23ebe613a
https://chromium.googlesource.com/chromiumos/infra/bad_cl_detector
A system to detect if a given build failure is caused by bad CL.
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.
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 are run with pytest:
pipenv run pytest