Repository navigation
Python: Support short flags in docker command - #8644
westey (westey-m) merged 2 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
-m, --memory, and --pids-limit can still override and remove configured resource limits.
Get a fresh assessment by requesting another Copilot review.
Review effort: Balanced
Findings: 1
Open (1)
What changed in this PR
Adds parsing and validation for attached or clustered Docker short flags.
Changes:
- Detects blocked
-uand-vforms. - Adds validation and argument-ordering tests.
| File | Description |
|---|---|
python/packages/tools/agent_framework_tools/shell/_docker.py |
Parses Docker short-option tokens. |
python/packages/tools/tests/test_docker_shell_tool.py |
Tests short flags and argument ordering. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
MAF Automated Review — Iteration 1
Result: Findings reported
Scope: full PR (1 commit(s)): a834df9485b6
Model: gpt-5.6-sol-fast
Overview
The change adds Docker-aware parsing for attached and clustered short options, with fail-fast validation, immutable storage of validated arguments, and focused tests for the newly supported forms. Those guards correctly close the targeted -u/-v bypasses, but the token-by-token validation does not account for detached option values. As a result, some valid existing extra_run_args configurations now fail construction when a value begins with a blocked shorthand.
Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
1 verified finding remained after source verification (1 medium) across 1 file. Details are attached to the affected lines below.
Affected areas: python/packages/tools/agent_framework_tools/shell/_docker.py

Motivation & Context
Description & Review Guide
Related Issue
Fixes #
Contribution Checklist
breaking changelabel (or add "[BREAKING]" to the title prefix, before or after any language prefix) — a workflow keeps the label and title prefix in sync automatically.