test: isolate signing fallback from global git config - #233
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (2)
🧰 Additional context used📓 Path-based instructions (7)Use oxfmt for formatting with the repository configuration; do not manually override its whitespace, wrapping, quotes, or trailing-comma decisions.📄 CodeRabbit inference engine (AGENTS.md) Files:
Add Vitest tests in the same change for SDK, CLI, scaffolder, schema, or other package logic changes; consider an `e2e/cli` scenario for CLI flow changes.📄 CodeRabbit inference engine (AGENTS.md) Files:
TypeScript/TSX のコード、コメント、文字列、テンプレートリテラルではエムダッシュ (U+2014) またはその HTML エンティティを使用しない。📄 CodeRabbit inference engine (CONTRIBUTING.ja.md) Files:
Do not use the em dash character (U+2014) in code comments, string literals, or template literals, including CLI messages, generated template bodies, and test names.📄 CodeRabbit inference engine (CONTRIBUTING.md) Files:
Run both linters through the root configurations: `oxlint --deny-warnings .` followed by `eslint .`; add configuration overrides at the root rather than per-package configs.📄 CodeRabbit inference engine (AGENTS.md) Files:
SDK、CLI、スキャフォルダーのロジックには Vitest のテストを追加し、Studio コンポーネントには jsdom と Testing Library ベースのテストを使用する。ただしテスト追加自体は PR の必須条件ではない。📄 CodeRabbit inference engine (CONTRIBUTING.ja.md) Files:
リポジトリ内の追跡対象ファイルでは、エムダッシュまたはその HTML エンティティを使用しない。Markdown、YAML、JSON、HTML、設定ファイル、生成テンプレートも含む。📄 CodeRabbit inference engine (CONTRIBUTING.ja.md) Files:
🪛 ast-grep (0.45.2)packages/cli-internal/src/git.test.ts[warning] Importing child_process exposes a command-execution surface; ensure any command/argument built from input is validated, and prefer execFile/spawn with an argument array over exec. (detect-child-process-typescript) 🔇 Additional comments (1)
WalkthroughThe signing-fallback test now pins Git to OpenPGP signing and updates the configuration entry count. This prevents global SSH signing settings from bypassing the fallback path. ChangesSigning fallback test
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change makes the signing fallback test deterministic without changing production behavior. No actionable merge-blocking risk remains after normal checks and review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1 files. ✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
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 |
Code Review BotNo reviewable code changes were analyzed. |
Greptile SummaryThe PR makes the signing-fallback unit test independent of a developer's global Git signing format.
Confidence Score: 5/5The PR appears safe to merge with no actionable defects identified. The added Git configuration is valid on supported environments, reaches the intended signing-failure path, and remains isolated by the existing test cleanup and process model.
|
| Filename | Overview |
|---|---|
| packages/cli-internal/src/git.test.ts | The fixture now overrides global SSH-signing configuration while preserving environment cleanup and the intended fallback assertion. |
Reviews (1): Last reviewed commit: "test: isolate signing fallback from glob..." | Re-trigger Greptile
Makes the signing fallback test independent of the operator's global Git configuration by isolating the fixture config and asserting the intended fallback path.
Testing:
Local Node is 24.19.0 while the repository declares 24.17.0 or 24.18.0; the test passed with only the version warning.
Summary by cubic
Makes the signing fallback test independent of the developer's global Git configuration. A global SSH signing setup previously could make the test pass without exercising the retry fallback; the fixture now pins
gpg.formattoopenpgpso the nonexistent gpg binary is actually invoked.Written for commit f4a024f. Summary will update on new commits.
Summary by CodeRabbit