Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2123)

Unified Diff: appengine/findit/common/waterfall/failure_type.py

Issue 1912483004: [Findit] Add failure type to dashboard. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/findit/handlers/list_analyses.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/common/waterfall/failure_type.py
diff --git a/appengine/findit/common/waterfall/failure_type.py b/appengine/findit/common/waterfall/failure_type.py
index f2b7a772d0c6fc69c7018a6eef65cedaf65b2b48..c95c0174bc26be716c5f1a745c3bd81e2e804378 100644
--- a/appengine/findit/common/waterfall/failure_type.py
+++ b/appengine/findit/common/waterfall/failure_type.py
@@ -6,3 +6,13 @@ UNKNOWN = 0x00
INFRA = 0x01
COMPILE = 0x08
TEST = 0x10
+
+
+def GetDescriptionForFailureType(failure_type): # pragma: no cover.
+ description = {
+ UNKNOWN: 'unknown',
+ INFRA: 'infra',
+ COMPILE: 'compile',
+ TEST: 'test',
+ }
+ return description.get(failure_type, 'No description for %s' % failure_type)
« no previous file with comments | « no previous file | appengine/findit/handlers/list_analyses.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698