Skip to content

Commit 46c9f7b

Browse files
committed
Reset everything after a build failure and let agents start from zero
Signed-off-by: Nikola Forró <[email protected]>
1 parent 0475bbc commit 46c9f7b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

agents/backport_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ def get_prompt() -> str:
138138
139139
{{.}}
140140
141-
Do your best to fix the issue and then generate a new SRPM.
141+
Everything from the previous attempt has been reset. Start over, follow the instructions from the start
142+
and don't forget to fix the issue.
142143
{{/build_error}}
143144
"""
144145

@@ -320,7 +321,7 @@ async def run_build_agent(state):
320321
)
321322
return "comment_in_jira"
322323
state.build_error = build_result.error
323-
return "run_backport_agent"
324+
return "fork_and_prepare_dist_git"
324325

325326
async def update_release(state):
326327
try:

agents/rebase_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def get_prompt() -> str:
131131
132132
{{.}}
133133
134-
Do your best to fix the issue and then generate a new SRPM.
134+
Everything from the previous attempt has been reset. Start over, follow the instructions from the start
135+
and don't forget to fix the issue.
135136
{{/build_error}}
136137
"""
137138

@@ -281,7 +282,7 @@ async def run_build_agent(state):
281282
)
282283
return "comment_in_jira"
283284
state.build_error = build_result.error
284-
return "run_rebase_agent"
285+
return "fork_and_prepare_dist_git"
285286

286287
async def update_release(state):
287288
try:

0 commit comments

Comments
 (0)