refactor(lib): combine_output を lib-subprocess に extract (順位 173a) - #205
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
💤 Files with no reviewable changes (1)
📝 Walkthrough概要新規の 変更内容lib-subprocess ライブラリ抽出と統合
関連 PR
🎯 2 (Simple) | ⏱️ ~12 分 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jun 13, 2026
6 tasks
5 tasks
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.
Summary
cli-pr-monitor/cli-push-runner/cli-push-pipeline/cli-merge-pipeline/hooks-post-tool-linter) に分散していたcombine_output8 行関数の重複実装を新規lib-subprocessworkspace crate に extracthooks-post-tool-linter由来の\nsuffix 吸収版 (production の callsite はすべてdrain_pipe経由で trailing newline を除去済の文字列を渡すため挙動差は顕在化しない、既存 4 crate の test も\nsuffix case を含まないため全 case pass)cli-pr-monitorはcombine_outputが#[allow(dead_code)]の dead code だったため、dep 追加なしで関数 + duplicate test 削除のみ実施wait_with_timeout2 variant)、173c (drain_pipe3 variant)、173d (run_cmd)、173e (optional variant merge) はdocs/todo11.md内に温存なぜこの分割か
内訳
src/lib-subprocess/(Cargo.toml + lib.rs、combine_output(&str, &str) -> String+ 5 variant test)Cargo.tomlに member 追加、Cargo.lock更新lib-subprocessdep 追加 (cli-pr-monitor を除く 4 crate).rsuse lib_subprocess::combine_output;追加docs/todo11.mdの 順位 173 entry を 173a/b/c/d/e に分割、docs/todo-summary.mdの該当行を sub-PR 構造に更新Test plan
cargo build --workspacepasscargo test --workspacepass (lib-subprocess 5 test + 5 crate workspace 全 test)cargo clippy --workspace -- -D warningsclean (push-runner-config.toml の gate と同等)注記
cargo clippy --workspace --all-targets -- -D warnings時にcli-merge-pipeline/src/feedback.rsの事前 violation 2 件 (PR feat(lint): Bundle l (順位 129/131/132) — rule⑩ + diff metadata strip #159 vintage、items-after-test-module/assertions-on-constants) が露出するが、push pipeline の clippy gate は--all-targetsを使わないため本 PR の gate 通過には影響しない。follow-up 候補cli-merge-pipeline/src/main.rs(1003 行) とhooks-post-tool-linter/src/main.rs(3316 行) は touch-trigger ratchet で file_length lint の soft-feedback が発火するが、これは block しない nag のみで PR 全体のサイズに合った分割は別 task 扱い関連
docs/todo11.md順位 173 entry — sub-PR 分割計画の詳細lib-jj-helpers) — variant 別 helper export pattern の先例Summary by CodeRabbit
Refactor
Chores