Skip to content
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

Improve workflow failure reason #1388

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Dec 15, 2024

Important

Enhance failure reason messages in setup_workflow_run in service.py to include exception details.

  • Behavior:
    • Enhanced failure reason messages in setup_workflow_run in service.py to include exception details.
    • Appends exception message to generic failure reason and SkyvernException specific message.

This description was created by Ellipsis for c57c3d3. It will automatically update as commits are pushed.

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Improves failure reason messages in `setup_workflow_run` in `service.py` by including exception details.
>
>   - **Behavior**:
>     - Enhanced failure reason messages in `setup_workflow_run` in `service.py` to include exception details.
>     - Specifically, appends exception message to generic failure reason and `SkyvernException` specific message.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for d01f0f1bd7d0a1927c4a6793472ea5d4cf07cc33. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Incremental review on c57c3d3 in 9 seconds

More details
  • Looked at 16 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:177
  • Draft comment:
    Consider changing 'an SkyvernException' to 'a SkyvernException' for grammatical correctness.
failure_reason = f"Setup workflow failed due to a SkyvernException({e.__class__.__name__}): {str(e)}"
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The PR aims to improve failure reason messages by including exception details. The changes are correctly implemented, but there is a minor grammatical error in the message format.

Workflow ID: wflow_UBKDKWoOZLjLfWV3


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Looks good to me! Reviewed everything up to c57c3d3 in 9 seconds

More details
  • Looked at 16 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/forge/sdk/workflow/service.py:177
  • Draft comment:
    Consider changing 'an SkyvernException' to 'a SkyvernException' for grammatical correctness.
failure_reason = f"Setup workflow failed due to a SkyvernException({e.__class__.__name__}): {str(e)}"
  • Reason this comment was not posted:
    Confidence changes required: 10%
    The PR aims to improve the failure reason messages by including exception details. The changes are straightforward and align with the intent described in the PR. However, there is a minor grammatical error in the failure message for SkyvernException.

Workflow ID: wflow_Oc4GMZjtsaRNqB8X


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@wintonzheng
Copy link
Contributor Author

@LawyZheng for review

@suchintan suchintan merged commit e81fdf6 into main Dec 16, 2024
2 checks passed
@suchintan suchintan deleted the suchintan.improve-workflow-failure-reason branch December 16, 2024 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants