fix(push-runner): quality_gate 失敗 step の出力を全量表示 (push パイプライン改善 R1) - #292
Merged
Conversation
- 失敗 step の出力を run_cmd_shell_capped (MAX_LINES=40 行の silent truncate) から run_cmd_shell_unlimited へ切替え、cargo test の失敗一覧が消えず全量表示されるよう修正 (T5「失敗経路は診断を落とさない」原則の残り半分)。成功経路は従来どおり quiet で退行なし - step 実行を run_step に集約し、判定は exit status・表示は全量の根拠を doc に明記。 run_cmd_shell_unlimited は T5 で追加済みのため lib-subprocess は無変更 - 回帰テスト mod r1_failure_output_not_truncated 2 本 (cli-push-runner 252 passed)。 capped 版に戻すと bad が「40 行に切り詰め = R1 の不具合」で fail = 素通りしない証跡 - plan2 §3 R1 に実施結果を記録 (§1 表と PR 番号 backfill は push/マージ時) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesQuality gate output handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Contributor
🤖 PR Monitor 分析 (GitHub Actions バックストップ)
Applicable Findings (Critical / High / Major)該当なし (レビュー未着・指摘 0 件) Applicable Findings (Medium 以下)該当なし Filtered (not applicable)該当なし 変更概要 (軽量サマリー)
次のアクション
|
aloekun
added a commit
that referenced
this pull request
Jul 18, 2026
#293) * perf(pre-push-review): loop_monitor judge を haiku 化 (push パイプライン改善 R2) loop_monitor の stall-detection judge を sonnet → haiku に変更。judge は cycle が threshold 回反復した時に Healthy/Unproductive の 2 択 routing を返すだけで、コード 読解や修正判断を伴わない。より複雑な 3 分類 (approved/needs_fix/user_decision) を 既に haiku で捌く post-pr-review.yaml の analyze step に前例がある。 対象は pre-push-review.yaml (L30) と pre-push-review-refute.yaml (L39) の両方。 refute_enabled = true のため実走は refute 側だが、kill-switch (refute_enabled = false) で非 refute 側へ即戻せる設計 (ADR-047) のため、片方だけ変えると戻した瞬間に 効果が消え気付けない (原則 6 / T10 で実際に起きた罠)。両 judge に「もう片方と揃えよ」 inline コメントを追加して同期義務を明記した。 yaml 設定変更のみで Rust 変更なし (exe 再ビルド不要)。takt prompt で両 workflow が 正常にパースされることを確認済み。完了記録は docs/push-pipeline-fix-plan2.md §3 R2 に追記。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs(push-pipeline): R1 (#292 マージ済み) を §1 表に backfill R1 (quality_gate 失敗 step 全量表示) が #292 としてマージされたため push-pipeline-fix-plan2.md を更新: - §1「これまでに実装した内容」表に R1 行 (#292) を追加 - §3 R1 のステータスを「実装済み・未 push」→「マージ済み #292」に更新 - §3 R1 の「§1 backfill は push/マージ時に実施」ノートを実施済みに更新 R1 当該ノートが「§1 表への行追加は push/マージ時に実施」としていたライドアロン doc 更新。R2 (親コミット) と同一 PR に含める。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 task
aloekun
added a commit
that referenced
this pull request
Aug 12, 2026
…r 7 日差し戻し 棚卸し (35 ファイル全件調査) の採否確定分を一括反映する。 判定確定 (bounded lifetime): - ADR-056 採用 (速度目標取り下げ、二重 miss 10 件/6 PR の実測を記録し却下条件を精緻化) - ADR-057 採用 (51 docs-only run / 誤 skip 0 / -54.2s/run。templates へ default-ON 反映) - ADR-058 採用 (changed_block 1 件は flaky 誤 block と確定、真の検出 0 件を正直に記録) - ADR-059 採用 (CLI=描画 / VSCode=非描画で defense-in-depth が代替。第 2 弾展開は見送り) - auto-push gate B1-loop NO-GO (観測手段欠落 + 経路消滅。ADR-043 amendment へ転記) - 順位 247 継続 (延長 1 回目)、順位 319 dogfood 不合格 (29 PR 実測 69% 重複) を記帳 計画書の退役: - file-length-enforcement-plan.md 削除 (全 6 PR 完了、分割制約は dev-conventions へ移設) - weekly-review-notification-plan.md 削除 (削除条件決着を ADR-059 § 確定判定へ転記) - todo2.md 退役 (ADR-032 ブロックは ADR-057 実現で廃止、残 2 タスクを todo22 へ移送) - auto-push-gate-dogfood.md 削除 (NO-GO 判定、ADR-043 amendment へ転記) 台帳整理: - ADR-030 Phase E (旧機構廃止) を撤回し順位 27 決着 (ADR-030 § 撤回記録) - 順位 51/225/11/20/21/22/333 を削除、todo14 孤児 4 件を採番 (433-436) - 新規起票 7 件 (437-443: rules 採否 / branch 回収 / gate telemetry / weekly-review 保存 / docs-lint 1:1 検査 / security facet 敵対的観点 / flaky 当たり面) - グローバル文書対象 17 エントリに旧環境実査の Status update 注記 - push-pipeline-fix-plan/plan2 の stale 記載を #292/#293/#294 マージ済みに更新 運用変更: - weekly reminder_threshold_days 30→7 差し戻し (ADR-070 の 30 日は routine 正常稼働が 前提だが成果物デリバリ未確立のため。再引き上げは保存問題解消後に再評価) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
aloekun
added a commit
that referenced
this pull request
Aug 12, 2026
…r 7 日差し戻し (#392) 棚卸し (35 ファイル全件調査) の採否確定分を一括反映する。 判定確定 (bounded lifetime): - ADR-056 採用 (速度目標取り下げ、二重 miss 10 件/6 PR の実測を記録し却下条件を精緻化) - ADR-057 採用 (51 docs-only run / 誤 skip 0 / -54.2s/run。templates へ default-ON 反映) - ADR-058 採用 (changed_block 1 件は flaky 誤 block と確定、真の検出 0 件を正直に記録) - ADR-059 採用 (CLI=描画 / VSCode=非描画で defense-in-depth が代替。第 2 弾展開は見送り) - auto-push gate B1-loop NO-GO (観測手段欠落 + 経路消滅。ADR-043 amendment へ転記) - 順位 247 継続 (延長 1 回目)、順位 319 dogfood 不合格 (29 PR 実測 69% 重複) を記帳 計画書の退役: - file-length-enforcement-plan.md 削除 (全 6 PR 完了、分割制約は dev-conventions へ移設) - weekly-review-notification-plan.md 削除 (削除条件決着を ADR-059 § 確定判定へ転記) - todo2.md 退役 (ADR-032 ブロックは ADR-057 実現で廃止、残 2 タスクを todo22 へ移送) - auto-push-gate-dogfood.md 削除 (NO-GO 判定、ADR-043 amendment へ転記) 台帳整理: - ADR-030 Phase E (旧機構廃止) を撤回し順位 27 決着 (ADR-030 § 撤回記録) - 順位 51/225/11/20/21/22/333 を削除、todo14 孤児 4 件を採番 (433-436) - 新規起票 7 件 (437-443: rules 採否 / branch 回収 / gate telemetry / weekly-review 保存 / docs-lint 1:1 検査 / security facet 敵対的観点 / flaky 当たり面) - グローバル文書対象 17 エントリに旧環境実査の Status update 注記 - push-pipeline-fix-plan/plan2 の stale 記載を #292/#293/#294 マージ済みに更新 運用変更: - weekly reminder_threshold_days 30→7 差し戻し (ADR-070 の 30 日は routine 正常稼働が 前提だが成果物デリバリ未確立のため。再引き上げは保存問題解消後に再評価) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
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
run_cmd_shell_capped(40 行 silent truncate) で表示していたため cargo test の失敗一覧が消えて診断できなかった問題を修正run_stepに集約しrun_cmd_shell_unlimitedへ切替え、失敗経路は全量表示・成功経路は従来どおり quiet (退行なし)mod r1_failure_output_not_truncated2 本を追加 (cap の外の診断行が残ること + 成功 step 非退行)run_cmd_shell_unlimitedは T5 (PR fix(cli-push-runner): push 拒否検知の 40 行 truncate 依存を修正 (push T5) #282) で追加済みのため lib-subprocess は無変更Context
stages/quality_gate.rsに閉じる。判定 (ok) は exit status 由来で出力量に依存しないため、全量保持のコストは失敗 step の診断のためだけに払う。capped_reporting+ cap 引き上げ案は truncate を明示するだけで受け入れ基準「truncate されず表示」を満たさず不採用。Validation
cargo test -p cli-push-runner: 252 pass (R1 の 2 本追加、250 → 252)cargo clippy -p cli-push-runner --all-targets --all-features: warning 0run_stepを capped 版に戻すと bad が「40 行に切り詰め」で fail、good は通るpnpm pushpre-push review (pre-push-review-refute): verdict=APPROVE (2026-07-18、security + simplicity 両 reviewer 承認)References
run_cmd_shell_unlimited追加元)Summary by CodeRabbit