Conversation
`emacsWithPackagesFromPackageRequires`を使用することで、 `Package-Requires`ヘッダから依存パッケージを自動解決します。 これにより依存の二重管理を避けつつ、 `emacs -Q --batch`によるクリーンな環境でのテスト実行が可能になります。 `nix-fast-build`の`checks`としてERTテストが実行されるため、 既存のCIパイプラインに自然に統合されます。
今後の挙動修正で正しい動作を壊さないための回帰テストです。 パス変換ロジック、TRAMPパス処理、モードのフック管理など主要な関数をカバーしています。 ポート付きSSHパスのhop文字列組み立てバグは`:expected-result :failed`で記録しています。
elisp-autofmtはbatchモードで実行されるため`.editorconfig`が読まれず、 `fill-column`がデフォルトの70のままになっていました。 ファイル内変数で設定することでEmacsでの保存時と`nix fmt`のフォーマット結果を一致させます。
原形の単数形を使う命名規則に合わせます。
テストファイルにはpackage-lintが不適切な警告を大量に出すため、 本体は`melpa`チェック、テストファイルは`checkdoc`と`byte-compile`に分けています。
コードレビュー結果テストインフラの追加とERTテストの導入、良いPRです。テストは Critical
Medium
Low
セキュリティセキュリティ上の問題は検出されませんでした。CIワークフローの権限設定( 🤖 Generated with Claude Code |
stableをメインに使っているのでemacs-overlayのnixpkgs-stableもこちらに追随させます。
There was a problem hiding this comment.
コードレビュー (2回目)
前回のレビュー指摘のうち、以下が対応済みであることを確認しました:
inherit (pkgs) emacsForItのビルドエラー → コミット0e5c146で修正済みnixpkgs-stableのfollows未設定 → コミットd5ca23dで追加済み
全体評価
ERTテスト基盤の導入として良くまとまっています。emacsWithPackagesFromPackageRequiresによる依存自動解決、Nix checksへのERT統合、テストの網羅性いずれも適切です。セキュリティ上の問題も見つかりませんでした。
新規指摘 (前回未指摘分のみ)
[test-coverage] Medium: auto-sudoedit-sudoedit (インタラクティブコマンド)のテストが欠落しています。auto-sudoedit-pathの結果をfind-fileに渡す結合部分の検証がないため、find-fileをスタブ化して正しいパスが渡されることを確認するテストの追加を検討してください。
その他、インラインコメントでマルチホップテストの検証項目について1件指摘しています。
🤖 Generated with Claude Code
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.
修正を開始する前に、
現状の動作をなるべく壊さないように現状を追認するテストを簡単に追加しました。
あまり深いテストはまだ書いていません。
テスト用の簡単な開発基盤も構築しました。