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 fsoc optimize configure fails if multiple workloads match filter #344

Conversation

linkous8
Copy link
Contributor

@linkous8 linkous8 commented Apr 11, 2024

Description

Try pruning inactive workloads during workload/report search for optimization configure command.

Type of Change

  • Bug Fix
  • New Feature
  • Breaking Change
  • Refactor
  • Documentation
  • Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2024

Codecov Report

Attention: Patch coverage is 69.69697% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 15.49%. Comparing base (00d0c6f) to head (cc067eb).
Report is 50 commits behind head on main.

Files Patch % Lines
cmd/optimize/configure.go 55.55% 5 Missing and 3 partials ⚠️
cmd/optimize/optimize.go 0.00% 1 Missing ⚠️
test/config.go 92.85% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #344       +/-   ##
===========================================
- Coverage   26.88%   15.49%   -11.39%     
===========================================
  Files          44      142       +98     
  Lines        4564    11369     +6805     
===========================================
+ Hits         1227     1762      +535     
- Misses       3242     9479     +6237     
- Partials       95      128       +33     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pnickolov
pnickolov previously approved these changes Apr 12, 2024
- added unit test for covering optimize configure when multiple workloads match but some are inactive
- fixed missing log param
- fixed should be casting isActive to bool
- added test utility SetActiveConfigProfileServer which forwards all api calls to a given url until torn down with returned function
@pnickolov pnickolov marked this pull request as ready for review April 20, 2024 03:28
pnickolov
pnickolov previously approved these changes Apr 20, 2024
@pnickolov pnickolov merged commit ec1290e into cisco-open:main Apr 22, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants