fix plan gate missing plans denial - #1703
Conversation
📝 WalkthroughWalkthrough
ChangesAccount plan validation
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete. |
f76abc8 to
ad74537
Compare
|
@coderabbitai review |
✅ Action performedReview finished.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@packages/ai/tests/ai/common/account/test_pipeline_validation.py`:
- Around line 18-25: Remove the global sys.modules stubs from
test_pipeline_validation.py and move the import-stubbing logic into a reusable
helper in packages/ai/tests/ai/modules/task/conftest.py. Ensure the helper
temporarily installs depends and rocketlib only while importing
pipeline_validation, then restores any pre-existing modules or removes the stubs
afterward so collection order and installed engines cannot affect the imported
dependency.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d9c11a9e-6cb8-43ef-9aa7-b295aeb50575
📒 Files selected for processing (2)
packages/ai/src/ai/common/account/pipeline_validation.pypackages/ai/tests/ai/common/account/test_pipeline_validation.py
ad74537 to
3eaa268
Compare
fixes #1672
changes:
account_info.plansas no entitlements instead of raisingAttributeErrorai.web.AccountInfoimport type-check-only so the validator does not load the web server at runtimeplansfieldsys.modulesafter importing the validatorCodeRabbit:
3eaa268bverification:
PYTHONPATH=packages/ai/src .venv/bin/pytest packages/ai/tests/ai/common/account/test_pipeline_validation.py(12 passed; pytest warned that the local pytest install does not know the repotimeoutoption)git diff --check.venv/bin/ruff check packages/ai/src/ai/common/account/pipeline_validation.py packages/ai/tests/ai/common/account/test_pipeline_validation.py.venv/bin/ruff format --check packages/ai/src/ai/common/account/pipeline_validation.py packages/ai/tests/ai/common/account/test_pipeline_validation.py.venv/binon PATH:gitleaks,ruff check,ruff format --check