Skip to content
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

Fix broken C&U collection #13843

Merged
merged 1 commit into from
Feb 10, 2017
Merged

Fix broken C&U collection #13843

merged 1 commit into from
Feb 10, 2017

Conversation

isimluk
Copy link
Member

@isimluk isimluk commented Feb 9, 2017

in cases when we don't collect disk size.

Addressing failure like:

TypeError: nil can't be coerced into Fixnum
	from app/models/vim_performance_state.rb:156:in `+'
	from app/models/vim_performance_state.rb:156:in `block in capture_disk_types'
	from app/models/vim_performance_state.rb:153:in `each_with_object'
	from app/models/vim_performance_state.rb:153:in `capture_disk_types'
	from app/models/vim_performance_state.rb:71:in `capture'
	from app/models/vim_performance_state.rb:53:in `capture'
	from app/models/metric/ci_mixin/capture.rb:216:in `perf_capture_state'

This is broken since day 0, as I didn't anticipated nil in Disk.pluck(:size)

This code is in master only. So euwe/no.

@miq-bot add_label metrics, bug, euwe/no
@miq-bot assign @gtanzillo

in cases when we don't collect disk size.

Addressing failure like:
TypeError: nil can't be coerced into Fixnum
	from app/models/vim_performance_state.rb:156:in `+'
	from app/models/vim_performance_state.rb:156:in `block in capture_disk_types'
	from app/models/vim_performance_state.rb:153:in `each_with_object'
	from app/models/vim_performance_state.rb:153:in `capture_disk_types'
	from app/models/vim_performance_state.rb:71:in `capture'
	from app/models/vim_performance_state.rb:53:in `capture'
	from app/models/metric/ci_mixin/capture.rb:216:in `perf_capture_state'
@miq-bot
Copy link
Member

miq-bot commented Feb 9, 2017

Checked commit isimluk@5c9e231 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks good. ⭐

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@gtanzillo gtanzillo added this to the Sprint 54 Ending Feb 13, 2017 milestone Feb 10, 2017
@gtanzillo gtanzillo merged commit bf31b27 into ManageIQ:master Feb 10, 2017
@isimluk isimluk deleted the fix-broken-cu branch February 11, 2017 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants