← Back to Pull requests

Add an end-to-end integration test of mn:dev reloading an edited controller #1740

Open
unknown opened this pull request with 219 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 10, 2026 20:17 UTC
Author

Part of the development mode work tracked in micronaut-projects/micronaut-core#13654. Stacked on #1730.

Adds the dev-reload invoker scenario, an end-to-end test of mn:dev:

1. the project is a small Netty application with a /hello controller answering one, and a /pid controller answering the process id. The invoker goal writes the manifest only.
2. verify.groovy runs mvnw mn:dev in the background and waits for one
3. it edits the controller to answer two and waits, for up to 60 seconds, for two from the same process id
4. it adds a controller and waits for it to answer, again from the same process
5. it signals the Maven JVM, as Ctrl+C would, and checks that Maven and the launcher exit, that no process is left, and that the port is free

The background build resolves into its own repository. It looks first in the repository of the build running the tests, then in the tests' repository, which has the plugin, then Maven Central. It does this because the central snapshots repository now serves a 5.3.0-SNAPSHOT of core without micronaut-dev, which shadows a locally published one. selector.groovy skips the scenario when the build's repository has no micronaut-dev 5.3.0-SNAPSHOT. Locally the scenario takes 28 to 48 seconds.

It depends on a core fix that is not merged yet. Without the fix, the first reload fails with an IllegalAccessError in AnnotationMetadataGenUtils: javac's processor loader has the launcher's loader as its parent, so micronaut-inject resolves from the application's runtime while core-processor resolves from the processor path.

Landing: merge #1740 and #1743 together. The end-to-end dev-reload IT from #1740 is skipped until #1743 makes it resolve core 5.3.0-SNAPSHOT.

Diff: 219 lines (+164 / -55) across 2 files Reviewer: alvarosanchez Review duration: 61926m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.44) × (1 − Review Confidence (0.45)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 219 lines diff across 2 files
0.44
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
0.02
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
44%
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
Shallow Review Depth shallow_review_depth
0.344
Diff Size diff_size
0.323
Real PR Conversation Timeline
1 comments
"Review active on #1740"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 44.7% 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: 43.7% (MEDIUM) · Higher = larger blast radius
43.7%
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: 44.7% · Lower = rushed or shallow review
44.7%
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: 24.2% · Safe to merge
24.2%