-
Notifications
You must be signed in to change notification settings - Fork 907
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
fix: logs not showing for test runs #4102
Conversation
…p into fix/4078-test-run-react-error
# Conflicts: # keep-ui/features/workflows/test-run/ui/builder-workflow-testrun-modal-content.tsx
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4102 +/- ##
===========================================
- Coverage 47.03% 30.96% -16.07%
===========================================
Files 165 92 -73
Lines 16210 10155 -6055
===========================================
- Hits 7625 3145 -4480
+ Misses 8585 7010 -1575 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
PR Summary
This PR addresses test run functionality in the Keep platform by making workflow executions more robust and properly saving test run results. Here's a concise summary of the key changes:
- Modified workflow execution model to support nullable workflow_ids for test runs via new database migration
- Unified workflow result handling in WorkflowManager by having both test and non-test runs use
_save_workflow_results
- Added proper event handling for manual test runs through new
get_event_from_body
function - Enhanced WorkflowExecutionResults component to handle unsaved workflow test runs using workflowYaml prop
- Improved error handling and status tracking for workflow test executions with better logging
The changes appear well-structured and properly tested, focusing on fixing the core issue of test runs not being saved while maintaining consistency between test and regular workflow executions.
18 file(s) reviewed, 5 comment(s)
Edit PR Review Bot Settings | Greptile
keep/api/models/db/migrations/versions/2025-03-18-14-54_971abbbf0a2c.py
Outdated
Show resolved
Hide resolved
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.
PR Summary
(updates since last review)
The changes focus on enhancing test workflow execution handling in the Keep platform, particularly around test run management and execution tracking.
- Added new test cases in
/tests/test_workflowmanager.py
to verify manual event workflow handling for both regular and test runs - Modified
/keep/workflowmanager/workflowscheduler.py
to support nullable workflow IDs and added test_run flag in execution records - Enhanced logging around test run execution status and error handling
- Improved workflow execution tracking by properly distinguishing between test and regular workflow runs
2 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile
keep-ui/features/workflow-execution-results/ui/WorkflowExecutionResults.tsx
Show resolved
Hide resolved
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.
LGTM
Closes #4093
AI Summary
_save_workflow_results
get_event_from_body
functionBefore
Screen.Recording.2025-03-20.at.12.12.43.mov
After
Screen.Recording.2025-03-20.at.12.31.49.mov