intel / cri-resource-manager

Kubernetes Container Runtime Interface proxy service with hardware resource aware workload placement policies
Apache License 2.0
176 stars 57 forks source link

Better unit test coverage of cpuallocator #972

Open marquiz opened 1 year ago

marquiz commented 1 year ago

Describe the solution you'd like

More unit tests for cpuallocator. To get good coverage, preferably initialize cpuallocator against different mocked sysfs'es, verifying e.g. cpu prioritization and allocation of whole packages, cores and threads.

Why this is needed

Avoid bugs like #971