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

feat: Add LocalRuntime and rename EventStreamRuntime to LocalDockerRuntime #5284

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

xingyaoww
Copy link
Collaborator

@xingyaoww xingyaoww commented Nov 26, 2024

This PR adds a new LocalRuntime implementation and renames EventStreamRuntime to LocalDockerRuntime for better clarity.

Changes

  • Add new LocalRuntime implementation that runs action_execution_server directly on the host machine
  • Rename EventStreamRuntime to LocalDockerRuntime for better clarity
  • Move runtime implementations to dedicated directories (local/ and docker/)
  • Update documentation to reflect runtime changes and add LocalRuntime description

Benefits

  • Provides a simpler setup for users who don't need container isolation
  • Clearer naming convention for runtime implementations
  • Better organized codebase with dedicated directories for each runtime type
  • Updated documentation to help users choose the right runtime for their needs

Issue fixed: #3903

…ntime

- Add new LocalRuntime implementation that runs action_execution_server directly on host
- Rename EventStreamRuntime to LocalDockerRuntime for clarity
- Move runtime implementations to dedicated directories
- Update documentation to reflect runtime changes
- Update imports to use LocalDockerRuntime and LocalRuntime
- Add LocalRuntime to get_runtime_classes()
- Update _close_test_runtime to handle LocalDockerRuntime
- Add proper type hints for server_process
- Fix stdout access safety
- Fix async/await type hints
- Improve error handling
- No container overhead
- Fastest execution speed

Note: This runtime provides less isolation than the Local Docker Runtime.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@openhands-agent Does the new Local Runtime provide less isolation than the Local Docker Runtime, or no isolation at all, basically? If your answer is no isolation, then the documentation should say that clearly.

Copy link
Contributor

OpenHands started fixing the pr! You can monitor the progress here.

@openhands-agent
Copy link
Contributor

New OpenHands update

Copy link
Contributor

The workflow to fix this issue encountered an error. Please check the workflow logs for more information.

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