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

Refactor microsoft_best_fit_least_utilized method for VM Placement. #626

Conversation

billfitzgerald0120
Copy link
Contributor

Refactored method and test.
Removed old test.

This PR is based on the issue below.
ManageIQ/manageiq#12038

@miq-bot add_label refactoring
@miq-bot assign @tinaafitz

@billfitzgerald0120 billfitzgerald0120 changed the title Refactor microsoft_best_fit_least_utilized method for VM Placement. [WIP] Refactor microsoft_best_fit_least_utilized method for VM Placement. Jan 7, 2020
@miq-bot miq-bot added the wip label Jan 7, 2020
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4098

  • 40 of 40 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.03%) to 97.413%

Totals Coverage Status
Change from base Build 4096: 0.03%
Covered Lines: 3050
Relevant Lines: 3131

💛 - Coveralls

@coveralls
Copy link

coveralls commented Jan 7, 2020

Pull Request Test Coverage Report for Build 4134

  • 37 of 37 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 97.41%

Totals Coverage Status
Change from base Build 4129: 0.02%
Covered Lines: 3046
Relevant Lines: 3127

💛 - Coveralls

@billfitzgerald0120 billfitzgerald0120 force-pushed the refactor_microsoft_best_fit_least_utilized branch from 468c42b to 30285a1 Compare January 14, 2020 15:12
…ent.

Refactored method and test.
Removed old test.

This PR is based on the issue below.
ManageIQ/manageiq#12038

@miq-bot add_label refactoring
@miq-bot assign @tinaafitz

Added check for ems
Removed storage profile as requested
Changed ems logic in method as requested
@billfitzgerald0120 billfitzgerald0120 force-pushed the refactor_microsoft_best_fit_least_utilized branch from 30285a1 to 6ace6e1 Compare January 16, 2020 16:49
@miq-bot
Copy link
Member

miq-bot commented Jan 16, 2020

Some comments on commit billfitzgerald0120@6ace6e1

spec/content/automate/ManageIQ/Infrastructure/VM/Provisioning/Placement.class/methods/microsoft_best_fit_least_utilized_spec.rb

  • ⚠️ - 149 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.
  • ⚠️ - 68 - Detected allow_any_instance_of. This RSpec method is highly discouraged, please only use when absolutely necessary.

@miq-bot
Copy link
Member

miq-bot commented Jan 16, 2020

Checked commit billfitzgerald0120@6ace6e1 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

@billfitzgerald0120 billfitzgerald0120 changed the title [WIP] Refactor microsoft_best_fit_least_utilized method for VM Placement. Refactor microsoft_best_fit_least_utilized method for VM Placement. Jan 16, 2020
@miq-bot miq-bot removed the wip label Jan 16, 2020
@gmcculloug
Copy link
Member

@lfu Looks like your review comments were addressed. Anything else on this one or is it ready to merge?

@gmcculloug gmcculloug merged commit 4043fa5 into ManageIQ:master Jan 27, 2020
@gmcculloug gmcculloug added this to the Sprint 129 Ending Feb 3, 2020 milestone Jan 27, 2020
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.

7 participants