Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 59 minutes and 58 seconds. ⌛ 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. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
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 |
There was a problem hiding this comment.
Pull request overview
Fixes a Windows-only smoke-test regression by ensuring subprocesses in smoke tests use a controlled home directory consistently across platforms (Windows Path.home() uses %USERPROFILE% rather than %HOME%).
Changes:
- Extend
smoke_env()to accept ahome=...argument and set bothHOMEandUSERPROFILE. - Update smoke tests that previously set only
HOMEto usesmoke_env(home=...)instead.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
tests/smoke/conftest.py |
Adds home parameter to smoke_env() and syncs USERPROFILE with HOME when appropriate. |
tests/smoke/test_cli_configure_smoke.py |
Uses smoke_env(home=tmp_path) so the CLI writes the secrets file into the test temp home on Windows. |
tests/smoke/test_npm_wrapper.py |
Switches HOME setup to smoke_env(home=home) for subprocess environment consistency. |
tests/smoke/test_install_script.py |
Switches HOME setup to smoke_env(home=home) for subprocess environment consistency. |
Summary
Fixes the Cross-Platform Tests Windows regression on main:
tests/smoke/test_cli_configure_smoke.py::test_cli_configure_inline_value_works_non_interactivelywas failing because the test sets onlyenv[\"HOME\"]but on WindowsPath.home()reads%USERPROFILE%, not%HOME%. The CLI subprocess wrote the secrets file to the real user home, while the test asserted against tmp_path.Changes
tests/smoke/conftest.pysmoke_env()(or new helper): when caller passeshome=..., set BOTHHOMEandUSERPROFILE.test_cli_configure_smoke.py,test_npm_wrapper.py,test_install_script.py.Test plan
pytest tests/smoke/test_cli_configure_smoke.py tests/smoke/test_npm_wrapper.py tests/smoke/test_install_script.py— 12 passedpytest tests/smoke/ -m \"not network and not real_llm\"— 21 passed🤖 Generated with Claude Code