Supersede #904: compiler_spec call-count refactor on clean branch#911
Supersede #904: compiler_spec call-count refactor on clean branch#911
Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 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 |
Greptile SummaryThis PR refactors test assertions in Key changes:
The refactoring correctly handles the two different stub patterns:
All changes align with CLAUDE.md guidance to prefer explicit Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 47d4302 |
|
Superseded by #920, which preserves the original compiler_spec refactor and adds the lint-unblock commit. |
…920) Supersedes #911. Includes: - original compiler_spec call-count refactor - .prettierignore workflow-file ignore update to avoid unrelated lint failures Closes #855 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Test-only refactor that changes how mocks detect the hook call; production behavior is unchanged, with minimal risk beyond potential spec brittleness. > > **Overview** > Updates `spec/shakapacker/compiler_spec.rb` to remove manual `call_count` logic in several `precompile_hook` examples and instead branch the `Open3.capture3` stub based on the invoked command/executable, using shared `hook_command`/`hook_executable` variables. > > This makes the tests align with the real `Open3.capture3(env, executable, *args, chdir: ...)` signature and improves robustness for cases like quoted paths, missing executables, command chaining, and env-var-prefixed hook commands. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3df53f2. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Tests** * Expanded test coverage for precompile hook handling: special-character/quote cases, executable-vs-argument behavior to prevent shell interpretation, path traversal and security checks, environment variable extraction/merging, malformed command handling, and skip-logic scenarios. * **Documentation** * Clarified triage flow to always offer optional rationale replies for skipped/declined items, require explicit user selection before posting, and added prompt guidance for rationale replies. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Opus 4.6 <[email protected]>
Supersedes #904. Closes #855.
Summary
compiler_speccall-count refactor from Refactor remaining call_count patterns in compiler spec #904 onto a fresh main-based branchNotes
rspeclocally in this environment because therspecexecutable is unavailable.