magaton / sweep

Sweep: AI-powered Junior Developer for small features and bug fixes.
https://sweep.dev
GNU Affero General Public License v3.0
0 stars 0 forks source link

Complete the implementation process_issue.py #5

Open magaton opened 5 months ago

magaton commented 5 months ago

You havent completed implementation of sweepai/logic/process_issue.py in the last PR. file set path is hardcoded:

 zip_path = "/tmp/dummy_path.zip"

Provide the code that creates this zip file.

Checklist - [X] Modify `sweepai/logic/process_issue.py` ! No changes made [Edit](https://github.com/magaton/sweep/edit/sweep/complete_the_implementation_process_issu_c08dd/sweepai/logic/process_issue.py) - [X] Running GitHub Actions for `sweepai/logic/process_issue.py` ✗ [Edit](https://github.com/magaton/sweep/edit/sweep/complete_the_implementation_process_issu_c08dd/sweepai/logic/process_issue.py) - [X] Modify `sweepai/agents/assistant_planning.py` ! No changes made [Edit](https://github.com/magaton/sweep/edit/sweep/complete_the_implementation_process_issu_c08dd/sweepai/agents/assistant_planning.py) - [X] Running GitHub Actions for `sweepai/agents/assistant_planning.py` ✗ [Edit](https://github.com/magaton/sweep/edit/sweep/complete_the_implementation_process_issu_c08dd/sweepai/agents/assistant_planning.py)
magaton commented 5 months ago
Sweeping

50%

Actions (click)


❌ Unable to Complete PR

I'm sorry, but it looks like an error has occurred due to a planning failure. Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://discord.gg/sweep.

For bonus GPT-4 tickets, please report this bug on Discord (tracking ID: 99a9f03d87).


Please look at the generated plan. If something looks wrong, please add more details to your issue.

File Path Proposed Changes
sweepai/logic/process_issue.py Modify sweepai/logic/process_issue.py with contents:
• Modify the process_issue_text function to accept an additional argument zip_path: str.
• Remove the hardcoded zip_path = "/tmp/dummy_path.zip" line.
• Update all calls to process_issue_text within the repository to pass the appropriate zip_path argument. This may involve modifying other functions or methods that call process_issue_text to ensure they have access to or can generate the appropriate zip file path.
• Ensure that the zip_path argument is used in the call to new_planning within process_issue_text.
sweepai/agents/assistant_planning.py Modify sweepai/agents/assistant_planning.py with contents:
• No direct modifications are required in this file for the zip path issue. However, ensure that any changes in how process_issue_text is called (due to the new zip_path parameter) are compatible with how new_planning is used within assistant_planning.py.
• Specifically, review the usage of new_planning to ensure that any dynamic zip path generation logic or argument passing is correctly handled in the context of how assistant_planning.py interacts with process_issue_text.

🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description.

This is an automated message generated by Sweep AI.