Chromium Code Reviews| Index: appengine/findit/waterfall/try_job_enums.py |
| diff --git a/infra/tools/cq_stats/__main__.py b/appengine/findit/waterfall/try_job_enums.py |
| similarity index 50% |
| copy from infra/tools/cq_stats/__main__.py |
| copy to appengine/findit/waterfall/try_job_enums.py |
| index 615ca98482109deb82fe8b187040bebf29541ae2..8cb644af785108712939eb0f5f0d8f996238934e 100644 |
| --- a/infra/tools/cq_stats/__main__.py |
| +++ b/appengine/findit/waterfall/try_job_enums.py |
| @@ -1,12 +1,14 @@ |
| -#!/usr/bin/env python |
| # Copyright 2015 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| -import sys |
| -from infra.tools.cq_stats import cq_stats |
| +class TryJobType(): |
| + type_compile = 'compile' |
|
stgao
2016/01/28 19:33:52
IIRC, constant usually use upper-case instead of l
chanli
2016/01/28 22:40:12
Done.
|
| + type_test = 'test' |
|
stgao
2016/01/28 19:33:52
It seems the 'type' in the var name is a bit redun
chanli
2016/01/28 22:40:12
Done.
|
| -if __name__ == '__main__': |
| - sys.exit(cq_stats.main()) |
| +class TryJobStatus(): |
|
stgao
2016/01/28 19:33:52
It seems duplicating common.buildbucket_client.Bui
chanli
2016/01/28 22:40:12
Done.
|
| + scheduled = 'SCHEDULED' |
| + started = 'STARTED' |
| + completed = 'COMPLETED' |