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: Init browser for ServerRuntime #3156

Closed
wants to merge 11 commits into from

Conversation

SmartManoj
Copy link
Contributor

@SmartManoj SmartManoj commented Jul 28, 2024

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

@SmartManoj SmartManoj changed the title Test: Init browser for ServerRuntime Fix: Init browser for ServerRuntime Jul 28, 2024
@@ -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 &'
Copy link
Contributor

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

Copy link
Contributor Author

@SmartManoj SmartManoj Jul 29, 2024

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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

@SmartManoj
Copy link
Contributor Author

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

The mentioned error is solved. The following error will be solved by #3155

image

Action link

@rbren
Copy link
Collaborator

rbren commented Jul 30, 2024

We're doing some cleanup of PRs, and are going to close this one for now.

@rbren rbren closed this Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants