Repository navigation
Add Bounded Docker Lint Runner - #888
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a hub-hosted scripts/docker_lint.py runner to make the fleet’s Docker-based lint suite bounded (timeouts everywhere) and observable (targets, phases, per-linter start/complete markers), then updates fleet documentation and skill guidance to route local/headless Docker linting through the wrapper.
Changes:
- Add
scripts/docker_lint.pyimplementing bounded, phase-marked Docker lint execution with digest resolution and timeout cleanup. - Add unit tests for runner output classification (quiet success, zero targets, timeout vs container failure) and argument handling for whitespace paths.
- Update
OPERATIONS.md,GOVERNANCE.md, and the comment-and-doc-style skill distributions to reference the wrapper as the standard procedure.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| scripts/docker_lint.py | New bounded/observable Docker lint wrapper with digest resolution and per-step reporting. |
| scripts/tests/test_docker_lint.py | New tests covering runner output and failure-mode distinctions. |
| scripts/README.md | Documents the new wrapper and its behavioral guarantees. |
| OPERATIONS.md | Replaces manual Docker invocations with python3 scripts/docker_lint.py guidance. |
| GOVERNANCE.md | Updates the “known-working invocations” section to standardize on the wrapper. |
| .github/skills/comment-and-doc-style/SKILL.md | Routes Docker lint authorization guidance through the wrapper. |
| .agents/skills/comment-and-doc-style/SKILL.md | Same guidance update for the agent skill distribution. |
| .claude-plugin/fleet-skills/skills/comment-and-doc-style/SKILL.md | Same guidance update for the Claude plugin distribution. |
| .claude-plugin/fleet-skills/.source-digest | Updates generated skill distribution source digest. |
Suppressed comments (1)
scripts/docker_lint.py:133
- run_step() currently cannot pass capture_output to the runner or return the CompletedProcess, which makes it hard to give the digest-resolution command the same visible START/COMPLETE markers described in GOVERNANCE.md. Let run_step optionally capture output and return the CompletedProcess so other steps (like docker image inspect) can be wrapped consistently.
def run_step(
label: str,
command: Sequence[str],
timeout: int,
runner: Callable[..., subprocess.CompletedProcess[str]],
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Suppressed comments (1) from review round 1:
Fixed in 273f39e. |
Closes #887
Summary
Verification
OPERATIONS.mdpython3 scripts/docker_lint.py --timeout 300