← Back to Pull requests

Fix native CPU metric reflection and document ATP/UCP metrics workaround #1413

Closed
unknown closed this pull request without merging on Oct 29, 2026 14:20 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 16:06 UTC
Author

Native CPU metric reads can throw MissingReflectionRegistrationError for OperatingSystemMXBean.getProcessCpuTime() with the Micrometer 6.1.x artifacts used here. Add the missing reflection entry and a CPU-metric smoke test that runs without OCI credentials.

The ATP wallet + UCP metrics initialization cycle is fixed at its source in micronaut-micrometer#1298, which defers JDBC pool binding until startup. Registry lookups from executor metrics during HTTP-client construction, OCI SDK requests, or HTTP responses can otherwise force the datasource that is still initializing. Depending on lookup order and thread, this causes Recursive update, StackOverflowError, or a deadlock. The UCP metadata added in micronaut-sql#1833 closes that cycle; SQL 6.3.4 had no UCP pool metadata.

Keep the SDK filter unchanged: the shared fix handles both paths without dropping startup SDK metrics. The guide documents disabling micronaut.metrics.binders.jdbc.enabled until a Micrometer release includes #1298. This keeps HTTP and SDK metrics enabled; disabling web metrics alone leaves the SDK lookup path active. Vault fixtures explicitly disable OCI export so they also work with Micrometer's startup registry initialization.

The native entry is a temporary bridge. The same registration was merged into Micrometer 6.0.x in micronaut-micrometer#1239, but is absent from 6.1.0/6.1.1. The upstream upgrade is tracked by micronaut-core#13110. Remove this module's reflect-config.json once its Micrometer dependency supplies the registration after merge-up to 6.1.x/6.2.x; retain the native smoke test.

Validation: affected module checks and the CPU smoke test pass locally, both with the released Micrometer dependency and with #1298's fixed source substituted through an isolated composite build. The same reflection entry and smoke test passed in GraalVM 25 locally and in Oracle Cloud CI, including the live native MicrometerTest. The shared initialization fix has its real HTTP-client regression in #1298, where all 249 core tests pass.

Diff: 290 lines (+217 / -73) across 3 files Reviewer: lissam1 Review duration: 1333m
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 290 lines diff across 3 files
0.40
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.339
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1413"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 39.9% (MEDIUM) · Higher = larger blast radius
39.9%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.7% · Safe to merge
15.7%