[LNT] r305959 - Don't get regressions with unneeded states
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 21 15:01:02 PDT 2017
Author: cmatthews
Date: Wed Jun 21 17:01:02 2017
New Revision: 305959
URL: http://llvm.org/viewvc/llvm-project?rev=305959&view=rev
Log:
Don't get regressions with unneeded states
No point in getting all regressions, we are only going to use the
regressions with the states listed.
Modified:
lnt/trunk/lnt/server/db/rules/rule_update_fixed_regressions.py
Modified: lnt/trunk/lnt/server/db/rules/rule_update_fixed_regressions.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/rules/rule_update_fixed_regressions.py?rev=305959&r1=305958&r2=305959&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/rules/rule_update_fixed_regressions.py (original)
+++ lnt/trunk/lnt/server/db/rules/rule_update_fixed_regressions.py Wed Jun 21 17:01:02 2017
@@ -36,7 +36,9 @@ def regression_evolution(ts, run_id):
"""
note("Running regression evolution")
changed = 0
- regressions = ts.query(ts.Regression).all()
+ evolve_states = [RegressionState.DETECTED, RegressionState.STAGED, RegressionState.ACTIVE]
+ regressions = ts.query(ts.Regression).filter(ts.Regression.state.in_(evolve_states)).all()
+
detects = [r for r in regressions if r.state == RegressionState.DETECTED]
staged = [r for r in regressions if r.state == RegressionState.STAGED]
active = [r for r in regressions if r.state == RegressionState.ACTIVE]
More information about the llvm-commits
mailing list