Skip to content

domain dedication#13654

Open
DaanHoogland wants to merge 7 commits into
apache:mainfrom
DaanHoogland:ghi5803-domain-dedication
Open

domain dedication#13654
DaanHoogland wants to merge 7 commits into
apache:mainfrom
DaanHoogland:ghi5803-domain-dedication

Conversation

@DaanHoogland

Copy link
Copy Markdown
Contributor

Description

This PR...

Fixes: #5803

now using both co-pilot and claude… ;)

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

How Has This Been Tested?

How did you try to break this feature and the system with this change?

Copilot AI and others added 7 commits July 2, 2026 15:04
…r (issue apache#5803)

- Fix findAvoidSetForNonExplicitUserVM to check domain/account dedication before adding pods/clusters/hosts to the avoid list
- Domain-dedicated resources are now accessible to users in the same domain
- Add 4 unit tests covering same-domain, different-domain, same-account, different-account scenarios
- Use mutable ArrayList in test return values to support list.clear() calls in production code
…d tempStorage.clear()

- Use Filter without offset/limit to retrieve all dedicated resources (not just the first)
- Eliminate tempStorage variable and clear() calls to avoid potential side effects
- Code is now cleaner and consistent with correct behavior
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: dahn <daan.hoogland@gmail.com>
findAvoidSetForNonExplicitUserVM referenced _affinityGroupDao, which
has no corresponding mock in DeploymentPlanningManagerImplTest, so it
was always null via Mockito's @Injectmocks and every call NPE'd. Use
_affinityGroupDomainMapDao.listByDomain, already injected and used by
the analogous findAvoiSetForRouterVM method, to detect a domain-level
ExplicitDedication affinity group. Also add a default empty stub for
searchDedicatedPods, mirroring the existing cluster/host stubs, since
the fix now queries pods for both the account and the domain.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 26.66667% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 19.65%. Comparing base (a5b6bc3) to head (70a8698).
⚠️ Report is 422 commits behind head on main.

Files with missing lines Patch % Lines
...om/cloud/deploy/DeploymentPlanningManagerImpl.java 26.66% 21 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #13654      +/-   ##
============================================
+ Coverage     17.89%   19.65%   +1.75%     
- Complexity    16092    19794    +3702     
============================================
  Files          5936     6368     +432     
  Lines        532734   575140   +42406     
  Branches      65165    70379    +5214     
============================================
+ Hits          95347   113029   +17682     
- Misses       426711   449818   +23107     
- Partials      10676    12293    +1617     
Flag Coverage Δ
uitests 3.41% <ø> (-0.27%) ⬇️
unittests 20.92% <26.66%> (+1.92%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DaanHoogland

Copy link
Copy Markdown
Contributor Author

@blueorangutan test

@blueorangutan

Copy link
Copy Markdown

@DaanHoogland a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests

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.

User from domain can't deploy VM in pod dedicated to that domain

3 participants