Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Fix fsoc optimize configure fails if multiple workloads match filter - #344

Merged
pnickolov merged 3 commits into
cisco-open:mainfrom
linkous8:OPTSERV-1156-fsoc-configure-fails-if-multiple-workloads-match-filter
Apr 22, 2024
Merged

pnickolov merged 3 commits into
cisco-open:mainfrom
linkous8:OPTSERV-1156-fsoc-configure-fails-if-multiple-workloads-match-filter

Conversation

@linkous8

@linkous8 linkous8 commented Apr 11, 2024 •

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Apr 11, 2024 •

Copy link
Copy Markdown

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

⌂ 换网址