flakiness analyzer: Add apis.

BUG=chromium:818020
TEST=Ran integration tests.
Ran "./bin/run_demo" for demo.
Ran "./bin/deploy_staging", "./bin/deploy_prod" to deploy.

Change-Id: If9a7fd8ffc9f84c8d0e521c1ba31f3c1e71a7d60
Reviewed-on: https://chromium-review.googlesource.com/982516
Commit-Ready: Xixuan Wu <xixuan@chromium.org>
Tested-by: Xixuan Wu <xixuan@chromium.org>
Reviewed-by: Paul Hobbs <phobbs@google.com>
12 files changed
tree: 3301e2f0b57b0710998f90aa40ee66aca838279b
  1. bin/
  2. test_analyzer/
  3. .gitignore
  4. app_template.yaml
  5. openapi-appengine_template.yaml
  6. Pipfile
  7. Pipfile.lock
  8. PRESUBMIT.cfg
  9. pytest.ini
  10. README.md
README.md

Setup

  1. Download service account service secret files:

     gsutil cp -r gs://chromiumos-test-analyzer.appspot.com/credentials
     ./test_analyzer/
    

    It includes 2 json files, one for prod & one for staging instance.

  2. Install pipenv to create virtual environment for local tests:

     sudo pip install pipenv
    
  3. Try to run tests:

    For unittest:

     bin/run_unittests
    

    For integration test:

     bin/run_integration_tests