Add an end-to-end integration test of mn:dev reloading an edited controller #1740
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
alvarosanchez
Part of the development mode work tracked in micronaut-projects/micronaut-core#13654. Stacked on #1730.
Adds the
dev-reloadinvoker scenario, an end-to-end test ofmn:dev:1. the project is a small Netty application with a
/hellocontroller answeringone, and a/pidcontroller answering the process id. The invoker goal writes the manifest only.2.
verify.groovyrunsmvnw mn:devin the background and waits forone3. it edits the controller to answer
twoand waits, for up to 60 seconds, fortwofrom the same process id4. 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-SNAPSHOTof core withoutmicronaut-dev, which shadows a locally published one.selector.groovyskips the scenario when the build's repository has nomicronaut-dev5.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
IllegalAccessErrorinAnnotationMetadataGenUtils: javac's processor loader has the launcher's loader as its parent, somicronaut-injectresolves from the application's runtime whilecore-processorresolves from the processor path.Landing: merge #1740 and #1743 together. The end-to-end
dev-reloadIT from #1740 is skipped until #1743 makes it resolve core 5.3.0-SNAPSHOT.