fix: block public builds of code execution agents#13875
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughCSVAgent-related code-execution handling is added to validation constants and test coverage. The PR blocks ChangesCode-execution guard expansion
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 9✅ Passed checks (9 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 |
✅ Test Coverage AdvisorNo source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.10.2 #13875 +/- ##
=================================================
Coverage ? 58.61%
=================================================
Files ? 2307
Lines ? 220979
Branches ? 34177
=================================================
Hits ? 129524
Misses ? 89976
Partials ? 1479
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Summary
allow_dangerous_codetoggle as a tweak-protected sandbox boundary.Test plan
uv run ruff check src/lfx/src/lfx/utils/flow_validation.py src/lfx/tests/unit/utils/test_flow_validation.py src/lfx/tests/unit/test_process.py src/backend/tests/unit/test_process.pyuv run pytest src/backend/tests/unit/test_process.py::test_apply_tweaks_blocks_csv_agent_dangerous_code_flag src/backend/tests/unit/test_chat_endpoint.py::test_build_public_tmp_rejects_code_execution_components -q(cd src/lfx && uv sync --group dev && uv run pytest tests/unit/utils/test_flow_validation.py tests/unit/test_process.py -q)Summary by CodeRabbit
Bug Fixes
Tests