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

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: Use build end time to check whether too late to send notification. Created 4 years, 6 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
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..a9d7823131a8f0f44238c46483a3d9d94421ecfd 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_data = 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

Powered by Google App Engine
This is Rietveld 408576698