Skip to content

use ConfigKeys for UCS settings and remaining getValue() literals - #14472

Open
DaanHoogland wants to merge 2 commits into
ghi10752-config-foundationfrom
ghi10752-config-literals
Open

DaanHoogland wants to merge 2 commits into
ghi10752-config-foundationfrom
ghi10752-config-literals

Conversation

@DaanHoogland

@DaanHoogland DaanHoogland commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

Switches the UCS settings and the remaining string-literal ConfigurationDao.getValue("...") lookups to ConfigKeys.

Split out of #13884 (phase out the deprecated Config enum, #10752). Depends on #14467. Independent of the other PRs that depend on #14467, so it can be reviewed and merged in any order relative to them; GitHub retargets it to main once #14467 is merged.

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 18.18182% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 20.81%. Comparing base (a7194f9) to head (80a479e).

Files with missing lines Patch % Lines
...ain/java/com/cloud/user/AccountDetailsDaoImpl.java 0.00% 4 Missing ⚠️
...er/actionworkers/KubernetesClusterStartWorker.java 0.00% 3 Missing ⚠️
.../cloud/consoleproxy/StaticConsoleProxyManager.java 0.00% 3 Missing ⚠️
...r/actionworkers/KubernetesClusterActionWorker.java 50.00% 2 Missing ⚠️
...n/java/com/cloud/network/SshKeysDistriMonitor.java 0.00% 2 Missing ⚠️
...ava/com/cloud/domain/dao/DomainDetailsDaoImpl.java 50.00% 1 Missing ⚠️
...locator/GarbageCollectingStoragePoolAllocator.java 0.00% 1 Missing ⚠️
...ain/java/com/cloud/ucs/manager/UcsManagerImpl.java 0.00% 1 Missing ⚠️
...ain/java/com/cloud/consoleproxy/AgentHookBase.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##             ghi10752-config-foundation   #14472       +/-   ##
=================================================================
+ Coverage                          3.86%   20.81%   +16.95%     
- Complexity                            0    20859    +20859     
=================================================================
  Files                               494     6069     +5575     
  Lines                             42875   548528   +505653     
  Branches                           8136    73236    +65100     
=================================================================
+ Hits                               1657   114179   +112522     
- Misses                            40986   420985   +379999     
- Partials                            232    13364    +13132     
Flag Coverage Δ
uitests 3.86% <ø> (ø)
unittests 22.25% <18.18%> (?)

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 DaanHoogland mentioned this pull request Oct 23, 2026
3 of 14 tasks
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

🔴 Test Coverage Grade: D — Marginal

Metric Value
Line coverage 25.75%
Branch coverage 20.87%

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

@github-actions

Copy link
Copy Markdown

This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch.

@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-literals branch from a7fff83 to aa20afc Compare October 27, 2026 17:08
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-foundation branch from c800b90 to 1a6e967 Compare October 28, 2026 07:28
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-literals branch from aa20afc to c407c4a Compare October 28, 2026 07:51
@DaanHoogland DaanHoogland linked an issue Nov 12, 2026 that may be closed by this pull request
DaanHoogland and others added 2 commits November 13, 2026 17:14
Part of the split of #13884 (phase out the Config enum, #10752).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Also hand the ResourceManagerImplTest and ManagementServerImplTest changes
to the PR that changes the code they test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-foundation branch from 1a6e967 to a7194f9 Compare November 13, 2026 16:14
@DaanHoogland
DaanHoogland force-pushed the ghi10752-config-literals branch from c407c4a to 80a479e Compare November 13, 2026 16:14
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
4.8% 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