← Back to Pull requests

GH-3894: Prepare RC: stage through nexus-staging-maven-plugin #3895

Closed
unknown closed this pull request without merging on Oct 28, 2026 22:32 UTC
View on GitHub
unknown unknown commented on Oct 28, 2026 17:20 UTC
Author

Rationale for this change

prepare-rc.sh deploys with a plain mvn deploy, lets Nexus implicitly create a staging repository, and then guesses which open repository in the org.apache.parquet profile was created. This PR switches to using an explicit repository creation which returns the exact repo-id we need to validate.

Note: We don't need to do anything for Cancel or Release scripts since they already require the repo-id. Prepare is the only step which currently makes the repository without being sure which one it made.

What changes are included in this PR?

Maven Changes


- Adds nexus-staging-maven-plugin 1.7.0 to the apache-release profile with extensions enabled. Replacing maven-deploy-plugin for mvn deploy under that profile

Automation Script Changes


  • prepare-rc.sh passes -DstagingDescription="Apache Parquet <version> RC<n>" and validates using the repository id (no check for a single repository or fail check)

  • If the deploy fails, or the ID cannot be read, the script names the repositories it created by reading the Created staging repository with ID lines from target/nexus-deploy.log

  • Removes nexus_find_open_staging_repo (and its one-open-repo guard) and nexus_close_staging_repo, which have no remaining callers.
  • Are these changes tested?

    Yes.

  • New bats tests

  • I used my personal Apache credentials to do a test of the script using a throwaway 0.0.0-test version
  • Are there any user-facing changes?

    For release managers only. release:perform also activates the apache-release profile, so a manual release now stages through the plugin too:

  • release:perform closes the staging repository itself, so the manual "Close" step in Nexus is no longer needed.

  • To give the repository the description the release scripts expect, pass it through: ./mvnw release:perform -DskipTests -Darguments="-DskipTests -DstagingDescription='Apache Parquet <version> RC<n>'".

  • The repository ID for the vote email is printed in the Maven output.
  • Steps 2 and 3 of the release guide need a follow-up update in the parquet-site repository.

    Closes #3894

    🤖 Generated in tandem with Claude Code

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: RussellSpitzer Review duration: 312m
    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 · 285 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.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3895"
    general weight: 0.35
    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.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    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%