Skip to content

fix(mini_swe_agent_2): don't install agent deps into root venv (openai pin conflict) - #1916

Merged
ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/fix-mini-swe-agent2-openai-pin
Jul 2, 2026
Merged

ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/fix-mini-swe-agent2-openai-pin

Conversation

@ananthsub

Copy link
Copy Markdown
Contributor

Summary

Fixes a QA-blocking gym env start failure for mini_swe_agent_2 introduced by the Quick Start prerequisites.

The Quick Start instructed installing the agent's runtime deps into the root venv:

uv pip install mini-swe-agent==2.1.0 swebench==4.1.0

mini-swe-agent==2.1.0 allows any recent openai (openai!=1.100.*), so this upgrades the root venv's openai from 2.7.2 β†’ 2.44.0. gym env start then pins every per-server venv to the root venv's openai version via head_server_deps (openai=={openai_version}), which collides with nemo-gym's openai<=2.7.2 pin in each sub-server venv:

nemo-gym==0.4.0rc0 depends on openai<=2.7.2 ... you require openai==2.44.0 ... unsatisfiable
Process `mini_swe_agent_2` finished unexpectedly!

Fix

The root venv only needs uv sync --extra dev --extra sandbox. gym env start already builds this agent's own per-server venv from its requirements.txt (installing mini-swe-agent, swebench, and a compatible openai), so the manual root-venv install is both unnecessary and harmful. This PR drops it and documents why not to add it (plus how to recover: re-run uv sync).

Immediate workaround for anyone hit by this

uv sync --extra dev --extra sandbox   # resets the root venv's openai back to <=2.7.2
gym env start --config ... --model-type ...   # do NOT install mini-swe-agent/swebench into root

Test plan

  • Root venv from uv sync --extra dev --extra sandbox alone β†’ gym env start builds the mini_swe_agent_2 + model server venvs successfully (verified previously end-to-end against OpenSandbox + a local vLLM).
  • Confirmed uv pip install mini-swe-agent==2.1.0 upgrades openai 2.7.2 β†’ 2.44.0 in the target venv (dry-run resolve), which is what triggers the head_server_deps conflict.

…penai pin)

The Quick Start told users to `uv pip install mini-swe-agent==2.1.0
swebench==4.1.0` into the root venv. mini-swe-agent allows a newer openai than
nemo-gym pins (openai<=2.7.2), so that install upgrades the root venv's openai
to 2.44.0. `gym env start` pins every per-server venv to the root venv's openai
version via head_server_deps, which then conflicts with nemo-gym's pin and makes
the mini_swe_agent_2 / policy_model venvs unsatisfiable, so `gym env start`
fails with "Process `mini_swe_agent_2` finished unexpectedly".

The root venv only needs `uv sync --extra dev --extra sandbox`; `gym env start`
already builds the agent's own venv (with mini-swe-agent, swebench, and a
compatible openai). Drop the manual install and document why not to add it.

Signed-off-by: Ananth Subramaniam <ansubramania@nvidia.com>
@ananthsub ananthsub added the r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Jul 2, 2026
@ananthsub
ananthsub requested a review from hemildesai July 2, 2026 18:04
@ananthsub
ananthsub merged commit 93a13ed into NVIDIA-NeMo:main Jul 2, 2026
29 checks passed
ananthsub added a commit that referenced this pull request Jul 2, 2026
…openai pin conflict) (1916)` into `r0.4.0` (#1917)

beep boop [πŸ€–]: Hi @ananthsub πŸ‘‹,

    we've cherry picked #1916 into  for you! πŸš€

    Please review and approve this cherry pick by your convenience!

Signed-off-by: Ananth Subramaniam <ansubramania@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
Co-authored-by: Ananth Subramaniam <ansubramania@nvidia.com>
@ananthsub
ananthsub deleted the ananthsub/fix-mini-swe-agent2-openai-pin branch July 2, 2026 18:10

This branch was previously deployed

1 inactive deployment
public β€” a4c254b0 Deployed Jul 2, 2026 by copy-pr-bot[bot] via release / finalize / notify #658
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant