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

Unified Diff: appengine/findit/waterfall/build_util.py

Issue 2116073002: [Findit] Fix redirect bug and update template for waterfall/culprit. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Add one unittest. Created 4 years, 5 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 | « appengine/findit/waterfall/build_info.py ('k') | appengine/findit/waterfall/buildbot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/build_util.py
diff --git a/appengine/findit/waterfall/build_util.py b/appengine/findit/waterfall/build_util.py
index 362f6114eff9caea10cde03413dae7bcf8ef85e1..d14e8715eae08a6b979d49b9c7d4f733d2d51879 100644
--- a/appengine/findit/waterfall/build_util.py
+++ b/appengine/findit/waterfall/build_util.py
@@ -55,3 +55,10 @@ def DownloadBuildData(master_name, builder_name, build_number):
build.put()
return build
+
+
+def GetBuildEndTime(master_name, builder_name, build_number):
+ build = DownloadBuildData(master_name, builder_name, build_number)
+ build_info = buildbot.ExtractBuildInfo(
+ master_name, builder_name, build_number, build.data)
+ return build_info.build_end_time
« no previous file with comments | « appengine/findit/waterfall/build_info.py ('k') | appengine/findit/waterfall/buildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698