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

[Resolver] Support remote runtime #5053

Open
neubig opened this issue Nov 15, 2024 · 4 comments
Open

[Resolver] Support remote runtime #5053

neubig opened this issue Nov 15, 2024 · 4 comments
Labels
enhancement New feature or request resolver Related to OpenHands Resolver

Comments

@neubig
Copy link
Contributor

neubig commented Nov 15, 2024

Now OpenHands has an option for a remote runtime, we could support it.

As an example, in resolve_issue.py, we could set up AppConfig similarly to this example (from another repo), using the "RUNTIME" and "ALLHANDS_API_KEY" variables:

    config = AppConfig(
        default_agent=metadata.agent_class,
        run_as_openhands=False,
        max_budget_per_task=4,
        max_iterations=metadata.max_iterations,
        runtime=os.environ.get('RUNTIME', 'docker'),
        sandbox=SandboxConfig(
            base_container_image=base_container_image,
            enable_auto_lint=True,
            use_host_network=False,
            # large enough timeout, since some testcases take very long to run
            timeout=300,
            api_key=os.environ.get('ALLHANDS_API_KEY', None),
        ),
        # do not mount workspace
        workspace_base=None,
        workspace_mount_path=None,
    )

We should:

  1. Update the app code
  2. Add tests to make sure it's set properly through the environment
  3. Update the .github/workflows/openhands-resolver.yml workflow to account for these variables, taken either as optional inputs from an external workflow or from the environment.

Moved from All-Hands-AI/openhands-resolver#49

@mamoodi mamoodi added enhancement New feature or request resolver Related to OpenHands Resolver labels Nov 15, 2024
@ryx2
Copy link
Contributor

ryx2 commented Nov 16, 2024

Yes!

Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 30 days label Dec 17, 2024
@enyst enyst removed the Stale Inactive for 30 days label Dec 17, 2024
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 30 days label Jan 20, 2025
@enyst enyst removed the Stale Inactive for 30 days label Jan 20, 2025
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale Inactive for 30 days label Feb 20, 2025
@enyst enyst removed the Stale Inactive for 30 days label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request resolver Related to OpenHands Resolver
Projects
None yet
Development

No branches or pull requests

4 participants