Skip to content

P4 — Extract _subprocess.py from helpers.py and Migrate Consumers#1553

Merged
Trecek merged 6 commits intointegrationfrom
p4-extract-subprocess-py-from-helpers-py-and-migrate-consume/1542
Apr 30, 2026
Merged

P4 — Extract _subprocess.py from helpers.py and Migrate Consumers#1553
Trecek merged 6 commits intointegrationfrom
p4-extract-subprocess-py-from-helpers-py-and-migrate-consume/1542

Conversation

@Trecek
Copy link
Copy Markdown
Collaborator

@Trecek Trecek commented Apr 30, 2026

Summary

Extract the subprocess execution concern (_run_subprocess, _process_runner_result, _GH_API_SUBCOMMANDS, _is_github_cli_call) from server/helpers.py into a new server/_subprocess.py module, along with a duplicate of the _get_ctx deferred-import shim they depend on (the original stays in helpers.py for its remaining callers). Migrate all 6 tool-file consumers and 2 test files to import from the new location. Delete the extracted symbols and their orphaned imports from helpers.py. No re-export shim.

Closes #1542

Implementation Plan

Plan file: /home/talon/projects/autoskillit-runs/impl-1542-20260429-203136-929608/.autoskillit/temp/make-plan/p4_extract_subprocess_py_plan_2026-04-29_203300.md

🤖 Generated with Claude Code via AutoSkillit

Token Usage Summary

Step uncached output cache_read cache_write count time
plan 61 9.4k 760.3k 54.1k 1 4m 40s
verify 1.1k 8.6k 728.8k 47.9k 1 5m 44s
implement 48 11.4k 1.0M 69.6k 1 3m 58s
prepare_pr 24 3.7k 174.4k 25.2k 1 1m 10s
compose_pr 22 1.4k 128.9k 18.2k 1 40s
review_pr 136 17.7k 596.7k 52.4k 1 6m 20s
resolve_review 45 7.1k 1.2M 58.5k 1 7m 25s
resolve_queue_merge_conflicts 61 24.1k 2.6M 163.4k 1 8m 34s
diagnose_ci 32 3.4k 525.0k 35.1k 1 1m 42s
resolve_ci 44 3.6k 700.3k 37.3k 1 4m 9s
Total 1.6k 90.4k 8.4M 561.7k 44m 27s

Copy link
Copy Markdown
Collaborator Author

@Trecek Trecek left a comment

Choose a reason for hiding this comment

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

AutoSkillit PR Review — Verdict: approved_with_comments

Comment thread src/autoskillit/server/_subprocess.py
Copy link
Copy Markdown
Collaborator Author

@Trecek Trecek left a comment

Choose a reason for hiding this comment

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

AutoSkillit review: warning-only findings detected. See inline comments — no blocking changes required.

@Trecek Trecek added this pull request to the merge queue Apr 30, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Apr 30, 2026
Trecek and others added 4 commits April 29, 2026 21:50
Move _run_subprocess, _process_runner_result, _GH_API_SUBCOMMANDS, and
_is_github_cli_call into server/_subprocess.py. Retarget all 6 tool files
and 2 test files to import from the new location. Remove extracted symbols
and orphaned imports from helpers.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bump server file count limit from 22 to 23 and retarget the
SubprocessResult TYPE_CHECKING contract from helpers.py to
_subprocess.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Have _run_git delegate to _process_runner_result instead of inlining
the identical TIMED_OUT→(-1, stdout, error_str) logic.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Allow autoskillit.server._subprocess in the REQ-IMP-005 import allowlist
since git.py now imports _process_runner_result from it.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Trecek Trecek force-pushed the p4-extract-subprocess-py-from-helpers-py-and-migrate-consume/1542 branch from 6c4239c to 377e15b Compare April 30, 2026 04:52
@Trecek Trecek added this pull request to the merge queue Apr 30, 2026
Merged via the queue into integration with commit 941c42e Apr 30, 2026
2 checks passed
@Trecek Trecek deleted the p4-extract-subprocess-py-from-helpers-py-and-migrate-consume/1542 branch April 30, 2026 05:18
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.

1 participant