From 5a3fa6f5db935cf3a153dcc860485d2f0cac72f7 Mon Sep 17 00:00:00 2001 From: Yi Dong Date: Sat, 25 Oct 2025 10:22:17 -0400 Subject: [PATCH 1/7] fix problem Signed-off-by: Yi Dong Signed-off-by: skzhang1 Signed-off-by: Mingjie Liu --- .github/workflows/ghcr-build.yml | 6 +- config.template.toml | 2 +- containers/runtime/README.md | 2 +- docs/usage/architecture/runtime.mdx | 2 +- docs/usage/configuration-options.mdx | 2 +- docs/usage/how-to/custom-sandbox-guide.mdx | 2 +- openhands/core/config/sandbox_config.py | 4 +- openhands/mcp/client.py | 2 +- openhands/nvidia/__init__.py | 2 +- openhands/nvidia/llm_judge.py | 144 ++++++++------ openhands/nvidia/reward.py | 84 ++++---- openhands/nvidia/stem_agent/stem_handler.py | 4 +- openhands/nvidia/stem_agent/stem_utils.py | 7 +- openhands/runtime/utils/runtime_build.py | 2 +- .../utils/runtime_templates/singularity.j2 | 9 +- openhands/utils/prompt.py | 4 +- poetry.lock | 2 +- tests/runtime/conftest.py | 2 +- tests/runtime/test_mcp_multiturn.py | 181 +++++++++--------- tests/unit/test_config.py | 2 +- tests/unit/test_runtime_build.py | 2 +- tests/unit/test_singularity_runtime_build.py | 2 +- 22 files changed, 249 insertions(+), 220 deletions(-) diff --git a/.github/workflows/ghcr-build.yml b/.github/workflows/ghcr-build.yml index eb3d15494..44eec5d9b 100644 --- a/.github/workflows/ghcr-build.yml +++ b/.github/workflows/ghcr-build.yml @@ -40,13 +40,13 @@ jobs: # Only build nikolaik on PRs, otherwise build both nikolaik and ubuntu. if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]]; then json=$(jq -n -c '[ - { image: "nikolaik/python-nodejs:python3.12-nodejs22", tag: "nikolaik" }, + { image: "ubuntu:24.04", tag: "ubuntu" }, { image: "ubuntu:24.04", tag: "ubuntu" } ]') else json=$(jq -n -c '[ - { image: "nikolaik/python-nodejs:python3.12-nodejs22", tag: "nikolaik" }, + { image: "ubuntu:24.04", tag: "ubuntu" }, { image: "ubuntu:24.04", tag: "ubuntu" } ]') fi @@ -199,7 +199,7 @@ jobs: matrix: base_image: ['nikolaik'] env: - BASE_IMAGE_FOR_HASH_EQUIVALENCE_TEST: nikolaik/python-nodejs:python3.12-nodejs22 + BASE_IMAGE_FOR_HASH_EQUIVALENCE_TEST: ubuntu:24.04 steps: - uses: actions/checkout@v4 with: diff --git a/config.template.toml b/config.template.toml index 15c4809ef..5a8ce3228 100644 --- a/config.template.toml +++ b/config.template.toml @@ -271,7 +271,7 @@ classpath = "my_package.my_module.MyCustomAgent" #user_id = 1000 # Container image to use for the sandbox -#base_container_image = "nikolaik/python-nodejs:python3.12-nodejs22" +#base_container_image = "ubuntu:24.04" # Use host network #use_host_network = false diff --git a/containers/runtime/README.md b/containers/runtime/README.md index 9fbed76aa..8b15471b4 100644 --- a/containers/runtime/README.md +++ b/containers/runtime/README.md @@ -7,6 +7,6 @@ The following command will generate a `Dockerfile` file for `nikolaik/python-nod ```bash poetry run python3 openhands/runtime/utils/runtime_build.py \ - --base_image nikolaik/python-nodejs:python3.12-nodejs22 \ + --base_image ubuntu:24.04 \ --build_folder containers/runtime ``` diff --git a/docs/usage/architecture/runtime.mdx b/docs/usage/architecture/runtime.mdx index 5ebcf3baf..63bc50b34 100644 --- a/docs/usage/architecture/runtime.mdx +++ b/docs/usage/architecture/runtime.mdx @@ -88,7 +88,7 @@ for only the openhands source This hash is built from the first 16 digits of the MD5 of: -- The name of the base image upon which the image was built (e.g.: `nikolaik/python-nodejs:python3.12-nodejs22`) +- The name of the base image upon which the image was built (e.g.: `ubuntu:22.04`) - The content of the `pyproject.toml` included in the image. - The content of the `poetry.lock` included in the image. diff --git a/docs/usage/configuration-options.mdx b/docs/usage/configuration-options.mdx index 2115a7b50..25cc27b2a 100644 --- a/docs/usage/configuration-options.mdx +++ b/docs/usage/configuration-options.mdx @@ -347,7 +347,7 @@ To use these with the docker command, pass in `-e SANDBOX_