SOLR-18169: Fix Docker tests for slim distribution #5310
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
nick-boss-tech
🤖 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_volumepostsexample/exampledocs/manufacturers.xml. The slim image no longer includes that directory. The nightly slim job failed inuser_volume, as reported in PR 5289.The release smoketester also expects
examplein 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 thefilmsexample 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-democommand 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
examplein 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 thetechproductsexample.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 atdc720a2ba63aff4d2ee34beec45a173795166628built 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 missingexampledirectory and, after correcting that check, the missingfilmsexample.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.