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 cyclic import #781

Merged
merged 1 commit into from
Sep 7, 2024
Merged

Fix cyclic import #781

merged 1 commit into from
Sep 7, 2024

Conversation

ykeremy
Copy link
Contributor

@ykeremy ykeremy commented Sep 7, 2024

🚀 This description was created by Ellipsis for commit c2e37cc

Summary:

Refactored code to fix circular import by adjusting cleanup_for_workflow_run and send_workflow_response functions.

Key points:

  • Refactored code to fix circular import issue.
  • Removed workflow parameter from cleanup_for_workflow_run in skyvern/webeye/browser_manager.py.
  • Moved persist_browser_session logic to send_workflow_response in skyvern/forge/sdk/workflow/service.py.
  • Removed import of Workflow from skyvern/webeye/browser_manager.py.
  • Deleted store_browser_session method from skyvern/webeye/browser_factory.py.

Generated with ❤️ by ellipsis.dev

<!-- ELLIPSIS_HIDDEN -->

| 🚀 | This description was created by [Ellipsis](https://www.ellipsis.dev) for commit 80b10a02f060431a1de292544116fe9659b6e2d7  |
|--------|--------|

### Summary:
Refactored code to fix circular import by removing `workflow` parameter from `cleanup_for_workflow_run` and handling `persist_browser_session` in `send_workflow_response`.

**Key points**:
- Removed `workflow` parameter from `cleanup_for_workflow_run` in `skyvern/webeye/browser_manager.py`.
- Moved `persist_browser_session` logic to `send_workflow_response` in `skyvern/forge/sdk/workflow/service.py`.
- Removed import of `Workflow` from `skyvern/webeye/browser_manager.py`.
- Deleted `store_browser_session` method from `skyvern/webeye/browser_factory.py`.

----
Generated with ❤️ by [ellipsis.dev](https://www.ellipsis.dev)

<!-- ELLIPSIS_HIDDEN -->
@ykeremy ykeremy added the sync label Sep 7, 2024
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 c2e37cc in 15 seconds

More details
  • Looked at 85 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. skyvern/webeye/browser_manager.py:185
  • Draft comment:
    Remove the commented-out workflow parameter from the function signature for clarity.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions removing the workflow parameter from cleanup_for_workflow_run in browser_manager.py, but the function signature still has a comment indicating its removal. This comment should be removed for clarity.
2. skyvern/webeye/browser_factory.py:25
  • Draft comment:
    Remove the unused import of app since store_browser_session method has been removed.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The PR description mentions the removal of the store_browser_session method from browser_factory.py. The method has been removed, but the import statement for app is still present and unused. This should be removed to clean up the code.

Workflow ID: wflow_sot8PJjt9aG7kw1j


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.

❌ Changes requested. Reviewed everything up to c2e37cc in 15 seconds

More details
  • Looked at 86 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_4voZICT3n8VSftTp


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -9,7 +9,7 @@
from skyvern.constants import BROWSER_CLOSE_TIMEOUT
from skyvern.exceptions import MissingBrowserState
from skyvern.forge.sdk.schemas.tasks import ProxyLocation, Task
from skyvern.forge.sdk.workflow.models.workflow import Workflow, WorkflowRun
from skyvern.forge.sdk.workflow.models.workflow import WorkflowRun
Copy link
Contributor

Choose a reason for hiding this comment

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

The import of Workflow is now unused and should be removed to clean up the code.

@wintonzheng wintonzheng merged commit bfce9f2 into main Sep 7, 2024
2 checks passed
@wintonzheng wintonzheng deleted the shu/fix_circular_import_sep_7 branch September 7, 2024 08:57
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