Skip to content

Multi-Patch Selection Feature Complete - #85

Closed
dcloud347 wants to merge 10 commits into
mainfrom
feature/multi-patch-selection
Closed

Multi-Patch Selection Feature Complete#85
dcloud347 wants to merge 10 commits into
mainfrom
feature/multi-patch-selection

Conversation

@dcloud347

Copy link
Copy Markdown
Contributor

This pull request introduces several enhancements and fixes across multiple files in the repository. Key changes include improvements to Git repository handling, updates to LangGraph subgraphs for bug reproduction and issue verification, and documentation updates. Below is a breakdown of the most important changes:

Git Repository Enhancements

  • Refactored the reset_repository method in prometheus/git/git_repository.py to allow excluding specific files from the reset process. This change enhances flexibility when working with Git repositories.
  • Updated the GitResetNode class in prometheus/lang_graph/nodes/git_reset_node.py to support excluding files during the reset process by introducing an exclude_files_key parameter.

LangGraph Subgraph Improvements

  • Enhanced the BugReproductionSubgraph in prometheus/lang_graph/subgraphs/bug_reproduction_subgraph.py by adding detailed node descriptions, improving workflow transitions, and integrating additional nodes for structured evaluation and retries. [1] [2]
  • Updated the IssueNotVerifiedBugSubgraph in prometheus/lang_graph/subgraphs/issue_not_verified_bug_subgraph.py to include a final patch selection node with a customizable patch name and improved workflow control. [1] [2]

Final Patch Selection

  • Modified the FinalPatchSelectionNode in prometheus/lang_graph/nodes/final_patch_selection_node.py to allow dynamic naming of the final patch key, improving flexibility in downstream workflows. [1] [2]

Documentation Updates

  • Updated the .env variable documentation in README.md to reflect the change from PROMETHEUS_POSTGRES_URI to PROMETHEUS_POSTGRES_URL and removed an outdated pytest marker in the test command example. [1] [2]
  • Added comprehensive docstrings to the BugReproductionSubgraph and IssueNotVerifiedBugSubgraph classes to explain their purpose, steps, and workflows. [1] [2]

@SophieHYe

Copy link
Copy Markdown

Just want to quickly mark here: all the multiple patches are generated based on the same retrieved context. Should we improve this by retrieving new context in the next version? @dcloud347

@dcloud347

Copy link
Copy Markdown
Contributor Author

Let's improve context retrieval first! @SophieHYe

@dcloud347 dcloud347 closed this Aug 22, 2025
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.

2 participants