Skip to content

[Arch] EventStreamRuntime supports browser #2899

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

Merged
merged 5 commits into from
Jul 11, 2024

Conversation

xingyaoww
Copy link
Collaborator

What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?

This is part of #2404.

Right now, the RuntimeClient running inside the sandbox supports running Browser actions.

Give a brief summary of what the PR does, explaining any non-trivial design decisions

  • Move the browser into RuntimeClient to be executed inside sandbox.
  • Tweak the dependency a bit to make sure it works.

Command to test python3 opendevin/runtime/client/runtime.py

Example output:
image

Other references

Copy link
Collaborator

@yufansong yufansong left a comment

Choose a reason for hiding this comment

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

Cool, LGTM!

Comment on lines +216 to 220
# An eventstream runtime image is already built for the base image (with poetry and dev dependencies)
# but it might not contain the latest version of the source code and dependencies.
# So we need to build a new (dev) image with the latest source code and dependencies.
# FIXME: In production, we should just build once (since the source code will not change)
base_image = new_image_name
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think for dev, we can just mount the project into the sandbox and manually launch it. Build a image maybe too heavy just for development.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point! But beyond the codebase, we might still need to update the dependency - mounting & poetry install at the launch time might make the code a little bit complex, but can help reduce unnecessary re-build of docker images. And how to effectively switch between dev and prod (via config?) is also a question..

I'll give it more thoughts!

@xingyaoww xingyaoww enabled auto-merge (squash) July 11, 2024 22:27
@xingyaoww xingyaoww merged commit 96b5cb7 into main Jul 11, 2024
2 checks passed
@xingyaoww xingyaoww deleted the xw/runtime-cli-integrate-browser branch July 11, 2024 22:32
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.

2 participants