-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dont return an empty set when something goes wrong #122
Conversation
ManageIQ/manageiq#16042 was my first attempt to address this BZ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The fail test are exactly what we want to change :-) so we just need to change the tests to "not failing silently" instead of "fail silently" |
^^ the lines [1] of the three fail tests: and the name should also change to "not silently" :-) |
4a51485
to
ef88593
Compare
an empty set means there is no data and the platform will not try to collect the data again. Unless a manual gap detection is performed. see https://github.com/ManageIQ/manageiq/blob/91d3ef4189e8b9e9d2225b758082d52f688926da/app/models/metric/ci_mixin/capture.rb#L193-L195 and https://github.com/ManageIQ/manageiq/blob/91d3ef4189e8b9e9d2225b758082d52f688926da/app/models/metric/ci_mixin/capture.rb#L56-L58 fixes https://bugzilla.redhat.com/show_bug.cgi?id=1411894
ef88593
to
2d44649
Compare
Checked commit durandom@2d44649 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
LGTM 👍 |
p.s. the reason for the fail quietly was to allow our internal testing scripts we used to populate metrics to run without failing on missing metrics. so no problem to rais error here from our side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 LGTM
ping @simon3z |
Fine backport (to manageiq repo) details:
|
an empty set means there is no data and the platform will not
try to collect the data again. Unless a manual gap detection is
performed.
see https://github.com/ManageIQ/manageiq/blob/91d3ef4189e8b9e9d2225b758082d52f688926da/app/models/metric/ci_mixin/capture.rb#L193-L195
and
https://github.com/ManageIQ/manageiq/blob/91d3ef4189e8b9e9d2225b758082d52f688926da/app/models/metric/ci_mixin/capture.rb#L56-L58
fixes
https://bugzilla.redhat.com/show_bug.cgi?id=1411894
@yaacov please have a look if that makes sense for you
cc @agrare