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

chore: refactor NicDevice controller for better readability #82

Merged

Conversation

almaslennikov
Copy link
Collaborator

@almaslennikov almaslennikov commented Feb 24, 2025

refactor all methods that execute in parallel to process a single object and introduce a runInParallel wrapper for them (reduces code duplication and code nesting)
add more debug logging

also reduce code duplication

Signed-off-by: Alexander Maslennikov <amaslennikov@nvidia.com>
@almaslennikov almaslennikov force-pushed the nicdevice-controller-refactor branch from e2f7ca4 to f2f6a33 Compare February 24, 2025 16:12
@coveralls
Copy link

coveralls commented Feb 24, 2025

Pull Request Test Coverage Report for Build 13502548112

Details

  • 130 of 161 (80.75%) changed or added relevant lines in 1 file are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.2%) to 55.795%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/controller/nicdevice_controller.go 130 161 80.75%
Files with Coverage Reduction New Missed Lines %
internal/controller/nicconfigurationtemplate_controller.go 2 88.94%
internal/controller/nicdevice_controller.go 3 77.87%
Totals Coverage Status
Change from base Build 13435211666: -0.2%
Covered Lines: 1762
Relevant Lines: 3158

💛 - Coveralls

@almaslennikov almaslennikov merged commit f467683 into Mellanox:main Feb 26, 2025
9 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.

4 participants