openstack-health/openstack_health
Matthew Treinish 26f188a102
Handle missing groupby_key in _group_runs_by_key
The _group_runs_by_key() helper function is there to re-organize the
data grouped by a metadata value. However, it was not fault tolerant
if the metadata key used for grouping was missing from any of the list
of runs. In the course of normal operation this should not occur,
because the metadata should be the same for all jobs in the OpenStack
subunit2sql db. But, due to a worker bug and/or a service restart we're
encountering a run that's missing a few metadata values. To make this
error non-fatal this commit augments the function to just ignore runs
where the groupby_key is not in the metadata.

Change-Id: I87087c8e3a985d883db78e008fd14f4fb9ac4e24
2018-02-09 12:17:43 -05:00
..
tests Add job name to recent failed test results 2017-11-15 17:09:54 -05:00
__init__.py Add python bits to the repo 2015-09-14 19:06:08 -04:00
api.py Handle missing groupby_key in _group_runs_by_key 2018-02-09 12:17:43 -05:00
base_aggregator.py Properly interpolate missing data for test_runs 2015-12-11 17:12:43 -05:00
distributed_dbm.py Fix changed imports in dogpile.cache 0.6.0 2016-06-07 11:52:08 -04:00
run_aggregator.py Enable Python 3 2016-02-24 19:56:46 +00:00
test_run_aggregator.py Fix pandas functions warnings 2016-06-30 17:06:50 +09:00