adityamparikh opened a new pull request, #339:
URL: https://github.com/apache/solr-mcp/pull/339
## Summary
Closes #336. `dockerIntegrationTest` no longer runs `docker info` while
Gradle configures the build. With the configuration cache on, that probe made
every Gradle command fail, even `./gradlew help`, on any machine without a
`docker` binary.
The task now always depends on the image task for its mode, and Docker is
checked where Spring Boot and Testcontainers projects usually check it: in the
tasks and tests that use it.
```
before after
────── ─────
configuration: docker info ──┬─ ok → dependsOn configuration:
dependsOn(jibDockerBuild | bootBuildImage)
├─ fail → doFirst{throw}
└─ no binary → configuration cache fails the
whole build
execution: jibDockerBuild → tests execution:
jibDockerBuild → tests
(no
Docker: Jib fails with its own error)
```
Why this shape:
- The [Gradle 9.8.2
docs](https://docs.gradle.org/9.8.2/userguide/configuration_cache_requirements.html#config_cache:requirements:external_processes)
say build scripts "should avoid running external processes at configuration
time".
- Spring Boot's own build has no Docker probe. Its `DockerTestPlugin`
registers a `dockerTest` task, and its `DockerTestBuildService` only limits how
many Docker test tasks run at once.
- Our Testcontainers classes, including the three in `containerization/`,
already declare `@Testcontainers(disabledWithoutDocker = true)`, so the tests
handle missing Docker themselves.
## Evidence
| Check | Before | After |
|---|---|---|
| `./gradlew help`, no `docker` on `PATH` | exit 1: "failed to compute value
with custom source … (output of the external process 'docker')" | exit 0 |
| `dockerIntegrationTest --dry-run` (JVM / `-Pnative` / `-Pnative
-Pprofile=http`) | `jibDockerBuild` / `bootBuildImage` / `bootBuildImage` |
same |
| `dockerIntegrationTest` with `DOCKER_EXECUTABLE=/nonexistent/docker` |
"Docker is not available…" (only when the binary exists) | `:jibDockerBuild`
fails: "Build to Docker daemon failed, perhaps you should make sure Docker is
installed and you have correct privileges to run it" |
| `./gradlew build` | — | passes: 518 tests, 0 failures, 0 skipped |
| `./gradlew dockerIntegrationTest` | — | passes: Http 6, McpClientStdio 48,
Stdio 4; 0 skipped |
## Merge Danger
**Door:** two-way — one block in `build.gradle.kts`; reverting restores the
probe.
**Blast Radius:** low — only `dockerIntegrationTest` wiring changes, and
only for machines without Docker; CI runners have Docker and get the same
dependency as before.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]