Repository navigation
Conversation
- 12 本の CLI の入口で、想定外の例外(csv.Error・RecursionError など)を 2 にする。 SystemExit・KeyboardInterrupt は寄せない。読み込まれた関数は例外をそのまま返す - -OO(docstring が無い)でも使い方・argparse の説明でトレースバックにしない - 2 で前の出力を消すと約束しているもの(merge-versions・schedule-to-gantt・build-proposal)は、 想定外の例外でも消す/書きかけを残さない。scaffold は判定の外では本文を消さないと docstring に名指し - build-proposal: git の起動・手書き部分の読み・出力の書き込みを別の文言で、strerror とパスつきで報告 - check-signoff: removed.csv の読めなさを常に「UTF-8 として読めない」と言っていたのを、Unreadable の文言に - 試料(128KB 超のセル・深い入れ子・読めない手書き部分・-OO の引数なし)と、捕捉を外す変異を各テストに - spec-loop 0.30.0 Fixes #286 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
python 3.12 の Path.resolve は自分を指すリンクで RuntimeError を投げ、入口の想定外の例外に落ちて 前の出力が残っていた(docstring は「入力が読めないときは前の出力を消す」)。resolve を分けて捕まえる。 試料と、3.12 でだけ死ぬ変異を足した。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…の 2 パス目) 1 パス目の修正は resolve の例外で早く消していたので、3.12 では docs を含む印つきの場所を丸ごと消した (docstring は「docs/ を含む場所は消さない」)。realpath はリンクの輪でも投げないので、出力先の検査と 「ディレクトリが無い」の後始末が版によらず同じ順で走る。試料を足し、3.12 でだけ死ぬ変異を付け替えた。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
レビュー結果(dev-loop 手順 6)直す線: 既定(出所: cruise の確かめた線。台帳 関門
証明できないもの・BLOCKEDなし。 人間に判断してほしいこと(狭いパス・2 パス目の残課題)
残課題(1 パス目。既定の線では受入基準を破らないので直していない)
各行の「示せるか」「破る受入基準」は、計画ファイルの採否の表にある。 この周の起票0 件。不在の周なので、手順 8 の起票は訊いていない。 マージ不在の周で、このリポジトリのマージはサイトを再デプロイする。そのため、マージは利用者の判断を待つ(#476)。 |
This branch has not been deployed
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.
Fixes #286
spec-loop のスクリプトは、終了コード 1(違反)と 2(判定していない・書いていない)を分けると約束している。ところが想定外の例外は、トレースバックになって 1 で終わっていた。この PR で、12 本すべての CLI の入口で想定外の例外を 2 に寄せた。あわせて、捕まえてはいるが原因を取り違えていた箇所を直した。
__main__でexcept Exceptionを捕まえ、例外の型と文言、「判定していない」を出して 2 で終える。SystemExit・KeyboardInterruptは寄せない。-Iで単体を写して走らせるため。-OO:__doc__がNoneでも、引数なしの呼び出しは使い方の誤りとして 2 で止まる(トレースバックにならない)。merge-versions.py・schedule-to-gantt.py・build-proposal.pyなど)。merge-versions.pyはdocs・outをos.path.realpathで辿るようにした。python 3.12 のPath.resolveはリンクの輪で例外を投げるので、出力先の検査を飛ばして印つきの場所を消すことがあった(関門の 1・2 パス目で見つかった)。build-proposal.pyは、git を起動できない・手書き部分が読めない・出力を書けないを、別々の文言で出す。check-signoff.pyは、removed.csvが読めないとき、権限エラーを「UTF-8 として読めない」と言わない。-OOの引数なしなど。変異は捕捉を外すと赤になるもの。計画と受入基準(I1〜I9)、各パスの採否の表:
docs/plans/issue-286.md不在の周(
/dev-loop:cruise 474 --absent)。このリポジトリではマージがサイトを再デプロイするので、不在の線「マージ」が効かない(#476)。PR までで止める。🤖 Generated with Claude Code