Skip to content

Add Bounded Docker Lint Runner - #888

Merged
ptr727 merged 2 commits into
developfrom
fix/887-bounded-docker-lint
Aug 21, 2026
Merged

ptr727 merged 2 commits into
developfrom
fix/887-bounded-docker-lint

Conversation

@ptr727

@ptr727 ptr727 commented Aug 21, 2026

Copy link
Copy Markdown
Owner

Closes #887

Summary

  • add a hub-hosted Docker lint runner with bounded commands and visible phase markers
  • distinguish zero targets, timeouts, container failures, and quiet success
  • route fleet instructions through the runner and regenerate skill distributions

Verification

  • full local non-Docker gate from OPERATIONS.md
  • 755 unit tests
  • all six Docker linters through python3 scripts/docker_lint.py --timeout 300

Copilot AI lite review requested due to automatic review settings August 21, 2026 03:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.py implementing 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.

Comment thread scripts/docker_lint.py Resolved
Comment thread scripts/docker_lint.py Resolved
Copilot AI review requested due to automatic review settings August 21, 2026 03:15
@ptr727

ptr727 commented Aug 21, 2026

Copy link
Copy Markdown
Owner Author

Suppressed comments (1) from review round 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 digest resolution the same visible markers.

Fixed in 273f39e. run_step() now accepts capture_output, returns the completed process, and wraps every digest inspection with visible bounded markers.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated no new comments.

@ptr727
ptr727 marked this pull request as ready for review August 21, 2026 03:26
@ptr727
ptr727 merged commit 2cfc3fe into develop Aug 21, 2026
8 checks passed
@ptr727
ptr727 deleted the fix/887-bounded-docker-lint branch September 7, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants