-
Notifications
You must be signed in to change notification settings - Fork 23
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 : Workflows are not terminated if errors are detected #163
base: main
Are you sure you want to change the base?
Conversation
Added error raising on line 108 to halt workflow execution when an error occurs. Implemented level 2 logging for the initial error. Captured and logged the first line of the error at level 0 for user visibility. Ensures workflow termination and proper error reporting.
WalkthroughThis pull request updates error handling in two workflow components. In the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant CommandExecutor
participant Shell
Caller->>CommandExecutor: run_command(command)
CommandExecutor->>Shell: Execute command
Shell-->>CommandExecutor: (stdout, stderr, returnCode)
alt Error detected (stderr exists or non-zero return code)
CommandExecutor->>Caller: raise RuntimeError("Process failed: ...")
else No error
CommandExecutor->>Caller: Return command output
end
sequenceDiagram
participant Caller
participant WorkflowManager
participant Logger
Caller->>WorkflowManager: workflow_process()
WorkflowManager->>WorkflowManager: Process workflow
alt Exception occurs
WorkflowManager->>Logger: log(first line of error message)
else No exception
WorkflowManager->>Caller: Continue processing
end
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
⏰ Context from checks skipped due to timeout of 90000ms (3)
🔇 Additional comments (2)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Added error raising on line 108 to halt workflow execution when an error occurs.
Implemented level 2 logging for the initial error.
Captured and logged the first line of the error at level 0 for user visibility.
Ensures workflow termination and proper error reporting.
This will resolve issue Workflows are not terminated if errors are detected #154
Summary by CodeRabbit