← Back to Pull requests

Simplify versioned doc redirects with a single version regex #233

Closed
unknown closed this pull request without merging on Oct 15, 2026 08:35 UTC
View on GitHub
unknown unknown commented on Oct 14, 2026 15:07 UTC
Author

Replaces the per-version rewrite rules in .htaccess (one block of docs/api/japi rules for every x.y, x.y.z and x.y.z-Mn release) with a single pattern per doc type:

RewriteRule ^docs/([^/]+)/([0-9]+\.[0-9]+(?:\.[0-9]+(?:-M[0-9]+)?)?)/(.*)$ https://nightlies.apache.org/pekko/docs/$1/$2/docs/$3 [P]

New releases and milestones no longer need .htaccess changes. Only the per-project current pins still need updating when a project's latest version line changes.

Also removes the trailing snapshot rules, which repeated the rules at the top of the file and could never match.

Behaviour


I checked the old and new files side by side on a local Apache httpd, with [P] swapped for [R] so the target URLs were visible:
  • Existing versioned URLs (1.0, 1.7.1, 1.4.2, 1.2.0-M2, 2.0.0-M4), current (both the pinned projects and the main-snapshot fallback) and snapshot go to the same targets as before.

  • Versions that aren't released yet (e.g. 2.0.0-M5) are now proxied to nightlies, which serves its own 404 if the docs don't exist. Before, they 404'd on pekko.apache.org.

  • The old rules had unescaped dots, so paths like 1x7 matched by accident. They no longer match.

  • -RCn versions still aren't matched.
  • content/.htaccess is the same copy of src/main/public/.htaccess.

    This conflicts with #232 (http 1.4.2 release), which adds a 1.4.2 block. Whichever is merged second should drop that block, because the regex already covers 1.4.2.

    🤖 Generated with Claude Code

    Diff: 194 lines (+145 / -49) across 2 files Reviewer: He-Pin Review duration: 1047m
    All Vouch review confidence checks passed
    Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 194 lines diff across 2 files
    0.36
    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.315
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #233"
    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: 36% (MEDIUM) · Higher = larger blast radius
    36%
    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: 14.2% · Safe to merge
    14.2%