← Back to Pull requests

SOLR-18169: Slim distribution no longer includes examples #5289

Closed
unknown closed this pull request without merging on Nov 06, 2026 21:49 UTC
View on GitHub
unknown unknown commented on Nov 04, 2026 08:29 UTC
Author

🤖 AI text below 🤖 (reviewed by Nick Shanin)

The slim distribution no longer includes bundled examples. Running bin/solr start -e techproducts or -e films without the default example directory now explains that slim omits examples and directs users to the full distribution. It also tells users of a full distribution to check that their installation is complete.

SOLR-18169

Changes

  • Move example content from slim into the full distribution, which retains the bundled examples. The slim Docker image inherits the packaging change.

  • Simplify the shared CLI directory validation. An invalid explicit --example-dir retains its existing error.

  • Use the full package in the five-minute tutorial, which later reads example/exampledocs/books.json. Update the installation guide and packaged README to explain that bundled examples require the full distribution, and mark example/ as absent from slim in the README's file list.

  • Add four tests covering missing default directories for techproducts and films, an invalid explicit directory, and an unsupported example with examples present. Add the changelog entry.
  • Verification

    Current head: f2166af983d2536d51e4b7ba3bc875e89cbdc1bd. Static diff whitespace checks pass. Linux tests, formatting, distribution assembly, CLI startup checks and Ref Guide checks are pending at this head.

    Earlier Linux verification at f5a5480383a2e8d25d1411ec1d813da593305952 passed both distribution installs, all 9 tests then in TestSolrCLIRunExample, tidy, and :solr:core:check -x test with Error Prone enabled. Its missing-directory regression failed against the original production code. Those results predate the revised diagnostics, films coverage and documentation updates; they do not validate the current head. Live slim example startup was not checked in that earlier run.

    Nick Shanin directed the work and takes responsibility for this contribution.

    Diff: 258 lines (+193 / -65) across 3 files Reviewer: nick-boss-tech Review duration: 3680m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 258 lines diff across 3 files
    0.39
    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.332
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #5289"
    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.2% (MEDIUM) · Higher = larger blast radius
    39.2%
    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.5% · Safe to merge
    15.5%
    Repository