← Back to Pull requests

SOLR-18169: Fix Docker tests for slim distribution #5310

Closed
unknown closed this pull request without merging on Nov 09, 2026 22:18 UTC
View on GitHub
unknown unknown commented on Nov 07, 2026 07:35 UTC
Author

🤖 AI text below 🤖 (posted on behalf of Nick Shanin)

https://issues.apache.org/jira/browse/SOLR-18169

What happens today

Removing bundled examples broke Docker tests and the slim release smoketest.

On the base revision, user_volume posts example/exampledocs/manufacturers.xml. The slim image no longer includes that directory. The nightly slim job failed in user_volume, as reported in PR 5289.

The release smoketester also expects example in the slim archive, causing the nightly smoketest to fail. Removing that directory from the expected list alone is not sufficient: the next slim check tries to run the films example from the same missing directory.

What this change does

The Docker and release checks no longer rely on examples in the slim distribution.

Fourteen Docker test scripts replace a reference to the missing file with an inline command and JSON document, while keeping their query checks. The Docker PR workflow runs both full and slim distributions. Gradle passes the selected distribution to the demo tests.

The solr-demo command also needs example data. When creating a new demo without that data, it now exits with a clear message. On slim, the regular demo test checks that failure and the Tini test is skipped; both retain their existing data checks on full. The slim check has a 60-second timeout and removes the test container.

The release smoketester no longer expects example in slim. It starts slim Solr in user-managed mode, creates a core using the packaged default configset, indexes and queries a small document, checks the v2 cores API, and stops the server. Full distributions continue to run the techproducts example.

The rolling-upgrade test also loads an inline document and checks it after the upgrade. It is included because an example-free starting image has the same missing-data problem; the current default starts with the previous major's slim image, so the affected case is an override or a future default.

The slim smoke isolates its Solr environment to avoid redirecting the test into an existing installation. It also checks the default stop port and converts launcher paths for Cygwin. The demo test uses a bounded wait and cleans up its container. The separate mocked smoketester unit suite was removed after review; the intended coverage is the release smoketest itself.

Proof

Docker checks and a real release smoketest passed on earlier heads.

The full and slim Docker jobs passed at a381cb21292ed433d9911d8c8ddea1b32afd66c4. A Linux release run at dc720a2ba63aff4d2ee34beec45a173795166628 built and smoketested the full, slim and source releases, including the real slim startup, index, query and stop. Against that slim artifact, the earlier script failed on both the missing example directory and, after correcting that check, the missing films example.

At b7dce4b74984e468862fc7508d9eea827baf43ee, git diff --check, Bash syntax checks and Python syntax parsing passed.

Limits

If the slim smoketest fails during startup after launching Solr, it may leave that process running. Cleanup for this failure path is outside this PR's scope.

AI-generated description. Nick Shanin directed the work and takes responsibility for this contribution.

Diff: 472 lines (+354 / -118) across 5 files Reviewer: nick-boss-tech Review duration: 3762m
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.46) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 472 lines diff across 5 files
0.46
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.368
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5310"
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: 45.7% (MEDIUM) · Higher = larger blast radius
45.7%
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: 18.1% · Safe to merge
18.1%
Repository