@@ -77,8 +77,17 @@ def __init__(
7777 )
7878
7979 workflow .add_node ("issue_bug_responder_node" , issue_bug_responder_node )
80- # Set the entry point for the workflow
81- workflow .set_entry_point ("bug_reproduction_subgraph_node" )
80+
81+ # Start with bug reproduction subgraph if reproducing bug is required,
82+ # otherwise start with not verified bug subgraph
83+ workflow .set_conditional_entry_point (
84+ lambda state : state ["run_reproduce_test" ],
85+ {
86+ True : "bug_reproduction_subgraph_node" ,
87+ False : "issue_not_verified_bug_subgraph_node" ,
88+ },
89+ )
90+
8291 # Go to verified bug subgraph if the bug is verified, otherwise go to not verified bug subgraph
8392 workflow .add_conditional_edges (
8493 "bug_reproduction_subgraph_node" ,
@@ -109,6 +118,7 @@ def invoke(
109118 issue_comments : Sequence [Mapping [str , str ]],
110119 run_build : bool ,
111120 run_existing_test : bool ,
121+ run_reproduce_test : bool ,
112122 number_of_candidate_patch : int ,
113123 recursion_limit : int = 30 ,
114124 ):
@@ -120,6 +130,7 @@ def invoke(
120130 "issue_comments" : issue_comments ,
121131 "run_build" : run_build ,
122132 "run_existing_test" : run_existing_test ,
133+ "run_reproduce_test" : run_reproduce_test ,
123134 "number_of_candidate_patch" : number_of_candidate_patch ,
124135 }
125136
0 commit comments