Repository navigation
fix: do not execute providers and models in dry-run mode - #14334
Merged
Merged
Conversation
Dry-run only wraps the Docker API client, so provider services, which are external processes, were still executed: up and create ran the provider's up command, down and stop ran theirs. Skip the process in executePlugin when dry-run is set while still emitting the progress events, and return early from runPlugin so no relay is deployed or removed for a provider that never ran. The metadata command is still invoked to keep validating the binary and its required parameters. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
The docker model plugin is an external process the dry-run API client cannot intercept, so up, create and run --dry-run really pulled the models and changed the runner configuration. Skip pull and configure when dry-run is set while still emitting the progress events. The read-only ls and status commands still run, so pulling is only reported for a model that is actually missing and the model variables are still computed. Signed-off-by: Guillaume Lours <glours@users.noreply.github.com>
docker-agent
left a comment
Contributor
There was a problem hiding this comment.
Assessment: 🟢 APPROVE
ndeloof
approved these changes
Oct 13, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does
docker compose up|create|run|down|stop|pull --dry-runreally executed provider services and pulled/configured models. Both are external processes (a provider binary, thedocker modelplugin) that the dry-run API client cannot intercept:up --dry-runcould create the resource a provider manages, anddown --dry-runcould destroy it.Providers and models are now skipped in dry-run mode while their progress events are still emitted. The read-only commands (provider
metadata,docker model ls|status) still run, so the binary and required parameters are still validated, "Pulling" is only reported for a model that is really missing, and the model variables are still computed.AI tool used (if applicable)
AI Tool: Generated with Claude Code
(not mandatory) A picture of a cute animal, if possible in relation to what you did
