Uh oh!
There was an error while loading. Please reload this page.
Refactor of Allocator classes - #9074
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@## main #9074 +/- ##
============================================
+ Coverage 18.01% 18.05% +0.03% - Complexity 16607 16653 +46
============================================
Files 6029 6030 +1 Lines 542154 542077 -77 Branches 66451 66398 -53 ============================================
+ Hits 97681 97847 +166 + Misses 433457 433222 -235 + Partials 11016 11008 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
1ff8f4a to
42d16d9CompareThis pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
537c10f to
952c273CompareUh oh!
There was an error while loading. Please reload this page.
JoaoJandre
left a comment
There was a problem hiding this comment.
LGTM, I did some basic testing, changed the allocator to FirstFit and created some VMs, the VM allocation worked fine with and without tags. However, my tests were limited, further testing would be good.
dd1eb14 to
952c273Compare952c273 to
b7cc66fCompareDaanHoogland
commented
Aug 26, 2024
@blueorangutan package |
blueorangutan
commented
Aug 26, 2024
@DaanHoogland a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Aug 26, 2024
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 10801 |
DaanHoogland
commented
Aug 26, 2024
@blueorangutan LLtest |
winterhazel
commented
Apr 16, 2026
@blueorangutan package |
blueorangutan
commented
Apr 16, 2026
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 16, 2026
Packaging result [SF]: ✖️ el8 ✖️ el9 ✖️ debian ✖️ suse15. SL-JID 17525 |
winterhazel
commented
Apr 17, 2026
@blueorangutan package |
blueorangutan
commented
Apr 17, 2026
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 17, 2026
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17537 |
winterhazel
left a comment
There was a problem hiding this comment.
I went through the code again, and confirmed that it still looks good over 4.23. There was a mistake in the GPU-enabled host prioritization logic of the FirstFitAllocator which I fixed in the latest commits.
Also, I've done some testing with the FirstFit and Random allocators using distinct (i) host, template, and service offering tags (including tag rules) combinations, (ii) guest OS rules, and (iii) CPU and memory available on the hosts. I did not test the HVM and GPU filters/priorization, but the refactored code seems to have the same logic, and there's a good amount of unit tests for it.
@DaanHoogland I think that we can merge this one with regression tests. Could you run the CI one last time?
DaanHoogland
commented
Apr 21, 2026
@blueorangutan test |
blueorangutan
commented
Apr 21, 2026
@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 22, 2026
[SF] Trillian test result (tid-15927)
|
winterhazel
commented
Apr 24, 2026
@blueorangutan package |
blueorangutan
commented
Apr 24, 2026
@winterhazel a [SL] Jenkins job has been kicked to build packages. It will be bundled with no SystemVM templates. I'll keep you posted as I make progress. |
blueorangutan
commented
Apr 24, 2026
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ el10 ✔️ debian ✔️ suse15. SL-JID 17599 |
winterhazel
commented
Apr 24, 2026
@DaanHoogland@sureshanaparti could we attempt another CI run here? |
sureshanaparti
commented
Apr 24, 2026
@blueorangutan test |
blueorangutan
commented
Apr 24, 2026
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 24, 2026
[SF] Trillian Build Failed (tid-15945) |
winterhazel
commented
Apr 27, 2026
@sureshanaparti looks like something went wrong with the CI. Could you have a look? |
sureshanaparti
commented
Apr 27, 2026
seems to be capacity issue, re-triggering... @blueorangutan test |
blueorangutan
commented
Apr 27, 2026
@sureshanaparti a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
blueorangutan
commented
Apr 28, 2026
[SF] Trillian test result (tid-15954)
|
winterhazel
commented
Apr 30, 2026
Latest test failures seem unrelated and passed on #9074 (comment), so I am proceeding with the merge. |
Description
This PR refactors some
*Allocatorclasses, improving modularity and code legibility. This PR also made some changes to logs across these classes.Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I tested the allocation process in my personal lab, using both the
RandomAllocatorandFirstFitAllocatorallocators. I tried some variation of tags and offerings, and everything looks good. Furthermore, I also added a lot of unit tests for the methods that I refactored.How did you try to break this feature and the system with this change?