Skip to content

fix: add vm_ip to MockEnv in evaluate_server.py#181

Merged
abrichr merged 1 commit into
mainfrom
fix/evaluate-server-vm-ip
Mar 22, 2026
Merged

fix: add vm_ip to MockEnv in evaluate_server.py#181
abrichr merged 1 commit into
mainfrom
fix/evaluate-server-vm-ip

Conversation

@abrichr

@abrichr abrichr commented Mar 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Add vm_ip and port attributes to MockEnv in evaluate_server.py (the evaluate server that runs inside the WAA Docker container)
  • WAA getter modules access env.vm_ip to make HTTP calls to the Windows VM; the missing attribute caused AttributeError crashes during evaluation
  • Defaults match the QEMU guest address (172.30.0.2:5000) already used by the PythonController on the same line

Context

The MockEnv in openadapt_evals/server/evaluate_endpoint.py already had vm_ip and port, but the Docker-side MockEnv in waa_deploy/evaluate_server.py was missing them. The start_with_evaluate.sh iptables fix (PR #115) is already in place.

Test plan

  • Verify evaluate_server.py starts without errors inside the WAA container
  • Run a task evaluation that uses a WAA getter requiring env.vm_ip (e.g., get_vm_command_line)
  • Confirm no AttributeError on vm_ip in /tmp/evaluate_server.log

🤖 Generated with Claude Code

WAA getter modules access env.vm_ip to make HTTP calls to the Windows
VM.  The MockEnv class in evaluate_server.py was missing this attribute,
causing getters to crash with AttributeError during evaluation.

Add vm_ip (default "172.30.0.2") and port (default 5000) to match the
MockEnv in evaluate_endpoint.py and the QEMU guest address used by the
PythonController.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr merged commit ee7eb8c into main Mar 22, 2026
1 check passed
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.

1 participant