Skip to content

use ConfigKeys for ManagementServer, agent, secondary storage and router settings - #14474

Open
DaanHoogland wants to merge 1 commit into
ghi10752-config-core-1from
ghi10752-config-core-2
Open

DaanHoogland wants to merge 1 commit into
ghi10752-config-core-1from
ghi10752-config-core-2

Conversation

@DaanHoogland

@DaanHoogland DaanHoogland commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Restructures the ManagementServer settings and switches the agent, secondary storage VM and virtual router call sites to ConfigKeys.

Split out of #13884 (phase out the deprecated Config enum, #10752). Depends on #14473; merge after it.

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?

Local verification: full reactor build (checkstyle included) and the unit tests of every touched module pass on this branch; merging all PRs of the split in any order gives no conflicts and reproduces #13884 plus its fixes.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 8.95522% with 122 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.80%. Comparing base (ab4c4c8) to head (98a3221).

Files with missing lines Patch % Lines
...java/com/cloud/server/ConfigurationServerImpl.java 3.22% 29 Missing and 1 partial ⚠️
.../secondarystorage/SecondaryStorageManagerImpl.java 6.66% 14 Missing ⚠️
...ork/router/VirtualNetworkApplianceManagerImpl.java 0.00% 10 Missing ⚠️
...om/cloud/consoleproxy/ConsoleProxyManagerImpl.java 0.00% 9 Missing ⚠️
...atastore/driver/ScaleIOPrimaryDataStoreDriver.java 14.28% 6 Missing ⚠️
.../cloud/configuration/ConfigurationManagerImpl.java 0.00% 6 Missing ⚠️
...arystorage/PremiumSecondaryStorageManagerImpl.java 0.00% 4 Missing ⚠️
...d/hypervisor/hyperv/manager/HypervManagerImpl.java 0.00% 3 Missing ⚠️
...isor/xenserver/discoverer/XcpServerDiscoverer.java 0.00% 3 Missing ⚠️
.../network/lb/InternalLoadBalancerVMManagerImpl.java 0.00% 3 Missing ⚠️
... and 24 more
Additional details and impacted files
@@                     Coverage Diff                     @@
##             ghi10752-config-core-1   #14474     +/-   ##
===========================================================
  Coverage                     20.80%   20.80%             
+ Complexity                    20846    20845      -1     
===========================================================
  Files                          6069     6069             
  Lines                        548488   548481      -7     
  Branches                      78659    73218   -5441     
===========================================================
+ Hits                         114120   114121      +1     
+ Misses                       421033   421027      -6     
+ Partials                      13335    13333      -2     
Flag Coverage Δ
uitests 3.86% <ø> (ø)
unittests 22.24% <8.95%> (+<0.01%) ⬆️

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.

@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🔴 Test Coverage Grade: D — Marginal

Metric Value
Line coverage 25.73%
Branch coverage 20.84%

Grade Scale

Grade Line Coverage Meaning
🟢 A ≥ 80% Excellent - this code sleeps well at night 😴
🟡 B 60-79% Good - almost there, don't stop now 😉
🟠 C 40-59% Acceptable - your code is wearing a seatbelt, but no airbags 😬
🔴 D 20-39% Marginal - boldly shipping where no test has gone before 🖖
⛔ F < 20% Failing - tests? what tests? 🔥

Branch coverage is shown as a secondary signal. Grade is determined by line coverage.
View full Actions run

@DaanHoogland DaanHoogland mentioned this pull request Oct 23, 2026
3 of 14 tasks
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-core-2 branch from 0ddab00 to f44e26f Compare October 23, 2026 14:58
@DaanHoogland
DaanHoogland requested a review from slavkap as a code owner October 27, 2026 17:08
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-core-2 branch from f44e26f to 1803736 Compare October 27, 2026 17:08
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-core-2 branch from 1803736 to 149bbda Compare October 28, 2026 07:51
@DaanHoogland DaanHoogland linked an issue Nov 12, 2026 that may be closed by this pull request
…ter settings

Part of the split of #13884 (phase out the Config enum, #10752).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
5.0% Coverage on New Code (required ≥ 40%)

See analysis details on SonarQube Cloud

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

phase out enum Config

1 participant