-
Notifications
You must be signed in to change notification settings - Fork 798
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
Fix cyclic import #781
Conversation
<!-- 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 -->
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.
👍 Looks good to me! Incremental review on c2e37cc in 15 seconds
More details
- Looked at
85
lines of code in3
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-outworkflow
parameter from the function signature for clarity. - Reason this comment was not posted:
Confidence changes required:50%
The PR description mentions removing theworkflow
parameter fromcleanup_for_workflow_run
inbrowser_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 ofapp
sincestore_browser_session
method has been removed. - Reason this comment was not posted:
Confidence changes required:50%
The PR description mentions the removal of thestore_browser_session
method frombrowser_factory.py
. The method has been removed, but the import statement forapp
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.
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.
❌ Changes requested. Reviewed everything up to c2e37cc in 15 seconds
More details
- Looked at
86
lines of code in3
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 |
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.
The import of Workflow
is now unused and should be removed to clean up the code.
Summary:
Refactored code to fix circular import by adjusting
cleanup_for_workflow_run
andsend_workflow_response
functions.Key points:
workflow
parameter fromcleanup_for_workflow_run
inskyvern/webeye/browser_manager.py
.persist_browser_session
logic tosend_workflow_response
inskyvern/forge/sdk/workflow/service.py
.Workflow
fromskyvern/webeye/browser_manager.py
.store_browser_session
method fromskyvern/webeye/browser_factory.py
.Generated with ❤️ by ellipsis.dev