-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: Init browser for ServerRuntime #3156
Conversation
tests/unit/test_runtime.py
Outdated
@@ -306,7 +306,9 @@ async def test_simple_browse(temp_dir, box_class): | |||
runtime = await _load_runtime(temp_dir, box_class) | |||
|
|||
# Test browse | |||
action_cmd = CmdRunAction(command='python -m http.server 8000 > server.log 2>&1 &') | |||
action_cmd = CmdRunAction( | |||
command='$OPENDEVIN_PYTHON_INTERPRETER -m http.server 8000 > server.log 2>&1 &' |
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.
$OPENDEVIN_PYTHON_INTERPRETER
may not be available in EventStreamRuntime
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.
In future? The tests are passed now. Python is only not available in ServerRuntime
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.
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.
Yes, $OPENDEVIN_PYTHON_INTERPRETER
is not available in EventStreamRuntime
and python
is not available in ServerRuntime
The mentioned error is solved. The following error will be solved by #3155 |
We're doing some cleanup of PRs, and are going to close this one for now. |
What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?
Solves the following one of the two errors from #3128
FAILED tests/unit/test_runtime.py::test_simple_browse[ServerRuntime] - opendevin.core.exceptions.BrowserUnavailableException: Browser environment is not available, please check if has been initialized
Give a summary of what the PR does, explaining any non-trivial design decisions
Added browser tool and used full path for python
Other references