/external/chromium-trace/catapult/dashboard/dashboard/models/ |
alert_test.py | 12 from dashboard.models import anomaly namespace 16 """Test case for some functions in anomaly.""" 24 anomaly.Anomaly(test=utils.TestKey('SuperGPU/Bot1/foo/bar')).put() 25 anomaly.Anomaly(test=utils.TestKey('SuperGPU/Bot1/foo/bar')).put() 26 anomalies = anomaly.Anomaly.query().fetch() 34 anomaly.Anomaly(test=utils.TestKey('SuperGPU/Bot1/foo/bar')).put( [all...] |
anomaly.py | 5 """The database model for an "Anomaly", which represents a step up or down.""" 16 # Possible improvement directions for a change. An Anomaly will always have a 21 class Anomaly(alert.Alert): 24 An Anomaly can be an upward or downward change, and can represent an 27 # The number of points before and after this anomaly that were looked at 28 # when finding this anomaly. 32 # The medians of the segments before and after the anomaly. 36 # The standard deviation of the segments before the anomaly. 43 # In order to estimate how likely it is that this anomaly is due to noise, 50 # Whether this anomaly represents an improvement; if false, this anomaly i [all...] |
alert_group_test.py | 12 from dashboard.models import anomaly namespace 18 """Test case for the behavior of updating anomaly groups.""" 28 first_paint_test.improvement_direction = anomaly.DOWN 35 alert_kind='Anomaly', 40 alert_kind='Anomaly', 45 anomaly.Anomaly( 50 anomaly.Anomaly( 55 anomaly.Anomaly [all...] |
/external/chromium-trace/catapult/dashboard/dashboard/ |
associate_alerts_test.py | 19 from dashboard.models import anomaly namespace 53 """Adds sample Anomaly data and returns a dict of revision to key.""" 61 anomaly_key = anomaly.Anomaly( 67 # Add an anomaly that overlaps. 68 anomaly_key = anomaly.Anomaly( 74 # Add an anomaly that overlaps and has bug ID. 75 anomaly_key = anomaly.Anomaly( [all...] |
auto_triage.py | 24 from dashboard.models import anomaly namespace 55 This will include updating Anomaly entities, and checking whether they 95 query = anomaly.Anomaly.query( 96 anomaly.Anomaly.sheriff == key, 97 anomaly.Anomaly.bug_id == None, 98 anomaly.Anomaly.is_improvement == False [all...] |
group_report.py | 17 from dashboard.models import anomaly namespace 41 keys: A comma-separated list of urlsafe Anomaly keys (optional). 76 anomaly_query = anomaly.Anomaly.query( 77 anomaly.Anomaly.bug_id == bug_id) 96 # Anomaly entities based on one of these, then filter the resulting list. 97 anomaly_query = anomaly.Anomaly.query(anomaly.Anomaly.end_revision >= rev [all...] |
email_summary.py | 14 from dashboard.models import anomaly namespace 67 recent_anomalies = anomaly.Anomaly.query( 68 anomaly.Anomaly.sheriff == sheriff_entity.key, 69 anomaly.Anomaly.timestamp > start_time).fetch()
|
main_test.py | 13 from dashboard.models import anomaly namespace 38 foo_anomaly = anomaly.Anomaly( 68 foo_anomaly = anomaly.Anomaly(
|
alerts.py | 15 from dashboard.models import anomaly namespace 79 """Fetches the list of Anomaly keys that may be shown. 87 A list of Anomaly keys, in reverse-chronological order. 89 query = anomaly.Anomaly.query( 90 anomaly.Anomaly.sheriff == sheriff_key) 94 anomaly.Anomaly.is_improvement == False) 98 anomaly.Anomaly.bug_id == None [all...] |
main.py | 15 from dashboard.models import anomaly namespace 66 A list of Anomaly entities sorted from large to small relative change. 69 anomalies_query = anomaly.Anomaly.query( 70 anomaly.Anomaly.timestamp > oldest_time, 71 anomaly.Anomaly.sheriff == sheriff) 87 """Returns a CSS class name for the anomaly, based on percent changed.""" 143 recent_anomalies: A list of Anomaly entities sorted from large to small [all...] |
auto_bisect_test.py | 16 from dashboard.models import anomaly namespace 36 anomaly.Anomaly( 98 anomaly.Anomaly( 110 anomaly.Anomaly( 124 anomaly.Anomaly( 149 anomaly.Anomaly [all...] |
dump_graph_json.py | 19 from dashboard.models import anomaly namespace 24 # entities for each anomaly. 51 TestMetadata, Row, Anomaly and Sheriff entities). 76 # Get the Anomaly and Sheriff entities. 77 alerts = anomaly.Anomaly.GetAlertsForTest(test_key) 88 """Dumps Anomaly data for all sheriffs. 93 num_alerts: Max number of Anomaly entities (optional). 98 TestMetadata, Row, Anomaly and Sheriff entities). 119 # Add the Anomaly and Sheriff entities [all...] |
edit_anomalies_test.py | 18 from dashboard.models import anomaly namespace 35 anomaly.Anomaly(start_revision=123456, 40 anomaly.Anomaly(start_revision=123460, 45 anomaly.Anomaly(start_revision=123465, 50 return anomaly.Anomaly.query().fetch(keys_only=True)
|
alerts_test.py | 14 from dashboard.models import anomaly namespace 53 test.improvement_direction = anomaly.DOWN 59 anomaly_entity = anomaly.Anomaly( 71 anomaly_entity = anomaly.Anomaly( 84 anomaly_entity = anomaly.Anomaly( 160 anomalies = anomaly.Anomaly.query [all...] |
find_anomalies_test.py | 14 from dashboard.models import anomaly namespace 63 """Custom matcher to test if an anomaly matches a given end rev.""" 150 anomalies = anomaly.Anomaly.query().fetch() 169 anomalies, test.key, percent_changed=100, direction=anomaly.UP, 175 anomalies, test.key, percent_changed=-50, direction=anomaly.DOWN, 182 direction=anomaly.UP, start_revision=10057, end_revision=10061, 188 anomalies, test.key, percent_changed=100, direction=anomaly.DOWN, 203 test.improvement_direction = anomaly.DOWN 206 anomalies = anomaly.Anomaly.query().fetch( [all...] |
associate_alerts.py | 16 from dashboard.models import anomaly namespace 115 # Get Anomaly entities and related TestMetadata entities. 147 anomalies_with_bug = anomaly.Anomaly.query( 148 anomaly.Anomaly.bug_id == bug_id).fetch() 184 also be gotten by querying the datastore for Anomaly entities for
|
change_internal_only_test.py | 13 from dashboard.models import anomaly namespace 47 anomaly.Anomaly( 97 # Verify that Anomaly entities were changed. 98 anomalies = anomaly.Anomaly.query().fetch()
|
dump_graph_json_test.py | 16 from dashboard.models import anomaly namespace 102 anomaly.Anomaly(sheriff=sheriff_key, test=test_key).put() 104 # Anomaly entities for the requested test, as well as sheriffs for 105 # the aforementioned Anomaly, should be returned. 112 anomalies = _EntitiesOfKind(entities, 'Anomaly') 130 anomaly.Anomaly(sheriff=chromium_sheriff, test=test_key_foo).put() 131 anomaly.Anomaly(sheriff=qa_sheriff, test=test_key_bar).put( [all...] |
migrate_test_names_test.py | 13 from dashboard.models import anomaly namespace 49 """Adds sample TestMetadata, Row, and Anomaly entities.""" 53 # Also add 2 Anomaly entities. 60 anomaly.Anomaly( 88 r1: Expected end revision of first Anomaly. 89 r2: Expected end revision of second Anomaly. 92 anomalies = anomaly.Anomaly.query( 93 anomaly.Anomaly.test == key).fetch( [all...] |
auto_bisect.py | 15 from dashboard.models import anomaly namespace 148 anomalies = anomaly.Anomaly.query(anomaly.Anomaly.bug_id == bug_id).fetch() 150 raise NotBisectableError('No Anomaly alerts found for this bug.') 220 anomalies: A non-empty list of Anomaly entities. 221 index: Index of the first Anomaly entity to look at. If this is greater 241 """Compares two Anomalies to decide which Anomaly's TestMetadata is better to 257 a1: The first Anomaly entity [all...] |
email_summary_test.py | 15 from dashboard.models import anomaly namespace 41 anomaly.Anomaly( 144 for a in anomaly.Anomaly.query().fetch(): 164 self.assertIn('A <b>' + anomaly.FREAKIN_HUGE + '</b> regression', html)
|
bench_find_anomalies_test.py | 17 from dashboard.models import anomaly namespace 42 improvement_direction=anomaly.UNKNOWN, config=None): 82 anomaly_key = anomaly.Anomaly( 96 test = self._AddTestData('test', _SAMPLE_SERIES, anomaly.DOWN) 148 test = self._AddTestData('test', _SAMPLE_SERIES, anomaly.DOWN)
|
file_bug_test.py | 21 from dashboard.models import anomaly namespace 73 """Adds sample data and returns a dict of rev to anomaly key.""" 91 return anomaly.Anomaly( 179 # The anomaly entities should be updated. 180 for anomaly_entity in anomaly.Anomaly.query().fetch():
|
update_bug_with_results.py | 26 from dashboard.models import anomaly namespace 300 query = anomaly.Anomaly.query( 301 anomaly.Anomaly.bug_id == int(source_bug_id))
|
auto_triage_test.py | 17 from dashboard.models import anomaly namespace 34 improvement_direction=anomaly.UP): 40 improvement_direction: One of {anomaly.UP, anomaly.DOWN, anomaly.UNKNOWN}. 60 """Adds a sample Anomaly and returns the key.""" 65 return anomaly.Anomaly( 189 series, sheriff_key, improvement_direction=anomaly.DOWN) 213 series, sheriff_key, improvement_direction=anomaly.DOWN [all...] |