sriov-network-device-plugin icon indicating copy to clipboard operation
sriov-network-device-plugin copied to clipboard

Support GetPreferredAllocation

Open wattmto opened this issue 2 years ago • 15 comments

This PR adds support of GetPreferredAllocation API which PR #267 tried to support. This PR is based on the latest master branch to make it easier to review and merge (as I wrote in #267 (comment)).

This PR doesn't include Balanced policy I also mentioned in #267 (comment) because balanced policy doesn't seem to be the scope of PR #267.

Fixes #255

wattmto avatar Aug 30 '22 07:08 wattmto

Pull Request Test Coverage Report for Build 3141787359

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 64 of 73 (87.67%) changed or added relevant lines in 4 files are covered.
  • 62 unchanged lines in 6 files lost coverage.
  • Overall coverage increased (+0.4%) to 77.578%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/factory/factory.go 2 4 50.0%
pkg/resources/pool_stub.go 0 3 0.0%
pkg/resources/allocator.go 50 54 92.59%
<!-- Total: 64 73
Files with Coverage Reduction New Missed Lines %
pkg/resources/pciDevice.go 3 61.73%
pkg/netdevice/netResourcePool.go 4 87.14%
pkg/factory/factory.go 6 90.55%
pkg/resources/pool_stub.go 6 60.49%
pkg/netdevice/vdpa.go 15 53.97%
pkg/resources/server.go 28 85.55%
<!-- Total: 62
Totals Coverage Status
Change from base Build 2733786348: 0.4%
Covered Lines: 1640
Relevant Lines: 2114

💛 - Coveralls

coveralls avatar Sep 07 '22 09:09 coveralls

@e0ne Thank you for your review! I think I've resolved 2 of your suggestion. Logging for unsupported values is main update, so could you check one? Please let me know if there are anything else I can fix.

wattmto avatar Sep 28 '22 09:09 wattmto

Thank you!

wattmto avatar Oct 05 '22 00:10 wattmto

@Eoghan1232 I think I resolved all of your suggestion. Please let me know anything else I can fix.

wattmto avatar Nov 01 '22 02:11 wattmto

@adrianchiris can you take a look?

Eoghan1232 avatar Nov 01 '22 09:11 Eoghan1232

@adrianchiris Please let me know anything I can fix ;-)

wattmto avatar Dec 21 '22 04:12 wattmto

sure, @milran could you rebase this one ?

adrianchiris avatar Dec 21 '22 07:12 adrianchiris

@adrianchiris I rebased on top of current master.

wattmto avatar Mar 02 '23 08:03 wattmto

/test-all

adrianchiris avatar Apr 23 '23 12:04 adrianchiris

@milran appologies for the delayed review.

I gave this one a proper read, please see comments and thanks for you patience :)

adrianchiris avatar Apr 23 '23 13:04 adrianchiris

@milran hey ! do you still plan to work on this one ?

adrianchiris avatar Jul 20 '23 11:07 adrianchiris

@adrianchiris sorry for late response. I am working on this PR and I will finish by next week.

wattmto avatar Jul 21 '23 01:07 wattmto

@adrianchiris @e0ne Thank you for reviewing! I think all of the points are fixed.

wattmto avatar Jul 25 '23 06:07 wattmto

@milran is this PR still being worked on?

Eoghan1232 avatar Oct 05 '23 09:10 Eoghan1232

I've been working on it for a while, but I've gotten busy. Do you mind asking for a review in a few months?

wattmto avatar Oct 12 '23 12:10 wattmto