OpenHands
OpenHands copied to clipboard
[Bug][Resolver]: Openhands failed to make code changes
Is there an existing issue for the same bug?
- [X] I have checked the existing issues.
Describe the bug and reproduction steps
Run if [ "false" == "true" ]; then
ERROR:root: File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 650, in <module>
main()
File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line [63](https://github.com/modern-realty-inc/plug-chat/actions/runs/11924937643/job/33236158374#step:15:64)6, in main
process_single_issue(
File "/opt/hostedtoolcache/Python/3.12.7/x[64](https://github.com/modern-realty-inc/plug-chat/actions/runs/11924937643/job/33236158374#step:15:65)/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 475, in process_single_issue
make_commit(patched_repo_dir, resolver_output.issue, issue_type)
File "/opt/hostedtoolcache/Python/3.12.7/x64/lib/python3.12/site-packages/openhands/resolver/send_pull_request.py", line 177, in make_commit
Error: raise RuntimeError('ERROR: Openhands failed to make code changes.')
ERROR:root:<class 'RuntimeError'>: ERROR: Openhands failed to make code changes.
Copied repository to output/patches/issue_437
Patch applied successfully
Git user configured as openhands
No changes to commit for issue #437. Skipping commit.
This is based on the .yml job:
- name: Create draft PR or push branch
if: always()
env:
PYTHONPATH: ""
run: |
if [ "${{ steps.check_result.outputs.RESOLUTION_SUCCESS }}" == "true" ]; then
cd /tmp && python -m openhands.resolver.send_pull_request \
--issue-number ${{ env.ISSUE_NUMBER }} \
--pr-type draft | tee pr_result.txt && \
grep "draft created" pr_result.txt | sed 's/.*\///g' > pr_number.txt
else
cd /tmp && python -m openhands.resolver.send_pull_request \
--issue-number ${{ env.ISSUE_NUMBER }} \
--pr-type branch \
--send-on-failure | tee branch_result.txt && \
grep "branch created" branch_result.txt | sed 's/.*\///g; s/.expand=1//g' > branch_name.txt
fi
OpenHands Installation
Other
OpenHands Version
0.14
Operating System
Linux
Logs, Errors, Screenshots, and Additional Context
No response