-
Notifications
You must be signed in to change notification settings - Fork 95
LCORE-3027: Debug skills E2E #2138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -93,6 +93,7 @@ def wait_for_complete_response(context: Context) -> None: | |
| """Wait for the response to be complete.""" | ||
| context.response_data = _parse_streaming_response(context.response.text) | ||
| context.response.raise_for_status() | ||
| print(f"Response data: {context.response_data}") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win Do not print the full response payload to CI logs.
As per coding guidelines, module logging must use 🤖 Prompt for AI AgentsSource: Coding guidelines |
||
| assert context.response_data["finished"] is True | ||
| context.use_streaming_response_data = True | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Emit the diagnostic before
raise_for_status().When the response has a non-2xx status, Line 95 raises before Line 96 executes, so the payload is unavailable for precisely those failures the debug output should help diagnose. Move the safe, redacted diagnostic immediately after parsing or include it in error handling.
🤖 Prompt for AI Agents