Repository navigation
CI: modify testcase to p3 - #17047
Conversation
📝 WalkthroughWalkthroughThe pull request changes pytest priority markers from p1 or p2 to p3 across REST API and SDK test suites. Test implementations, inputs, assertions, and control flow remain unchanged. ChangesPytest priority updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
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.
🧹 Nitpick comments (1)
test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py (1)
28-28: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winResolve the Ruff RUF005 warning on this touched line.
The p1→p3 change is correct, but the list concatenation still triggers Ruff. Prefer iterable unpacking:
Suggested fix
- pytest.param(lambda r: {"ids": r[:1] + ["invalid_id"] + r[1:5]}, marks=pytest.mark.p3), + pytest.param(lambda r: {"ids": [*r[:1], "invalid_id", *r[1:5]]}, marks=pytest.mark.p3),🤖 Prompt for 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. In `@test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py` at line 28, Update the lambda in the pytest.param case to construct the ids list using iterable unpacking instead of list concatenation, while preserving the existing placement of "invalid_id" between r[:1] and r[1:5] and retaining the p3 mark.Source: Linters/SAST tools
🤖 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.
Nitpick comments:
In
`@test/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.py`:
- Line 28: Update the lambda in the pytest.param case to construct the ids list
using iterable unpacking instead of list concatenation, while preserving the
existing placement of "invalid_id" between r[:1] and r[1:5] and retaining the p3
mark.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 033a210a-116a-45a4-8bb6-dc011deee693
📒 Files selected for processing (25)
test/testcases/restful_api/test_chats.pytest/testcases/restful_api/test_chunks.pytest/testcases/restful_api/test_datasets.pytest/testcases/restful_api/test_documents.pytest/testcases/restful_api/test_message_routes_unit.pytest/testcases/restful_api/test_retrieval.pytest/testcases/restful_api/test_sessions.pytest/testcases/test_sdk_api/test_chat_assistant_management/test_create_chat_assistant.pytest/testcases/test_sdk_api/test_chat_assistant_management/test_delete_chat_assistants.pytest/testcases/test_sdk_api/test_chat_assistant_management/test_list_chat_assistants.pytest/testcases/test_sdk_api/test_chat_assistant_management/test_update_chat_assistant.pytest/testcases/test_sdk_api/test_chunk_management_within_dataset/test_add_chunk.pytest/testcases/test_sdk_api/test_chunk_management_within_dataset/test_delete_chunks.pytest/testcases/test_sdk_api/test_chunk_management_within_dataset/test_list_chunks.pytest/testcases/test_sdk_api/test_chunk_management_within_dataset/test_retrieval_chunks.pytest/testcases/test_sdk_api/test_chunk_management_within_dataset/test_update_chunk.pytest/testcases/test_sdk_api/test_file_management_within_dataset/test_parse_documents.pytest/testcases/test_sdk_api/test_message_management/test_forget_message.pytest/testcases/test_sdk_api/test_message_management/test_get_recent_message.pytest/testcases/test_sdk_api/test_message_management/test_list_message.pytest/testcases/test_sdk_api/test_message_management/test_update_message_status.pytest/testcases/test_sdk_api/test_session_management/test_create_session_with_chat_assistant.pytest/testcases/test_sdk_api/test_session_management/test_delete_sessions_with_chat_assistant.pytest/testcases/test_sdk_api/test_session_management/test_list_sessions_with_chat_assistant.pytest/testcases/test_sdk_api/test_session_management/test_update_session_with_chat_assistant.py
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17047 +/- ##
==========================================
- Coverage 94.56% 90.65% -3.91%
==========================================
Files 10 10
Lines 717 717
Branches 118 118
==========================================
- Hits 678 650 -28
- Misses 25 39 +14
- Partials 14 28 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
CI: modify longtime testcase to p3