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

fix build boundingbox timeout #1646

Merged
merged 1 commit into from
Jan 26, 2025
Merged

Conversation

wintonzheng
Copy link
Contributor

@wintonzheng wintonzheng commented Jan 26, 2025

Important

Add timeout to remove_bounding_boxes() and build_elements_and_draw_bounding_boxes() in page.py using BUILDING_ELEMENT_TREE_TIMEOUT_MS.

  • Behavior:
    • Add timeout_ms=BUILDING_ELEMENT_TREE_TIMEOUT_MS to evaluate() calls in remove_bounding_boxes() and build_elements_and_draw_bounding_boxes() in page.py.
  • Constants:
    • Use BUILDING_ELEMENT_TREE_TIMEOUT_MS for timeout settings in the above functions.

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

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Add timeout to `evaluate` calls in `remove_bounding_boxes` and `build_elements_and_draw_bounding_boxes` in `page.py`.
>
>   - **Behavior**:
>     - Add `timeout_ms=BUILDING_ELEMENT_TREE_TIMEOUT_MS` to `evaluate` calls in `remove_bounding_boxes()` and `build_elements_and_draw_bounding_boxes()` in `page.py`.
>   - **Misc**:
>     - No other changes or refactors were made.
>
> <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 7dbbe119e1fb2f7a704cdc18d505dbd91d2eca2d. 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 d98e777 in 8 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/utils/page.py:221
  • Draft comment:
    Consider making the timeout value configurable or context-specific instead of using a hardcoded value for all cases.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR adds a timeout parameter to the evaluate function calls for two methods. This is a good practice to prevent indefinite waiting. However, the timeout value is hardcoded as BUILDING_ELEMENT_TREE_TIMEOUT_MS, which might not be suitable for all cases. It would be better to allow this to be configurable or to use a more context-specific timeout value.

Workflow ID: wflow_L6I0df8YJeRlTsl7


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 d98e777 in 8 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. skyvern/webeye/utils/page.py:221
  • Draft comment:
    Ensure that BUILDING_ELEMENT_TREE_TIMEOUT_MS is an appropriate timeout value for the operations in remove_bounding_boxes and build_elements_and_draw_bounding_boxes.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR adds a timeout parameter to the evaluate function calls in remove_bounding_boxes and build_elements_and_draw_bounding_boxes methods. This is a good practice to prevent indefinite waiting, but the timeout value should be checked for appropriateness.

Workflow ID: wflow_DliACa1yVRE74jy4


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

@LawyZheng LawyZheng merged commit 4b2ea40 into main Jan 26, 2025
7 checks passed
@LawyZheng LawyZheng deleted the lawy/increase-scraping-timeout branch January 26, 2025 04:59
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.

2 participants