[LNT] r308238 - So we can reingest LNT data, ignore metrics with id in the name

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 17 17:26:21 PDT 2017


Author: cmatthews
Date: Mon Jul 17 17:26:21 2017
New Revision: 308238

URL: http://llvm.org/viewvc/llvm-project?rev=308238&view=rev
Log:
So we can reingest LNT data, ignore metrics with id in the name

The REST API adds these keys so that you can delete etc, but we need to
ignore them when they are going back in.

Modified:
    lnt/trunk/lnt/server/db/testsuitedb.py

Modified: lnt/trunk/lnt/server/db/testsuitedb.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/db/testsuitedb.py?rev=308238&r1=308237&r2=308238&view=diff
==============================================================================
--- lnt/trunk/lnt/server/db/testsuitedb.py (original)
+++ lnt/trunk/lnt/server/db/testsuitedb.py Mon Jul 17 17:26:21 2017
@@ -897,7 +897,7 @@ class TestSuiteDB(object):
 
             samples = []
             for key, values in test_data.items():
-                if key == 'name':
+                if key == 'name' or key == "id" or key.endswith("_id"):
                     continue
                 field = field_dict.get(key)
                 if field is None and key != 'profile':




More information about the llvm-commits mailing list