thoth-station / mi

an experiment on Source Operation Metrics
GNU General Public License v3.0
6 stars 10 forks source link

merge functionality not compatible with data, `RuntimeWarning: Mean of empty slice` #551

Closed xtuchyna closed 2 years ago

xtuchyna commented 2 years ago

Bug description

When calling the merge functionality for mi's gathered data, the resulting metrics are all 0s.

LOGS

from workflow:

INFO:aicoe-src-ops-metrics:#### Launching thoth data analysis ####
INFO:aicoe-src-ops-metrics:Merging kebechet metrics for 2022-03-08
/opt/app-root/lib64/python3.8/site-packages/numpy/lib/nanfunctions.py:1117: RuntimeWarning: Mean of empty slice
  return np.nanmean(a, axis, out=out, keepdims=keepdims)
INFO:srcopsmetrics.entities.tools.storage:Saving knowledge file overall_kebechet_update_manager_2022-03-08.json of size 8
INFO:srcopsmetrics.entities.tools.storage:Saved on CEPH at thoth/data/ocp4-test/thoth-sli-metrics/kebechet-update-manager/overall_kebechet_update_manager_2022-03-08.json

from datafile:

[xtuchyna@localhost ~]$ aws s3 --profile upshift cp s3://thoth/data/ocp4-test/thoth-sli-metrics/kebechet-update-manager/overall_kebechet_update_manager_2022-03-08.json .
download: s3://thoth/data/ocp4-test/thoth-sli-metrics/kebechet-update-manager/overall_kebechet_update_manager_2022-03-08.json to ./overall_kebechet_update_manager_2022-03-08.json
[xtuchyna@localhost ~]$ cat overall_kebechet_update_manager_2022-03-08.json 
{
  "created_pull_requests": 0,
  "median_ttm": null,
  "merged": 0,
  "merged_by_kebechet_bot": 0,
  "merged_by_other": 0,
  "rejected": 0,
  "rejected_by_kebechet_bot": 0,
  "rejected_by_other": 0
}
xtuchyna commented 2 years ago

/assign @xtuchyna

goern commented 2 years ago

is this active?

goern commented 2 years ago

/priority backlog

sesheta commented 2 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

sesheta commented 2 years ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

harshad16 commented 2 years ago

/remove-lifecycle rotten /lifecycle frozen

xtuchyna commented 2 years ago

I think that this functionality was kind of replaced with the new Kebechet SLI/SLO metrics features, so it can be closed