← Back to Pull requests

Use the thin Test Resources server when resolved #1764

Merged
lissam1 merged 8 files (219 lines) on Nov 26, 2026 17:01 UTC
View on GitHub
lissam1 lissam1 commented on Nov 26, 2026 10:56 UTC
Author

Summary

Fixes #1763.

The Maven launcher includes the fat Test Resources server by default. Control Panel brings in the thin server and Micronaut Management. When the application BOM aligns Management to a newer Core version, the router bundled inside the fat server can take precedence and cause a NoSuchMethodError during endpoint registration.

When the resolved graph contains the thin server, resolve the launch classpath again with that artifact first and keep the fat server off the launch classpath. This gives Maven a single set of runtime libraries to mediate, including logging. The existing embedded-dependency filter still applies to the fat-server path.

Verification

  • Added a Maven Invoker fixture that runs mvn verify with Control Panel and Core 5.2.25. It checks that the panel returns HTTP 200 during the test phase and that the server emits its Control Panel startup message.

  • Verified the standalone reproducer with public Core 5.2.25 and 5.2.26.

  • Ran ./mvnw -pl micronaut-maven-integration-tests -am -Dinvoker.test=test-resources-control-panel verify. The selected Invoker case and all 353 Maven plugin unit tests passed.
  • Diff: 219 lines (+209 / -10) across 8 files Reviewer: alvarosanchez Review duration: 365m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.46) × (1 − Review Confidence (0.72)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.46 · 219 lines diff across 8 files
    0.46
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.46 · 3 substantive comment(s)
    0.46
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    71%
    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.323
    Real PR Conversation Timeline
    6 items
    alvarosanchez alvarosanchez commented on code on Nov 26, 2026 11:03 UTC
    Code Review
    micronaut-maven-integration-tests/src/it/test-resources-control-panel/pom.xml:1
    @@ -0,0 +1,59 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    +    <modelVersion>4.0.0</modelVersion>
    +    <groupId>io.micronaut.build.examples</groupId>
    +    <artifactId>test-resources-control-panel</artifactId>
    +    <version>0.1</version>
    +
    +    <properties>
    +        <maven.compiler.release>25</maven.compiler.release>
    +        <micronaut.core.version>5.2.25</micronaut.core.version>

    can you use @it.micronaut.core.version@ to avoid hardcoding this?

    alvarosanchez alvarosanchez requested changes on Nov 26, 2026 11:04 UTC
    Changes Requested Reviewer

    Requested changes.

    lissam1 lissam1 commented on code on Nov 26, 2026 11:10 UTC
    Code Review
    micronaut-maven-integration-tests/src/it/test-resources-control-panel/pom.xml:1
    @@ -0,0 +1,59 @@
    +<?xml version="1.0" encoding="UTF-8"?>
    +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    +         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    +    <modelVersion>4.0.0</modelVersion>
    +    <groupId>io.micronaut.build.examples</groupId>
    +    <artifactId>test-resources-control-panel</artifactId>
    +    <version>0.1</version>
    +
    +    <properties>
    +        <maven.compiler.release>25</maven.compiler.release>
    +        <micronaut.core.version>5.2.25</micronaut.core.version>
    alvarosanchez alvarosanchez approved these changes on Nov 26, 2026 11:12 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    lissam1 lissam1
    Labels
    risk: low confidence: 71.9% 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: 45.5% (MEDIUM) · Higher = larger blast radius
    45.5%
    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: 71.9% · Lower = rushed or shallow review
    71.9%
    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: 12.8% · Safe to merge
    12.8%