Repository navigation
Reset everything after a build failure and let agents start from zero #273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,7 +128,8 @@ def get_prompt() -> str: | |
|
|
||
| {{.}} | ||
|
|
||
| Do your best to fix the issue and then generate a new SRPM. | ||
| Everything from the previous attempt has been reset. Start over, follow the instructions from the start | ||
| and don't forget to fix the issue. | ||
| {{/build_error}} | ||
| """ | ||
|
|
||
|
|
@@ -309,7 +310,7 @@ async def run_build_agent(state): | |
| ) | ||
| return "comment_in_jira" | ||
| state.build_error = build_result.error | ||
| return "run_backport_agent" | ||
| return "fork_and_prepare_dist_git" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change to restart the workflow from On a related note, the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, one day. |
||
|
|
||
| async def update_release(state): | ||
| try: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,8 @@ def get_prompt() -> str: | |
|
|
||
| {{.}} | ||
|
|
||
| Do your best to fix the issue and then generate a new SRPM. | ||
| Everything from the previous attempt has been reset. Start over, follow the instructions from the start | ||
| and don't forget to fix the issue. | ||
| {{/build_error}} | ||
| """ | ||
|
|
||
|
|
@@ -280,7 +281,7 @@ async def run_build_agent(state): | |
| ) | ||
| return "comment_in_jira" | ||
| state.build_error = build_result.error | ||
| return "run_rebase_agent" | ||
| return "fork_and_prepare_dist_git" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change to restart the workflow from As with the |
||
|
|
||
| async def update_release(state): | ||
| try: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂