[LNT] r266651 - There are many situations where we can't guess age: handle them
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 18 11:43:49 PDT 2016
Author: cmatthews
Date: Mon Apr 18 13:43:48 2016
New Revision: 266651
URL: http://llvm.org/viewvc/llvm-project?rev=266651&view=rev
Log:
There are many situations where we can't guess age: handle them
Modified:
lnt/trunk/lnt/server/ui/regression_views.py
Modified: lnt/trunk/lnt/server/ui/regression_views.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/regression_views.py?rev=266651&r1=266650&r2=266651&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/regression_views.py (original)
+++ lnt/trunk/lnt/server/ui/regression_views.py Mon Apr 18 13:43:48 2016
@@ -205,11 +205,10 @@ def v4_regression_list():
regression_sizes.append(len(reg_inds))
impacts.append(calc_impact(ts, [x.field_change for x in reg_inds]))
# Now guess the regression age:
- run = reg_inds[0].field_change.run
- if run is not None:
- age = run.end_time
+ if len(reg_inds) and reg_inds[0].field_change and reg_inds[0].field_change.run:
+ age = reg_inds[0].field_change.run.end_time
else:
- age = EmptyDate()
+ age = EmptyDate()
ages.append(age)
return render_template("v4_regression_list.html",
More information about the llvm-commits
mailing list